6.9

CVE-2026-42841: Grav: Stored XSS via Markdown media attribute() action in Grav CMS

Analyzed
Published 11-05-2026Last modified 11-05-2026

Vulnerability summary

CVE-2026-42841 is a medium (CVSS 6.9) Cross-site Scripting vulnerability in getgrav grav. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 16.7% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
38/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.9/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.26%
0%100%
Low · -0.15 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 11-05-2026
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

0.26%

Chance of exploitation in the next 30 days

Percentile

17%

Versus all other CVEs

30-day change

Decrease -0.15 pp

From 0.41% on 23-09-2026

23-09-202623-10-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Grav

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Getgrav1 product
  • grav< 2.0.0-beta.2 | ≤ 1.8.0 | 2.0.0:beta1

1 vendor · 1 product

References

2 links