Read the docs
TI-2026-31050 Aliases CVE-2026-42841GHSA-r7fx-8g49-7hhr

Grav: Stored XSS via Markdown media attribute() action in Grav CMS

Priority MEDIUM 64CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
Passive
Attack complexity
Low
Attack requirements
Present
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0042 36th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed grav (getgrav): 2.0.0-beta.2getgrav/grav (Packagist): 2.0.0-beta.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
getgravgravbefore 2.0.0-beta.22.0.0-beta.2Patch availableCNA
—getgrav/grav (Packagist)before 2.0.0-beta.22.0.0-beta.2Patch availableGHSA-r7fx-8g49-7hhr
  • grav Vendorgetgrav Affected before 2.0.0-beta.2 Fixed in 2.0.0-beta.2 Patch available CNA
  • getgrav/grav (Packagist) Vendor— Affected before 2.0.0-beta.2 Fixed in 2.0.0-beta.2 Patch available GHSA-r7fx-8g49-7hhr

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*up to 1.8.0Vulnerablegetgrav
cpe:2.3:a:getgrav:grav:2.0.0:beta1:*:*:*:*:*:*2.0.0 beta1Vulnerablegetgrav
  • cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* Versions up to 1.8.0 Vulnerable ·getgrav
  • cpe:2.3:a:getgrav:grav:2.0.0:beta1:*:*:*:*:*:* Versions 2.0.0 beta1 Vulnerable ·getgrav

Remediation

  • Fix · CNA grav (getgrav) Fixed in 2.0.0-beta.2
  • Fix · GHSA-r7fx-8g49-7hhr getgrav/grav (Packagist) Fixed in 2.0.0-beta.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-42841
  2. 2026-10-03 Alias added: GHSA-r7fx-8g49-7hhr

References

  • TI-2025-28971 Cross Site Scripting vulnerability in grav v.1.7.48 and before allows an attacker to… CVSS 3.1CRITICAL 9.8
  • TI-2021-22428 GravCMS 1.10.7 - Arbitrary YAML Write/Update (Unauthenticated) (2) CVSS 4.0CRITICAL 9.3
  • TI-2025-41064 In grav <1.7.49.5, a SSRF (Server-Side Request Forgery) vector may be triggered via Twig… CVSS 3.1CRITICAL 9.1
  • TI-2026-30888 Grav: Unauthenticated Path Traversal & Arbitrary File Write in FormFlash component. CVSS 4.0HIGH 8.8
  • TI-2025-40773 Security Sandbox Bypass with SSTI (Server Side Template Injection) in the Grav CMS CVSS 3.1HIGH 8.8
  • TI-2025-40768 Grav is vulnerable to RCE via SSTI through Twig Sandbox Bypass CVSS 4.0HIGH 8.7
See all 56 →

Sources