CVE-2026-42841: Grav is a file-based Web platform
CVE-2026-42841 is a medium-severity flaw (CVSS 4.8) affecting grav. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 attri
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.8 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | High |
| User interaction | Required |
| EPSS exploit chance | 0.4% (top 64%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2026-05-11 |
| Last modified | 2026-10-26 |
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-42841?
grav: upgrade to newer than 1.8.0. Exact commands for each OS are on this page.
Is CVE-2026-42841 being exploited?
CVE-2026-42841 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-42841 affect?
CVE-2026-42841 affects grav. Severity is medium (CVSS 4.8). 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.
How urgent is CVE-2026-42841?
Priority 31/100. Public exploit reference
Related CVEs
- CVE-2026-42608 CRITICAL 9.1 UPGRADE Grav is a file-based Web platform
- CVE-2026-42609 HIGH 8.1 UPGRADE Grav is a file-based Web platform
- CVE-2026-42611 HIGH 8.9 UPGRADE Grav is a file-based Web platform
- CVE-2026-42612 HIGH 8.5 UPGRADE Grav is a file-based Web platform
- CVE-2026-44738 HIGH 7.7 UPGRADE Grav is a file-based Web platform