CVE-2026-42841
Last modified
CVE-2026-42841 is a medium-severity vulnerability rated 4.8/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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-42836Concurrent execution using shared resource with improper syn…7
- CVE-2026-42837Out-of-bounds read in Windows Projected File System Filter D…7.8
- CVE-2026-42838Improper neutralization of special elements in output used b…5.4
- CVE-2026-42839An authenticated ERPNext user with Item record edit permissi…4.8
- CVE-2026-4284A vulnerability was determined in taoofagi easegen-admin up …4.7
- CVE-2026-42840An authenticated user can persist arbitrary HTML/JavaScript …5.1
- CVE-2026-42842The form plugin for Grav adds the ability to create and use …5.4
- CVE-2026-42843Grav API Plugin is a RESTful API for Grav CMS that provides …8.8
- CVE-2026-42844Grav is a file-based Web platform. In Grav 2.0.0-beta.2, a l…8.8
- CVE-2026-42845The form plugin for Grav adds the ability to create and use …7.7
- CVE-2026-42846ClipBucket v5 is an open source video sharing platform. Prio…9.8
- CVE-2026-42847ClipBucket v5 is an open source video sharing platform. Prio…7.1
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
