CVE Catalog

CVE-2026-42841

MediumCVSS 4.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.42%

36th percentile - higher than 36% of all known CVEs

Summary

In Grav 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 Markdown media action syntax. Markdown image query parameters are converted into callable media actions, allowing the public attribute() method to be reached and an arbitrary HTML attribute to be set on the generated image element. The vulnerability is fixed in 2.0.0-beta.2.

Risk Assessment

This can lead to stored XSS, allowing execution of arbitrary JavaScript in forum users' browsers. The risk affects organizations using Grav with multiple page editors.

Recommendation

Upgrade Grav to version 2.0.0-beta.2 or later. Restrict page editing permissions to trusted users.

Other vulnerabilities in Grav

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS