PT-2026-86422 · Grav · Grav
CVSS v4.0
5.1
Medium
| Vector | AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
Name of the Vulnerable Software and Affected Versions
Grav versions prior to 2.0.20
Description
A cross-site scripting issue exists in the Twig sandbox policy. The policy allowlists the
addJs() and addCss() methods on GravCommonAssets without implementing proper output escaping. This allows page editors to inject arbitrary scripts by registering malicious assets or injecting attributes, which are then rendered unescaped into the document head tags and executed for all visitors, including administrators.Recommendations
Update to version 2.0.20 or later.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Grav