{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-86197","id":"CVE-2026-86197","title":"Grav before 2.0.20 Cross-Site Scripting via Assets Sandbox","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.","descriptionLong":"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":"2026-09-05T12:09:10.147Z","updated":"2026-10-28T02:30:39.049740683Z","reserved":"2026-09-05T11:52:36.821Z","status":"Deferred","rejected":false,"assigner":"VulnCheck","metric":{"version":"4.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","rating":"medium","source":"VulnCheck"},"metrics":[{"version":"4.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","rating":"medium","source":"VulnCheck"},{"version":"4.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/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","rating":"medium","source":"vulncheck.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"}],"rating":"medium","products":["getgrav grav"],"affectedProducts":[{"vendor":"getgrav","product":"grav","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","versionType":"semver","lessThan":"2.0.20"},{"version":"2.0.20","status":"unaffected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"getgrav/grav","purl":"pkg:composer/getgrav/grav","ranges":["<2.0.20"],"fixed":["2.0.20"],"advisory":"GHSA-8hgv-xc77-jmcr"}],"cwes":["CWE-79"],"aliases":["GHSA-8hgv-xc77-jmcr"],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-8hgv-xc77-jmcr","tags":["vendor-advisory","advisory","web"]},{"url":"https://www.vulncheck.com/advisories/grav-before-2.0.20-cross-site-scripting-via-assets-sandbox","tags":["third-party-advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/86xxx/CVE-2026-86197.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-86197","tags":["advisory"]},{"url":"https://github.com/getgrav/grav/commit/a4e8c4b748eb338ee7ab1dd26e7620a93bade047","tags":["web"]},{"url":"https://github.com/getgrav/grav","tags":["package"]},{"url":"https://github.com/getgrav/grav/releases/tag/2.0.20","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00412,"epssPercentile":0.3619,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-86197","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-86197","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-86197","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-8hgv-xc77-jmcr","ok":true,"note":"GHSA-8hgv-xc77-jmcr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-86197","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}