Advisory record · GHSA-8hgv-xc77-jmcr

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

CVSS 5.1 MediumEPSS 0.0041 · 35th percentile

Published by the GitHub Advisory Database at 21 Aug 2026, 19:14 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
getgrav/gravPackagist<2.0.202.0.20
Identifiers
GHSA-8hgv-xc77-jmcr · CVE-2026-86197 · PKSA-rjzr-vkvg-cvmf
Weakness (CWE)
CWE-79
Published
21 Aug 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Grav (getgrav/grav on Packagist) versions before 2.0.20 are affected. A user with only page-edit rights can call the allowed assets.addJs and assets.addCss Twig methods from page content, and the theme then emits the supplied URL or attributes unescaped into the page head, which allows script execution for every visitor, including administrators who view the page or preview it in the admin panel. Upgrade to Grav 2.0.20, which removes those methods from the sandbox allowlist and HTML-escapes asset URLs at render time.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.1 Medium 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 CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0041, the 35th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 13:56 UTC First seen by agentprime
  2. 31 Oct 2026, 13:56 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.