Stored XSS in Grav Form plugin via unsanitized file uploads
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
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
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
- 2026-11-21 Threatist record created from CVE-2026-134250
- 2026-11-21 Alias added: GHSA-m94h-vchm-v9p8
- 2026-11-26 CISA SSVC decision points changed
References
More getgrav vulnerabilities
- 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
Sources
- CVE-2026-134250 · CVE Program
- CVE-2026-134250 · NVD
- FIRST EPSS
- GHSA-m94h-vchm-v9p8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences