Cross-Site Scripting Vulnerability in Grav by GetGrav
CVE-2026-86197
5.1MEDIUM
What is CVE-2026-86197?
Grav prior to version 2.0.20 has a security vulnerability that allows for cross-site scripting via the Twig sandbox policy. The flaw permits page editors to register malicious JavaScript and CSS assets without adequate output escaping. Consequently, these scripts can be injected into the document head and executed for all website visitors, including administrators. This highlights the necessity for users to update to the latest version to safeguard against potential exploitation.
Affected Version(s)
grav 0 < 2.0.20
grav 2.0.20
