CVE-2026-86197: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav
Description
Grav versions before 2.0.20 have a cross-site scripting (XSS) vulnerability in the Twig sandbox policy related to the addJs and addCss methods. This flaw allows page editors to inject arbitrary scripts via malicious assets or attributes, which are rendered unescaped in the document head and executed for all visitors, including administrators.
CVSS v4.0
Score 5.1medium
Affected software
getgrav
grav
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-86197 describes a cross-site scripting vulnerability in Grav prior to version 2.0.20. The issue arises from improper output escaping in the Twig sandbox policy that allowlists the addJs and addCss methods on Grav\Common\Assets. Malicious page editors can exploit this by registering harmful assets or injecting attributes that are rendered unescaped in the document head tags, leading to script execution in the context of all visitors, including administrators.
Potential Impact
Successful exploitation allows an attacker with page editor privileges to execute arbitrary JavaScript in the browsers of site visitors and administrators. This can lead to session hijacking, privilege escalation, or other malicious actions within the context of the affected Grav site. The vulnerability affects the confidentiality and integrity of user sessions and site content.
Mitigation Recommendations
A fix is available in Grav version 2.0.20. Users should upgrade to version 2.0.20 or later to remediate this vulnerability. No other mitigations are specified in the advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-05T11:52:36.821Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9c0d23acd9273b49d9718b
Added to database: 09/05/2026, 12:37:55 UTC
Last enriched: 10/09/2026, 21:24:43 UTC
Last updated: 10/20/2026, 18:48:24 UTC
Views: 93
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.