CVE-2026-42841

4.8 MEDIUM
Published: May 11, 2026 Modified: May 12, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/getgrav/grav/security/advisories/GHSA-r7fx-8g49-7hhr
Source: security-advisories@github.com
Vendor Advisory Exploit Patch
https://github.com/getgrav/grav/security/advisories/GHSA-r7fx-8g49-7hhr
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Vendor Advisory Exploit Patch

3 reference(s) from NVD

Quick Stats

CVSS v3 Score
4.8 / 10.0
EPSS (Exploit Probability)
0.2%
7th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

getgrav