Advisory record · GHSA-r7fx-8g49-7hhr

Grav CMS vulnerable to stored XSS via Markdown media attribute() action

CVSS 6.9 MediumEPSS 0.0042 · 36th percentile

Published by the GitHub Advisory Database at 5 May 2026, 21:24 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-r7fx-8g49-7hhr · CVE-2026-42841 · PKSA-yx72-zyj1-gtxy
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 CMS (Packagist getgrav/grav) is vulnerable to stored cross-site scripting before 2.0.0-beta.2. An authenticated user with page editing permissions can use Markdown image media-action syntax to set an arbitrary HTML event-handler attribute on a rendered image, which runs JavaScript in the browser of anyone who views the page, such as an administrator. The fix is to upgrade to 2.0.0-beta.2, which drops unsafe attribute names such as on* handlers in the attribute() media method.

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
6.9 Medium 4.0 CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0042, the 36th 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.