PT-2026-37280

CVE-2026-42841

·

Published

2026-05-05

·

Updated

2026-09-17

Description by

CVSS 4.0
6.9
Medium
MetricsAV:N/AC:L/AT:P/PR:H/UI:P/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
Name of the Vulnerable Software and Affected Versions Grav versions prior to 2.0.0-beta.2
Description An authenticated user with page editing permissions can perform stored Cross-Site Scripting (XSS) by injecting an executable JavaScript event-handler attribute into rendered image HTML. This occurs because Markdown image query parameters are converted into callable media actions, allowing access to the public attribute() media method. An attacker can use this to set arbitrary HTML attribute names and values on generated image elements. For example, using a query parameter like attribute=onload,alert(document.domain) results in an <img> tag with an executable onload handler. In multi-user environments, a lower-privileged editor could target administrators or reviewers who view the affected content.
Recommendations Update Grav to version 2.0.0-beta.2 or later.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-R7FX-8G49-7HHR
Found an issue in the description? Have something to add? Feel free to write us 👾