Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain Grocy API credentials (PR:L)
-
DeliverySubmit entity-encoded XSS payload via writable API field
-
ExploitDouble-decode in BaseApiController reconstructs live script tag
-
InstallPayload persists in Grocy database
-
C2Victim user loads affected content in browser (UI:R)
-
ExecuteInjected script executes in victim session
-
ImpactSession 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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 &lt; back to <, &gt; back to >, and &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
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 (<, >) to neutralize them. However, the code then explicitly reverses this neutralization by performing string replacements: &lt; → <, &gt; → >, and &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
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
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).
Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).
CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
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 &lt;, &gt;, and &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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-53309
GHSA-c924-wcfj-cr8j
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB