CVE-2026-85598: Grav 2.0.0 through 2.0.17 Stored XSS via Modular Pages

Published Sep 4, 2026
·
Updated

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.

Affected Software

1 affected component
Grav Grav>=2.0.0<=2.0.17

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Operational

    After upgrading Grav to 2.0.18, review modular pages for any stored Twig-assembled XSS payloads and remove them as needed, especially those that could execute when parent pages render (including in administrator sessions).

Event History

Sep 4, 2026
CVE Published
via MITRE·11:30 AM
Data Sourced
via MITRE·11:30 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs authenticated page-editor rights in Grav. They must be able to create or modify modular pages and include malicious Twig-assembled content.

2

Who is exposed when a malicious modular page is rendered?

Visitors to the parent page can have the stored payload execute in their browsers. This includes administrators who render the affected parent page in an administrative session.

3

Are standard page types affected?

The issue is specifically described as missing save-time XSS detection for modular pages. The provided information does not establish that non-modular page types are affected.

4

How can I identify potentially affected content?

Review modular pages created or edited by users with page-edit rights for Twig-assembled content or unexpected script-like payloads. Pay particular attention to modular pages whose parent pages are viewed by administrators.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203