Read the docs

Stored XSS in Grav Form plugin via unsanitized file uploads

Priority MEDIUM 40CWE-79Published · Updated

Key facts

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

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

Summary

Grav Form plugin from 1.1.0 before 9.1.40 contains a stored cross-site scripting flaw in Form::uploadFiles() (CWE-79). The function sanitizes SVG files only when the last extension is .svg, so markup uploaded under other extensions is accepted. An anonymous attacker can upload such a file through a public any-type upload form, and the script runs in an administrator's session when the file is opened, which enables creating a super-admin on Grav 2.x with Admin2.

Written with Claude Haiku 5.5 from the sources below · 2026-11-21

Description from the CNA

Grav Form plugin 1.1.0 before 9.1.40 contains a stored cross-site scripting vulnerability in Form::uploadFiles(), which sanitizes SVG only when a file's last extension is .svg and accepts markup under unrecognized extensions. Anonymous attackers can upload files like drawing.svg.foo through public any-type upload forms, running script in an administrator's session when opened, enabling super-admin creation on Grav 2.x with Admin2.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00338 19th percentileScored 2026-11-30
Fix Fixed grav-plugin-form (getgrav): 9.1.40

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

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

Affected products

VendorProductAffected versionsFixed inStatusSource
getgravgrav-plugin-form1.1.0 to before 9.1.409.1.40Patch availableCNA
  • grav-plugin-form Vendorgetgrav Affected 1.1.0 to before 9.1.40 Fixed in 9.1.40 Patch available CNA

Remediation

Upgrade grav-plugin-form to version 9.1.40 or later, which is the fixed version listed for this product. The sources list no fixed version for any other product.

Written with Claude Haiku 5.5 from the sources below · 2026-11-21

  • Fix · CNA grav-plugin-form (getgrav) Fixed in 9.1.40

Timeline

  1. 2026-11-21 Threatist record created from CVE-2026-134250
  2. 2026-11-21 Alias added: GHSA-m94h-vchm-v9p8
  3. 2026-11-26 CISA SSVC decision points changed

References

  • TI-2026-30893 Grav: Privilege Escalation via Missing Server-Side Validation of groups/access CVSS 3.1CRITICAL 9.4
  • 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-04523 Unauthenticated Arbitrary YAML Write/Update leads to Code Execution CVSS 3.1CRITICAL 9.8
  • TI-2026-50940 Grav CMS before 2.0.16 Origin Validation Bypass via Referer CVSS 4.0CRITICAL 9.3
  • TI-2026-46446 Grav before 2.0.7 Remote Code Execution via Blueprint dynamicData CVSS 4.0CRITICAL 9.3
  • TI-2021-22428 GravCMS 1.10.7 - Arbitrary YAML Write/Update (Unauthenticated) (2) CVSS 4.0CRITICAL 9.3
See all 253 →

Sources