Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocate public any-type upload form
-
DeliveryUpload drawing.svg.foo carrying script
-
ExploitApache serves stored file unsanitized
-
ExecutionAdmin opens file, script runs in session
-
ImpactRead admin API token, create super-admin
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a PUBLIC Grav Form plugin file field configured to accept arbitrary types - accept:['*'] or an accept rule matching application/octet-stream; forms using the default accept:['image/*'] are NOT affected. The site must be served by Apache (mod_mime types the .svg extension as image/svg+xml, and sends no Content-Type for unrecognized extensions); the advisory notes Caddy is likely affected for the markup case, while nginx and IIS following Grav's shipped configs do not execute these files. Exploitation further requires a logged-in administrator to open the uploaded file (UI:P) for the stored script to run in their session. Affected: grav-plugin-form 9.1.39 and earlier on Grav 1.7 and 2.x; the super-admin-creation impact specifically requires Grav 2.x with Admin2. The upload step itself is unauthenticated (anonymous visitor). Limiting factors: non-default form configuration, Apache/Caddy deployment, and required administrator interaction materially reduce realistic exposure despite the network, unauthenticated upload vector. |
| Impact | Signals are mixed and point to a real but conditional threat rather than a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:P, score 8.8) correctly captures the shape: network-reachable and unauthenticated for the upload itself (PR:N - an anonymous visitor can submit the file), but gated by a specific attack requirement (AT:P) and by required victim interaction (UI:P - a logged-in administrator must open the stored file). Impacts are serious (VC:H/VI:H and subsequent-system SC:H/SI:H), reflecting that successful exploitation can escalate to super-admin creation on Grav 2.x with Admin2. The vuln.today decision label is 'this_week', consistent with a high-impact but precondition-dependent issue rather than 'act_now'/'emergency'. No EPSS score, no CISA KEV listing, and no confirmed public exploit code were provided - exploitation status is therefore 'no public exploit identified at time of analysis'. The practical ceiling on risk is configuration: the flaw only matters where a public Form upload field is set to accept any type (accept:['*'] or a rule matching application/octet-stream) AND the site is served by Apache (likely Caddy for the markup case); default accept:['image/*'] forms and nginx/IIS deployments following Grav's shipped configs are not affected. Net: a genuine priority for Grav sites running public any-type upload forms on Apache, but lower real-world exposure than the 8.8 alone implies because of the non-default-config and admin-interaction preconditions. The original reporter rated it Critical; the vendor downgraded to High for exactly these reasons. |
| Exploit ScenarioDerived | An anonymous visitor finds a public Grav Form whose file field accepts any type and uploads a file named like drawing.svg.foo containing SVG/HTML script; because the SVG sanitizer only runs when the final extension is .svg, the markup is stored unsanitized in the web-served page folder. Apache serves it as image/svg+xml (or with no Content-Type for unrecognized extensions, which browsers render as a page), so when a logged-in administrator later opens the file the script executes in their session. No public exploit code was identified; attack complexity is High and victim interaction is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Stored cross-site scripting in the Grav Form plugin (grav-plugin-form 9.1.39 and earlier) lets an anonymous visitor upload a file that executes script in an administrator's session when that administrator opens it, and on Grav 2.x with Admin2 the script can read the administrator's API token and create a new super-admin account. Exploitation is conditional: it requires a public form field configured to accept any file type (accept:['*'] or an accept rule matching application/octet-stream), a site served by Apache (Caddy is likely affected for the markup case), and a logged-in administrator who opens the uploaded file, while forms using the default accept:['image/*'] and nginx or IIS deployments following Grav's shipped configs are not affected. No public exploit code or CISA KEV entry was identified at time of analysis, and the assessed impact is High rather than Critical because of the non-default form configuration, the web-server dependency and the required administrator interaction.
RemediationAI
Vendor-released patch: upgrade grav-plugin-form to 9.1.40, which validates every extension of an uploaded filename and the file's leading bytes before sanitizing and refuses to store markup under extensions Grav cannot type; the advisory at https://github.com/getgrav/grav/security/advisories/GHSA-2vpw-p335-mmmp is the authoritative reference. Until the update can be applied, the vendor's stated workaround is to change public upload fields from accept:['*'] (or any any-type rule) to an explicit list of the file types actually needed, which removes the anonymous any-type upload path at the cost of narrowing legitimate uploads; note that updating remains the only complete fix. Because the stored file is served directly from the page folder, restricting which uploaded paths the web server will serve, or blocking direct requests to uploaded files, reduces the administrator-session trigger, but that is a deployment-level compensating measure and can break legitimate file delivery.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a stored cross-site scripting (CWE-79) that overlaps with unrestricted file upload (CWE-434) in the Grav Form plugin, tracked against cpe:2.3:a:getgrav:grav-plugin-form. Form::uploadFiles() decided whether an uploaded file was an SVG by looking only at the type of the final extension, so Security::sanitizeSVG() was skipped for a name such as drawing.svg.foo. Apache's mod_mime assigns a type from every extension it recognises, so the .svg component still caused the file to be served as image/svg+xml; separately, for an extension Apache does not recognise at all it sends no Content-Type, and browsers then interpret markup inside the file as HTML or XML. Uploaded files land in the page folder (the default self@ destination), which the web server serves directly, so script in the file runs in the site origin when an administrator opens it and can act with that session. The 9.1.40 fix inspects every extension of the filename and the start of the file before deciding whether to sanitize, and refuses to store markup under an extension Grav cannot type. Deployment mode matters: Apache is confirmed affected, Caddy is likely affected for the markup case, and nginx and IIS configurations that follow Grav's shipped configs do not execute these files.
Know when Grav Plugin Form gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
Anonymous upload is PR:N, but non-default config plus Apache serving makes AC:H; an admin must open the file (UI:R); stored script executing in the admin session/origin and enabling super-admin creation is a scope change (S:C) with high C/I and no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-79 (stored XSS), with the advisory also tagging CWE-434.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity stored cross-site scripting vulnerability in the Grav Form plugin (versions 9.1.39 and earlier) allows an anonymous visitor to upload malicious files that execute in an administrator's session, potentially leading to API token theft and super-admin creation on Grav 2.x with Admin2. Leadership should care because a successful exploit could result in full site compromise and unauthorized administrative access, requiring immediate mitigation given the lack of a vendor patch.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict file upload fields to safe types, avoid accept:['*'], deploy WAF rules to block malicious uploads, and enforce strict admin session management. Apply vendor patch when available.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Grav Plugin Form
View allCode injection in the Grav Form plugin (9.2.3 and earlier on Grav 2.x) lets a page editor who can only edit a page's fro
Open redirect in Grav's form plugin (getgrav/grav-plugin-form) versions 9.1.11 through 9.1.12 allows unauthenticated for
Unauthenticated form action execution in the Grav Form Plugin before 9.1.22 allows anonymous visitors to trigger save, u
EUVD-2026-132198
GHSA-m94h-vchm-v9p8
NVD
CVE.org
EPSS
Exploit-DB