CVE-2026-72832: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav
Grav versions from 1.5.2 through 2.0.12 contain a stored cross-site scripting vulnerability in the Security::detectXss() function (system/src/Grav/Common/Security.php). The event-handler scan is anchored at `<` and uses `[^>]*?`, which cannot cross the first literal `>`; when a `>` appears inside a quoted attribute value the browser keeps the tag open and parses a subsequent event handler (e.g. onerror), so the detector and browser disagree. A page editor without admin.super privileges can save page content such as `<img src=x title=">" onerror=alert(document.domain)>`, which is accepted, stored, and executed in the site origin when any visitor (including unauthenticated users) views the page. Fixed in 2.0.13.
AI Analysis
Technical Summary
The vulnerability in Grav arises from improper neutralization of input during web page generation, specifically in the Security::detectXss() function located in system/src/Grav/Common/Security.php. The detection mechanism anchors scanning at the '<' character and uses a pattern that cannot cross the first literal '>' character. However, if a '>' appears inside a quoted attribute value, browsers keep the tag open and parse subsequent event handlers such as 'onerror'. This discrepancy allows a page editor with limited privileges to inject stored XSS payloads (e.g., an image tag with an onerror alert) that are accepted, stored, and executed in the context of the site origin when any visitor views the page. The issue affects Grav versions from 1.5.2 up to and including 2.0.12 and is resolved in version 2.0.13.
Potential Impact
An attacker with page editor privileges (without admin.super) can inject malicious scripts that execute in the browsers of any site visitors, including unauthenticated users. This can lead to theft of sensitive information, session hijacking, or other malicious actions within the site's origin context. The CVSS 4.0 base score is 5.1, indicating a medium severity vulnerability with network attack vector, low complexity, no privileges required beyond page editor, and user interaction needed.
Mitigation Recommendations
Upgrade Grav to version 2.0.13 or later where this vulnerability is fixed. No other official remediation or temporary fixes are indicated. Until patched, restrict page editor privileges carefully and monitor for suspicious content submissions.
CVE-2026-72832: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav
Description
Grav versions from 1.5.2 through 2.0.12 contain a stored cross-site scripting vulnerability in the Security::detectXss() function (system/src/Grav/Common/Security.php). The event-handler scan is anchored at `<` and uses `[^>]*?`, which cannot cross the first literal `>`; when a `>` appears inside a quoted attribute value the browser keeps the tag open and parses a subsequent event handler (e.g. onerror), so the detector and browser disagree. A page editor without admin.super privileges can save page content such as `<img src=x title=">" onerror=alert(document.domain)>`, which is accepted, stored, and executed in the site origin when any visitor (including unauthenticated users) views the page. Fixed in 2.0.13.
CVSS v4.0
Score 5.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Grav arises from improper neutralization of input during web page generation, specifically in the Security::detectXss() function located in system/src/Grav/Common/Security.php. The detection mechanism anchors scanning at the '<' character and uses a pattern that cannot cross the first literal '>' character. However, if a '>' appears inside a quoted attribute value, browsers keep the tag open and parse subsequent event handlers such as 'onerror'. This discrepancy allows a page editor with limited privileges to inject stored XSS payloads (e.g., an image tag with an onerror alert) that are accepted, stored, and executed in the context of the site origin when any visitor views the page. The issue affects Grav versions from 1.5.2 up to and including 2.0.12 and is resolved in version 2.0.13.
Potential Impact
An attacker with page editor privileges (without admin.super) can inject malicious scripts that execute in the browsers of any site visitors, including unauthenticated users. This can lead to theft of sensitive information, session hijacking, or other malicious actions within the site's origin context. The CVSS 4.0 base score is 5.1, indicating a medium severity vulnerability with network attack vector, low complexity, no privileges required beyond page editor, and user interaction needed.
Mitigation Recommendations
Upgrade Grav to version 2.0.13 or later where this vulnerability is fixed. No other official remediation or temporary fixes are indicated. Until patched, restrict page editor privileges carefully and monitor for suspicious content submissions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-10T15:13:41.486Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7f0286bf8831d539fec90a
Added to database: 08/14/2026, 11:56:54 UTC
Last enriched: 08/14/2026, 12:12:28 UTC
Last updated: 08/14/2026, 20:51:45 UTC
Views: 7
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.