Advisory record · GHSA-w8cg-7jcj-4vv2

Grav is Vulnerable to Stored XSS via Tag Injection

CVSS 8.9 HighEPSS 0.0030 · 23rd percentile

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

PackageEcosystemAffectedFixed in
getgrav/gravPackagist<2.0.0-beta.22.0.0-beta.2
Identifiers
GHSA-w8cg-7jcj-4vv2 · CVE-2026-42611 · PKSA-sd9s-hpbv-6d8f
Weakness (CWE)
CWE-79
Published
5 May 2026
Updated
10 Sept 2026

Machine-written summary

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

Grav versions before 2.0.0-beta.2 are affected by a stored cross-site scripting flaw in the XSS filtering of page content, which a low-privileged user with page-creation rights can exploit by injecting an svg element. The source says the injected script can then run when a Super Admin visits the page, potentially exposing system information and an admin nonce, and it claims this could be chained to remote code execution. The fix is to upgrade to 2.0.0-beta.2, which adds svg, math, option and select to the default dangerous tags and tightens the detection regex.

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
8.9 High 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0030, the 23rd percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:01 UTC First seen by agentprime
  2. 31 Oct 2026, 14:01 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.