CVE-2026-42841
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.
Severity
MEDIUM
CVSS v3
4.8
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N · source nvd
CVSS v4
6.9
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 · source cna
Exploit chance (EPSS)
0.420%
chance of exploitation in the next 30 days
higher than 36.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-05-11 |
Timeline
- 2026-05-05GitHub advisory published (GHSA-r7fx-8g49-7hhr)6 days before publication
- 2026-05-11Published by the CNA14:52 UTC
- 2026-05-11CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-r7fx-8g49-7hhr, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Packagist getgrav/grav | before 2.0.0-beta.2 | 2.0.0-beta.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| getgrav grav | through 1.8.0no fix listed2.0.0no fix listed | not listednot listed |
References
- https://github.com/getgrav/grav/commit/5a12f9be8314682c8713e569e330f11805d0a663
- https://github.com/getgrav/grav/security/advisories/GHSA-r7fx-8g49-7hhr
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-42841'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-42841'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-42841'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-42841'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).