Grocy's API request-body parser (controllers/Api/BaseApiController.php, GetParsedAndFilteredRequestBody) purifies incoming field values with… (CVE-2026-71236)
Grocy's API request-body parser improperly reverses HTML entity encoding after sanitizing input with HTMLPurifier, which reintroduces executable HTML/script tags. This flaw leads to stored cross-site scripting (XSS) vulnerabilities in multiple API-writable fields such as products, recipes, stock, users, and chores. The vulnerability has a high severity score of 8.7 and affects confidentiality and integrity without impacting availability.
AI Analysis
Technical Summary
The vulnerability in Grocy's API request-body parser (specifically in controllers/Api/BaseApiController.php, GetParsedAndFilteredRequestBody) arises because after purifying incoming field values with HTMLPurifier, the code manually reverses HTML entity encoding by replacing &lt;, &gt;, and &amp; back to <, >, and &. This double-decoding negates the neutralization performed by HTMLPurifier, effectively reconstructing live HTML/script tags that enable stored XSS attacks. These attacks can occur across various API-writable fields that are later rendered without additional sanitization.
Potential Impact
Successful exploitation allows an attacker with API write privileges to inject malicious scripts into fields such as products, recipes, stock, users, and chores. These scripts execute in the context of users viewing the affected data, compromising confidentiality and integrity by enabling actions like session hijacking or unauthorized actions. Availability is not impacted. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using API endpoints that accept user input for affected fields or implement additional sanitization on the server side before rendering. Monitor vendor channels for official patches or updates addressing this issue.
Grocy's API request-body parser (controllers/Api/BaseApiController.php, GetParsedAndFilteredRequestBody) purifies incoming field values with… (CVE-2026-71236)
Description
Grocy's API request-body parser improperly reverses HTML entity encoding after sanitizing input with HTMLPurifier, which reintroduces executable HTML/script tags. This flaw leads to stored cross-site scripting (XSS) vulnerabilities in multiple API-writable fields such as products, recipes, stock, users, and chores. The vulnerability has a high severity score of 8.7 and affects confidentiality and integrity without impacting availability.
CVSS v3.1
Score 8.7high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Grocy's API request-body parser (specifically in controllers/Api/BaseApiController.php, GetParsedAndFilteredRequestBody) arises because after purifying incoming field values with HTMLPurifier, the code manually reverses HTML entity encoding by replacing &lt;, &gt;, and &amp; back to <, >, and &. This double-decoding negates the neutralization performed by HTMLPurifier, effectively reconstructing live HTML/script tags that enable stored XSS attacks. These attacks can occur across various API-writable fields that are later rendered without additional sanitization.
Potential Impact
Successful exploitation allows an attacker with API write privileges to inject malicious scripts into fields such as products, recipes, stock, users, and chores. These scripts execute in the context of users viewing the affected data, compromising confidentiality and integrity by enabling actions like session hijacking or unauthorized actions. Availability is not impacted. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using API endpoints that accept user input for affected fields or implement additional sanitization on the server side before rendering. Monitor vendor channels for official patches or updates addressing this issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-c924-wcfj-cr8j
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-71236"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a73574cbf8831d53915a36c
Added to database: 08/05/2026, 15:31:24 UTC
Last enriched: 08/05/2026, 17:44:14 UTC
Last updated: 09/18/2026, 10:01:33 UTC
Views: 55
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.