CVE-2026-42841: Grav: Stored XSS via Markdown media attribute() action in Grav CMS
Vulnerability summary
CVE-2026-42841 is a medium (CVSS 6.9) Cross-site Scripting vulnerability in getgrav grav. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 16.7% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 11-05-2026PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
Grav is a file-based Web platform. Prior to 2.0.0-beta.2, an authenticated user with page editing permissions can inject an executable JavaScript event-handler attribute into rendered image HTML through Grav's Markdown media action syntax. The issue is caused by Markdown image query parameters being converted into callable media actions. The public attribute() media method can be reached this way, allowing an editor to set an arbitrary HTML attribute name and value on the generated image element. This vulnerability is fixed in 2.0.0-beta.2.
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST6.9MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:H/VI:L/VA:N/SC:H/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
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
17%
Versus all other CVEs
30-day change
Decrease -0.15 pp
From 0.41% on 23-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGrav
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Getgrav1 product
- grav< 2.0.0-beta.2 | ≤ 1.8.0 | 2.0.0:beta1
1 vendor · 1 product
References
2 links- github.com/getgrav/grav/security/advisories/GHSA-r7fx-8g49-7hhrX Refsource CONFIRMExploitPatchVendor Advisory