CVE-2026-85598 Grav 2.0.0 through 2.0.17 Stored XSS via Modular Pages
Authenticated attackers can inject malicious Twig code into modular pages, leading to stored XSS and potential admin session hijacking.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-85598?
CVE-2026-85598 is a medium-severity cross-site scripting vulnerability in getgrav grav, published on 4 Sep 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Grav versions 2.0.0 through 2.0.17 fail to apply save-time XSS detection to modular pages, allowing authenticated page editors to store Twig-assembled XSS payloads. Attackers with page-edit rights can create modular pages with malicious Twig code that executes in visitor browsers when the parent page is rendered, including in administrator sessions.
Weakness: CWE-79
Which versions are affected by CVE-2026-85598?
How do I fix CVE-2026-85598?
No fix has been published for CVE-2026-85598 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-85598 being exploited?
There is no known exploitation of CVE-2026-85598 in the wild and no public exploit code.
Sources
Also known as GHSA-fg8g-663r-f366, GHSA-xm9c-rv38-f24j.