CVE-2026-85598

Grav 2.0.0 before 2.0.18 Stored XSS via Modular Pages

Published Sep 4, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
Grav versions 2.0.0 before 2.0.18 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.

Analysis

AI-generated

Technical impact

Grav versions 2.0.0 before 2.0.18 fail to apply save‑time XSS detection to modular pages, allowing authenticated page editors to store Twig‑assembled XSS payloads that execute in any browser rendering the parent page, including visitor and administrator sessions. This can lead to data theft, defacement, or further compromise of the site.

Affected Systems

The affected vendor is getgrav; the product is Grav CMS. All installations running Grav 2.0.0 up to and including 2.0.17 are vulnerable. No specific sub‑version details beyond this range are available.

Risk and Exploitability

The CVSS score of 5.1 indicates a medium overall risk, and the vulnerability is not listed in the CISA KEV catalog. Exploitability requires authenticated page‑editor privileges; an attacker must have editing rights to inject the payload. While non‑authenticated users cannot exploit directly, once malicious content is stored it can affect any visitor or administrator viewing the page. The EPSS score of 0.00256 indicates a very low probability of exploitation, and combined with the medium CVSS and the need for edit permissions, the threat surface is limited compared to publicly exploitable flaws.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Grav to version 2.0.18 or newer, where save‑time XSS detection is applied to modular pages.
  • Revoke page‑edit privileges from all untrusted or questionable accounts and conduct an audit of existing page content for malicious Twig code.
  • Remove or sanitize any detected malicious Twig payloads from modular pages and replace them with safe content.

Generated by OpenCVE AI on November 22, 2026 at 22:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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. Grav versions 2.0.0 before 2.0.18 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.
Title Grav 2.0.0 through 2.0.17 Stored XSS via Modular Pages Grav 2.0.0 before 2.0.18 Stored XSS via Modular Pages
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Grav 2.0.0 through 2.0.17 Stored XSS via Modular Pages
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-79
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': '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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 20, 2026, 12:29 PM
Reserved
Sep 4, 2026, 11:00 AM
Status
Deferred
Published
Sep 4, 2026, 12:17 PM
Modified
Nov 20, 2026, 1:18 PM