Severity by source
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Network-reachable stored XSS; low privileges (admin.pages); passive viewer required; scope changes to victim browser; low C and I for session/nonce impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Grav contains a stored cross-site scripting vulnerability in shortcode-core attribute handlers where the XSS detection scan only matches payloads containing literal angle brackets, allowing shortcode parameters to bypass validation. Attackers with admin.pages permission can inject malicious JavaScript through shortcode attributes that execute in any viewer's browser, including administrators, enabling session hijacking via admin nonce theft.
AnalysisAI
Stored XSS in Grav CMS shortcode-core attribute handlers allows authenticated users with admin.pages permission to inject persistent JavaScript payloads that bypass the CMS's XSS detection filter and execute in any visitor's browser. The filter flaw is root-cause critical: it only flags payloads containing literal angle brackets, leaving event-handler and attribute-based injection vectors entirely unblocked. When an administrator views an affected page, the injected script can steal admin session nonces, enabling full account takeover. No public exploit code or CISA KEV listing has been identified at time of analysis, but the impact chain - from low-privilege content editor to admin session hijack - is straightforward.
Technical ContextAI
Grav is a flat-file PHP CMS. The shortcode-core plugin provides a templating shortcode syntax that allows page authors to embed rich content via bracketed parameters. The attribute handlers in shortcode-core parse and render user-supplied parameter values into HTML output. The CWE-79 root cause is an incomplete input sanitization strategy: the XSS scan relies on detecting literal '<' or '>' characters in attribute values, which blocks only the most naive payloads (e.g., <script>) while leaving event-handler injections (e.g., onmouseover=fetch(...)) and other bracket-free payloads unexamined. The affected CPE is cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* - no version ceiling is specified in the available intelligence, meaning all tracked Grav versions are potentially affected until a patched release is confirmed.
RemediationAI
Consult the vendor's GitHub Security Advisory at https://github.com/getgrav/grav/security/advisories/GHSA-q5fw-vpqc-fgph for the specific patched version - an exact fixed release version was not independently confirmed in the available intelligence, so the advisory is the authoritative source. Until a patch is applied, the most effective compensating control is to revoke or tightly restrict the admin.pages permission to only fully trusted users, since this permission is the sole prerequisite for exploitation. Disabling the shortcode-core plugin entirely removes the attack surface but will break any pages relying on shortcode syntax. Deploying a Content Security Policy (CSP) header that disallows inline scripts (script-src 'self') reduces the impact of any injected payload, though CSP configuration must be tested against legitimate Grav functionality to avoid breakage. Generic WAF rules that block angle brackets in request bodies will not mitigate this vulnerability, as the bypass specifically avoids angle brackets.
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a Server-Side Template Injection (SSTI) vulnerability exists
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, due to improper authorization checks when modifying critical
A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug
Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a
GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a user with admin panel access and permissions to create or e
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S
Grav is an open-source, flat-file content management system. Rated high severity (CVSS 8.8), this vulnerability is remot
Grav is an open-source, flat-file content management system. Rated high severity (CVSS 8.8), this vulnerability is remot
Grav is an open-source, flat-file content management system. Rated high severity (CVSS 8.8), this vulnerability is remot
Grav is an open-source, flat-file content management system. Rated high severity (CVSS 8.8), this vulnerability is remot
Grav is an open-source, flat-file content management system. Rated high severity (CVSS 8.8), this vulnerability is remot
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-46181
GHSA-r7ww-mw2x-mj59