CVE-2026-61453: Grav before 2.0.1 XSS via Twig String Concatenation

Published Jul 15, 2026
·
Updated

Grav v2.0.0 contains a cross-site scripting vulnerability (fixed in 2.0.1). The XSS blueprint validator (Security::detectXss()) runs on raw page content before Twig processing. When Twig content processing is enabled (twigcontent.processenabled: true), an attacker with page-write API permission can use Twig's string concatenation operator (~) to dynamically construct event handler names, dangerous tag names, or dangerous protocols at render time (e.g. {% set x = "on" ~ "error" %}). The validator sees only the harmless Twig expression and allows the content, but after Twig rendering the output (rendered via {{ page.content|raw }}) contains an active payload such as <img src=1 onerror=alert(1)>, executing arbitrary JavaScript in visitors' browsers.

Affected Software

1 affected component
Grav Grav<2.0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Grav to a version that resolves this vulnerability.

    Fixed in 2.0.1
  2. Configuration

    Disable Twig content processing by setting twig_content.process_enabled to false to prevent Twig string concatenation from dynamically constructing XSS payloads at render time.

    Grav twig_content.process_enabled twig_content.process_enabled = false

Event History

Jul 15, 2026
CVE Published
via MITRE·11:25 AM
Data Sourced
via MITRE·11:25 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:18 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-61453?

The severity of CVE-2026-61453 is medium, with a score of 5.1.

2

What vulnerability does CVE-2026-61453 address?

CVE-2026-61453 addresses a cross-site scripting (XSS) vulnerability in Grav before version 2.0.1.

3

How do I fix CVE-2026-61453?

To fix CVE-2026-61453, upgrade Grav to version 2.0.1 or later.

4

What version of Grav is affected by CVE-2026-61453?

Grav versions prior to 2.0.1 are affected by CVE-2026-61453.

5

Who can exploit CVE-2026-61453?

An attacker with page-write API permission can exploit CVE-2026-61453 to execute XSS attacks.

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