Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-86197 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')[email protected]

Affected Products

ProductVersions
Grav
<= 2.0.19 (semver)

CPE

  • cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*

Remediation

  • Upgrade: 2.0.20moderate effort
  • Workaround:low effort

    To mitigate the issue, you can disable the `addJs` and `addCss` methods in the Twig sandbox policy by adding the following configuration to `user/config/security.yaml`: ```yaml twig_sandbox: denied_methods: - class: Grav\Common\Assets methods: 'addcss, addjs' ```

Change History

3 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-86197
NVD Published Date:
Sep 5, 2026
NVD Last Modified:
Oct 8, 2026
Source:
[email protected]