Stored XSS via unscanned modular-page Twig
Published Sep 4, 2026 · Updated Sep 4, 2026
Stored XSS in Grav 2.0.0 through 2.0.17 allows remote authenticated users to execute JavaScript in visitors' browsers via modular pages. The save-time Security::detectXssInEditorContent guard omits the modular-page branch even though the render path processes modular body content as Twig, allowing concatenated markup to evade literal-source checks. Page-edit rights are required, and execution occurs when a theme renders the malicious module through its parent page, including during administrator sessions.
Summary
What happened
Stored XSS in Grav 2.0.0 through 2.0.17 allows remote authenticated users to execute JavaScript in visitors' browsers via modular pages. The save-time Security::detectXssInEditorContent guard omits the modular-page branch even though the render path processes modular body content as Twig, allowing concatenated markup to evade literal-source checks. Page-edit rights are required, and execution occurs when a theme renders the malicious module through its parent page, including during administrator sessions.
The record
- CVE
- CVE-2026-85598
- Published
- Sep 4, 2026
- Updated
- Sep 4, 2026
- Vendor
- Grav
- Product
- Grav
- Classifications
- CWE-79, CWE-693, T1059.007
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Sep 4, 2026CVE publishedPublication date reported by the CVE source.
- Sep 4, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2.0.0 <=2.0.24
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Vendor-verified modular-page proof of conceptfunctional · validated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo