CVE-2026-75834: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav
Grav before 2.0.14 contains a stored cross-site scripting vulnerability in the Security::detectXss() function (system/src/Grav/Common/Security.php). All XSS detection patterns use the PCRE /u (UTF-8) modifier, so a single invalid UTF-8 byte anywhere in page content causes preg_match() to return false for every pattern, silently bypassing the save-time XSS safety gate (Validation::checkSafety()). An authenticated attacker with page-edit permissions (without the security.xss_whitelist privilege) can store malicious JavaScript that executes in the browser of a visitor who views the affected page.
AI Analysis
Technical Summary
Grav before version 2.0.14 contains a stored XSS vulnerability in the Security::detectXss() function located in system/src/Grav/Common/Security.php. The issue is due to all XSS detection patterns using the PCRE /u (UTF-8) modifier, which causes preg_match() to return false if any invalid UTF-8 byte is present in the page content. This failure silently bypasses the save-time XSS safety gate (Validation::checkSafety()). An authenticated attacker with page-edit permissions but without the security.xss_whitelist privilege can exploit this to store malicious JavaScript that executes in the browser of any visitor viewing the compromised page.
Potential Impact
An attacker with authenticated page-edit permissions can inject malicious JavaScript code into pages, which will execute in the browsers of visitors who view those pages. This can lead to typical XSS impacts such as session hijacking, defacement, or redirection to malicious sites. The vulnerability does not require elevated privileges beyond page-edit permissions and does not require user interaction beyond viewing the affected page.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, restrict page-edit permissions to trusted users only and consider additional input validation or sanitization controls. Monitor official Grav project communications for updates on fixes.
CVE-2026-75834: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav
Description
Grav before 2.0.14 contains a stored cross-site scripting vulnerability in the Security::detectXss() function (system/src/Grav/Common/Security.php). All XSS detection patterns use the PCRE /u (UTF-8) modifier, so a single invalid UTF-8 byte anywhere in page content causes preg_match() to return false for every pattern, silently bypassing the save-time XSS safety gate (Validation::checkSafety()). An authenticated attacker with page-edit permissions (without the security.xss_whitelist privilege) can store malicious JavaScript that executes in the browser of a visitor who views the affected page.
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
Grav before version 2.0.14 contains a stored XSS vulnerability in the Security::detectXss() function located in system/src/Grav/Common/Security.php. The issue is due to all XSS detection patterns using the PCRE /u (UTF-8) modifier, which causes preg_match() to return false if any invalid UTF-8 byte is present in the page content. This failure silently bypasses the save-time XSS safety gate (Validation::checkSafety()). An authenticated attacker with page-edit permissions but without the security.xss_whitelist privilege can exploit this to store malicious JavaScript that executes in the browser of any visitor viewing the compromised page.
Potential Impact
An attacker with authenticated page-edit permissions can inject malicious JavaScript code into pages, which will execute in the browsers of visitors who view those pages. This can lead to typical XSS impacts such as session hijacking, defacement, or redirection to malicious sites. The vulnerability does not require elevated privileges beyond page-edit permissions and does not require user interaction beyond viewing the affected page.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, restrict page-edit permissions to trusted users only and consider additional input validation or sanitization controls. Monitor official Grav project communications for updates on fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-18T10:57:39.580Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a844366c6e8be03322294f6
Added to database: 08/18/2026, 11:35:02 UTC
Last enriched: 08/18/2026, 11:51:29 UTC
Last updated: 08/18/2026, 19:36:03 UTC
Views: 5
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.