Skip to main content

Grocy CVE-2026-71236

| EUVDEUVD-2026-53309 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-08-05 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c GHSA-c924-wcfj-cr8j
8.7
CVSS 3.1 · Vendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain Grocy API credentials (PR:L)
  2. Delivery
    Submit entity-encoded XSS payload via writable API field
  3. Exploit
    Double-decode in BaseApiController reconstructs live script tag
  4. Install
    Payload persists in Grocy database
  5. C2
    Victim user loads affected content in browser (UI:R)
  6. Execute
    Injected script executes in victim session
  7. Impact
    Session token theft or unauthorized action

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to hold valid Grocy API credentials with write access to at least one API-writable resource type (products, recipes, stock, users, or chores), corresponding to the PR:L CVSS metric. A victim user must subsequently view the content containing the injected payload in a browser, as required by UI:R in the CVSS vector. No special non-default configuration is required - the double-decode flaw is in the base API controller and applies to all API field submissions by default. Exploitation is limited by the authentication requirement: unauthenticated external attackers cannot trigger the vulnerability without first obtaining API credentials. In single-user deployments, the victim and attacker are the same account, making exploitation self-defeating. Multi-user and shared Grocy instances where low-privileged accounts have API access are the realistic at-risk deployments.

Impact

Real-world risk is meaningful within its deployment population. The CVSS 8.7 score is driven by Scope:Changed (S:C) and high C/I impact, which is appropriate for stored XSS that crosses the victim-boundary. The PR:L requirement (authenticated API user) is the primary limiting factor - unauthenticated exploitation is not possible. UI:R is required, meaning a victim must navigate to or load content containing the injected payload; this is a normal condition for any Grocy user browsing their own data. AC:L indicates no special timing, race, or configuration conditions are needed once the attacker has API credentials. No EPSS data was provided, so exploitation probability cannot be quantitatively assessed. No CISA KEV listing exists, and no public POC has been identified, reducing immediate urgency. However, the vulnerability class (sanitizer bypass via deliberate post-processing reversal) is trivially exploitable by any authenticated API user and affects a wide surface area of writable fields. The SSVC technical impact is total for affected users' sessions. For self-hosted single-user deployments, risk is lower; for shared or multi-user Grocy instances, the risk is elevated because a low-privileged account can compromise higher-privileged sessions.

Exploit ScenarioDerived

An attacker with valid Grocy API credentials submits a crafted product name or recipe field containing an entity-encoded XSS payload - for example, a script tag written with < and > characters. HTMLPurifier processes the input and encodes the entities, but the subsequent reversal in GetParsedAndFilteredRequestBody reconstructs the live script tag, which is then written to the database. When another user - potentially an administrator - browses to the product list or recipe page, the script executes in their browser, allowing the attacker to steal session cookies, capture credentials, or perform actions on the victim's behalf. No public POC is identified, but the vulnerability mechanics are straightforward for any developer familiar with PHP string manipulation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 05, 2026

Stored XSS in Grocy's API layer allows authenticated users to permanently inject arbitrary script tags into shared application data, executing in the browsers of any user who views affected records. The vulnerability spans all API-writable resource types - products, recipes, stock entries, user records, and chores - making it broadly exploitable across the application. The CVSS score of 8.7 with Scope:Changed reflects the cross-user impact characteristic of stored XSS: a single low-privileged write yields high confidentiality and integrity impact against other users' sessions. No public exploit code or CISA KEV listing is identified at time of analysis.

RemediationAI

The primary fix is to remove or disable the post-HTMLPurifier entity-reversal logic in controllers/Api/BaseApiController.php - specifically, the string replacement calls that convert &amp;lt; back to <, &amp;gt; back to >, and &amp;amp; back to &. HTMLPurifier's encoded output should be stored and rendered as-is, or the application should adopt a single, trusted sanitization pass at display time rather than at input time. No vendor-released patched version has been identified from available data; administrators should monitor the Grocy GitHub repository at https://github.com/grocy/grocy for commits addressing this issue. As a compensating control pending a patch, administrators of multi-user instances should restrict API write access to trusted accounts only, reducing the pool of users who can introduce malicious payloads. Restricting API authentication to administrator-level accounts removes the PR:L attack surface but may break integrations. Single-user self-hosted deployments face lower risk since the attacker and victim are the same person.

Affected VersionsENISA

grocy 0

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Grocy is a self-hosted PHP ERP for household and grocery management, with an API layer rooted in controllers/Api/BaseApiController.php. The vulnerable function GetParsedAndFilteredRequestBody applies HTMLPurifier to incoming API field values, which is the correct first step - HTMLPurifier converts dangerous characters like < and > into their HTML-entity equivalents (&lt;, &gt;) to neutralize them. However, the code then explicitly reverses this neutralization by performing string replacements: &amp;lt; → <, &amp;gt; → >, and &amp;amp; → &. This post-processing step reconstructs the exact HTML/script tags that HTMLPurifier was designed to eliminate. The root cause maps to CWE-79 (Improper Neutralization of Input During Web Page Generation) - specifically a sanitization bypass via developer-introduced double-decode. The affected CPE is not formally registered in NVD; the product is identified via its GitHub repository at https://github.com/grocy/grocy. Because the stored content is rendered elsewhere in the application without re-sanitization, the injected payload persists and fires for all users who encounter the record.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c) PRIMARY 8.7 HIGH
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
vuln.today AI 8.7 HIGH

API write requires authenticated session (PR:L); victim must view stored content (UI:R); stored XSS crosses user boundary (S:C) enabling session theft (C:H) and content manipulation (I:H).

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).

CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

Grocy's API request-body parser (controllers/Api/BaseApiController.php, GetParsedAndFilteredRequestBody) purifies incoming field values with HTMLPurifier, then manually reverses HTML-entity encoding of the resulting output by replacing &amp;lt;, &amp;gt;, and &amp;amp; back to <, >, and & immediately after purification. This double-decode reconstructs live HTML/script tags from the entity-encoded form that HTMLPurifier produced to neutralize them, re-introducing stored XSS across API-writable fields (products, recipes, stock, users, chores, and others) that are rendered elsewhere without re-sanitization.

Executive ViewAI

Why It Matters

Grocy's API contains a stored cross-site scripting vulnerability (CVE-2026-71236, CVSS 8.7) allowing authenticated users to inject and persistently execute malicious scripts within shared application data. Any user accessing affected records will execute the attacker's script in their browser session, compromising data confidentiality and integrity across all Grocy deployments without an available patch.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: restrict API access via network segmentation to trusted internal networks only; enforce principle of least privilege on user roles and API permissions; deploy WAF rules to filter XSS payload attempts; implement strict output encoding on all user-facing record displays; enable Web Application Firewall protection specifically targeting stored XSS patterns; conduct weekly audits of API modification logs for anomalous activity; implement Content Security Policy (CSP) headers to restrict inline script execution.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Low
self-hosted hobby/household tool, limited enterprise footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy