Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-72832: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav

0
Medium
Published: 08/14/2026 (08/14/2026, 12:31:26 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Affected software

GitHub Actionsmore threats →ai
getgrav/grav
pkg:github/getgrav/grav
Affected versions
<2.0.13 >=1.5.2

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

AILast updated: 08/14/2026, 12:12:28 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses