CVE Catalog

CVE-2026-86197

MediumCVSS 5.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.26%

17th percentile - higher than 17% of all known CVEs

Summary

Grav before 2.0.20 contains a cross-site scripting vulnerability in the Twig sandbox policy that allows 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.

Risk Assessment

The risk includes session hijacking of administrators, data theft, content modification, and distribution of malware to visitors.

Recommendation

Update Grav to version 2.0.20 or later. Additionally, restrict page editor permissions and regularly audit content for malicious assets.

Other vulnerabilities in Grav

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS