CyberRota Analysis
AI-GeneratedGrav versions prior to 2.0.20 are vulnerable to a cross-site scripting (XSS) flaw that allows page editors to inject malicious scripts through the addJs and addCss methods, due to inadequate output escaping in the Twig sandbox policy. This vulnerability can lead to the execution of arbitrary scripts in the document head, affecting all visitors, including administrators. Organizations using Grav for content management should prioritize patching this issue to mitigate potential exploitation risks.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Grav before 2.0.20 contains a cross-site scripting vulnerability in the Twig sandbox policy that allowlists addJs and addCss methods on Grav\Common\Assets without proper output escaping. Page editors can inject arbitrary script by registering malicious assets or injecting attributes, which are rendered unescaped into document head tags and executed for all visitors including administrators.