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

Impact

Grocy’s API request‑body parser sanitizes incoming values with HTMLPurifier, but then manually reverses the entity encoding of the purified output. The double‑decode reinstates raw HTML and script tags that were originally neutralized. This flaw permits an attacker to store malicious content in any API‑writable field—products, recipes, stock, users, chores, and others—leading to stored XSS when the data is later rendered without re‑sanitization. The resulting compromise allows arbitrary code execution in the browsers of any user viewing the affected page, threatening confidentiality, integrity, and availability of the application’s users and 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, the issue is classified as high severity. No EPSS data is available, and the vulnerability is 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 5, 2026 at 12:26 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 5, 2026 at 12:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

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-05T10:56:28.138Z

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

Link: CVE-2026-71236

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T12:30:12Z

Weaknesses
  • CWE-79

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