PT-2026-86422 · Grav · Grav

·

CVE-2026-86197

·

Published

2026-08-21

·

Updated

2026-09-05

CVSS v4.0

5.1

Medium

VectorAV: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

CVE-2026-86197
GHSA-8HGV-XC77-JMCR

Affected Products

Grav