CVE-2026-71236

Grocy - Stored XSS via HTMLPurifier Output Double-Decode

Published Aug 5, 2026 CVSS 3.1 · 8.7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Grocy's API request‑body parser (controllers/Api/BaseApiController.php, GetParsedAndFilteredRequestBody) sanitizes incoming field values with HTMLPurifier and then manually reverses the HTML‑entity encoding of the purified output by replacing &amp;lt;, &amp;gt;, and &amp;amp; with &lt;, &gt;, and & immediately after purification. This double‑decode process restores any raw HTML and script tags that had been neutralized. As a result, an attacker can store malicious content in any API‑writable field—producing stored XSS when the data is rendered without re‑sanitization. The flaw enables arbitrary script execution in the browsers of any user who views the affected page, compromising confidentiality, integrity, and availability of the application’s data.

Affected Systems

The vulnerability affects installations of Grocy across all modules that accept API input for text fields. All current versions lacking the double‑decode fix are potentially exploitable until a patch is applied. No specific version information is available, so administrators should assume all released releases are vulnerable until confirmed otherwise.

Risk and Exploitability

With a CVSS score of 8.7, the issue is classified as high severity. The EPSS score is < 1%, indicating a very low probability of exploitation, yet the vulnerability remains not listed in CISA’s KEV catalog. Attackers can exploit the flaw via the network by sending crafted API requests that include script tags; attackers do not need elevated privileges beyond write access to the vulnerable fields. The effect is the execution of malicious scripts in the context of any user who views the stored data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Grocy to the latest release that removes the double‑decode logic
  • Disable or restrict API endpoints and fields that allow arbitrary HTML storage until the patch is applied
  • Enforce a strict Content Security Policy and implement server‑side output escaping on all rendered pages to mitigate stored XSS

Generated by OpenCVE AI on August 10, 2026 at 21:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
History
Type Values Removed Values Added
Description 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. 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.
Type Values Removed Values Added
Title Grocy: Stored XSS via HTMLPurifier Output Double-Decode Grocy - Stored XSS via HTMLPurifier Output Double-Decode
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N'}

cvssV3_1

{'score': 8.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N'}

Type Values Removed Values Added
First Time appeared Grocy
Grocy grocy
Vendors & Products Grocy
Grocy grocy
Type Values Removed Values Added
Description 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.
Title Grocy: Stored XSS via HTMLPurifier Output Double-Decode
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
TuranSec
Published
Updated
Aug 10, 2026, 11:45 AM
Reserved
Aug 5, 2026, 10:53 AM
Status
Deferred
Published
Aug 5, 2026, 11:16 AM
Modified
Aug 26, 2026, 5:13 PM