CVE-2026-61453: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav
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 (twig_content.process_enabled: 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.
AI Analysis
Technical Summary
CVE-2026-61453 is a cross-site scripting vulnerability in Grav CMS v2.0.0. The vulnerability occurs because the XSS blueprint validator (Security::detectXss()) analyzes raw page content prior to Twig template processing. When Twig content processing is enabled, an attacker with page-write API permission can use Twig's string concatenation operator (~) to dynamically generate event handler attributes or dangerous tags that the validator does not detect. After Twig renders the content, the output includes active JavaScript payloads such as <img src=1 onerror=alert(1)>, enabling arbitrary script execution in users' browsers. This vulnerability is resolved in version 2.0.1.
Potential Impact
An attacker with page-write API permission can inject malicious JavaScript code that executes in the browsers of visitors viewing the affected pages. This can lead to cross-site scripting attacks, potentially compromising user sessions, stealing sensitive information, or performing actions on behalf of users. The vulnerability requires the attacker to have page-write API access and user interaction (UI required).
Mitigation Recommendations
Upgrade Grav CMS to version 2.0.1 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Since this is not a cloud service, users must apply the patch themselves.
CVE-2026-61453: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav
Description
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 (twig_content.process_enabled: 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.
CVSS v4.0
Score 5.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-61453 is a cross-site scripting vulnerability in Grav CMS v2.0.0. The vulnerability occurs because the XSS blueprint validator (Security::detectXss()) analyzes raw page content prior to Twig template processing. When Twig content processing is enabled, an attacker with page-write API permission can use Twig's string concatenation operator (~) to dynamically generate event handler attributes or dangerous tags that the validator does not detect. After Twig renders the content, the output includes active JavaScript payloads such as <img src=1 onerror=alert(1)>, enabling arbitrary script execution in users' browsers. This vulnerability is resolved in version 2.0.1.
Potential Impact
An attacker with page-write API permission can inject malicious JavaScript code that executes in the browsers of visitors viewing the affected pages. This can lead to cross-site scripting attacks, potentially compromising user sessions, stealing sensitive information, or performing actions on behalf of users. The vulnerability requires the attacker to have page-write API access and user interaction (UI required).
Mitigation Recommendations
Upgrade Grav CMS to version 2.0.1 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Since this is not a cloud service, users must apply the patch themselves.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-09T14:06:14.017Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a57772068715ace43a93bcf
Added to database: 07/15/2026, 12:03:44 UTC
Last enriched: 07/15/2026, 12:18:39 UTC
Last updated: 07/15/2026, 18:33:10 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.