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.
Published: 2026-08-05
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

References
History

Mon, 10 Aug 2026 12:00:00 +0000

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.

Mon, 10 Aug 2026 11:30:00 +0000

Type Values Removed Values Added
Title Grocy: Stored XSS via HTMLPurifier Output Double-Decode Grocy - Stored XSS via HTMLPurifier Output Double-Decode

Wed, 05 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 05 Aug 2026 13:15:00 +0000

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'}


Wed, 05 Aug 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Grocy
Grocy grocy
Vendors & Products Grocy
Grocy grocy

Wed, 05 Aug 2026 11:15:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T11:45:38.198Z

Reserved: 2026-08-05T10:53:53.175Z

Link: CVE-2026-71236

cve-icon Vulnrichment

Updated: 2026-08-05T12:50:57.312Z

cve-icon NVD

Status : Received

Published: 2026-08-05T11:16:26.377

Modified: 2026-08-10T12:17:26.090

Link: CVE-2026-71236

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T22:00:05Z

Weaknesses
  • CWE-79

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