CVE-2026-86197

Medium

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.

SeverityMedium
CVSS5.1
Exploit probability—
ProductGetgrav/grav
PublishedSep 5, 2026
First seenSep 5, 2026

How to fix

Update
  • getgrav/grav2.0.20 or later

Affected products

ProductAffected versionsFixed in
getgrav/gravPackagistv < 2.0.202.0.20

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.