CVE-2026-42841
Last modified
CVE-2026-42841 is a medium-severity vulnerability rated 6.9/10 on the CVSS scale. 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. EPSS estimates a 0.40% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
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/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
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Getgrav | Grav | <= 1.8.0 | — |
| Getgrav | Grav | 2.0.0 | Beta1 |
References
- https://github.com/getgrav/grav/security/advisories/GHSA-r7fx-8g49-7hhrExploit, Patch, Vendor Advisory
- https://github.com/getgrav/grav/security/advisories/GHSA-r7fx-8g49-7hhrExploit, Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-42841?
How severe is CVE-2026-42841?
How do I fix CVE-2026-42841?
Are you affected by CVE-2026-42841?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
