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.
Published: 2026-09-04
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Grav versions 2.0.0 through 2.0.17 do not sanitize Twig content when modular pages are saved, permitting authenticated page editors to embed malicious scripts. The stored payload executes in all browsers that render the parent page, including visitor browsers and administrator sessions, leading to potential 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. Due to the lack of an EPSS score, the exact likelihood of exploitation is unknown, but the medium CVSS combined with the necessity of edit permissions limits the threat surface compared to publicly exploitable flaws.

Generated by OpenCVE AI on September 4, 2026 at 12:24 UTC.

Remediation

No vendor fix or workaround currently provided.

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 September 4, 2026 at 12:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 04 Sep 2026 11:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-04T11:30:01.461Z

Reserved: 2026-09-04T11:00:28.730Z

Link: CVE-2026-85598

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-04T12:17:23.340

Modified: 2026-09-04T12:17:23.340

Link: CVE-2026-85598

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T12:30:17Z

Weaknesses
  • CWE-79

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