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-75834: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav

0
Medium
VulnerabilityCVE-2026-75834cvecve-2026-75834
Published: 08/18/2026 (08/18/2026, 11:19:45 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
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:N/VI:N/VA:N/SC:L/SI:L/SA:N

Affected software

GitHub Actionsmore threats →ai
getgrav/grav
pkg:github/getgrav/grav
Affected versions
<2.0.14

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/18/2026, 11:51:29 UTC

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.

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-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 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