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.

Project Subscriptions

Vendors Products
Getgrav Subscribe
Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Sat, 05 Sep 2026 12:30:00 +0000

Type Values Removed Values Added
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.
Title Grav before 2.0.20 Cross-Site Scripting via Assets Sandbox
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-79
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-05T12:09:10.147Z

Reserved: 2026-09-05T11:52:36.821Z

Link: CVE-2026-86197

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-05T13:18:15.110

Modified: 2026-09-05T13:18:15.110

Link: CVE-2026-86197

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-05T14:30:06Z

Weaknesses