Security mailing lists by PureSourceCode

CVE-2026-86197

MEDIUM 5.1CVSS 4.0

Grav: Page editors can inject arbitrary script into rendered pages via the Twig sandbox's assets.addJs/addCss allowlist, escalating to super-admin

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.

Published
5 Sep 2026
Last modified
8 Oct 2026
Assigned by
disclosure@vulncheck.com
NVD status
Deferred
Weakness
CWE-79
Also known as
GHSA-8hgv-xc77-jmcr
Sources
NVDJSONOSV GHSA-8hgv-xc77-jmcrJSON

Scores

SourceScored byVersionScoreVector / decision
NVD disclosure@vulncheck.com (Secondary) CVSS 4.0 MEDIUM 5.1 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Packagist getgrav/grav < 2.0.20 2.0.20

References

History

  • 25 Nov 2026 21:05 UTC · NVD: first stored (published 5 Sep 2026)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 21 Aug 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.