Description
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.
Published: 2026-08-10
Score: 5.4 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Fastschema contains a stored XSS flaw that allows an attacker to inject malicious JavaScript into the application’s web root. The vulnerability originates from the PutMultipart function validating only the MIME type header it receives rather than the file’s true content. By providing a file named with an image extension but holding SVG data marked image/svg+xml, a low‑privileged authenticated user can upload a script‑laden SVG. Once stored, the script is executed in the browsers of users who view the affected page, enabling session hijacking, cookie theft, and defacement. This flaw maps to CWE‑79.

Affected Systems

The flaw affects all installations of fastschema prior to v0.15.2, specifically those that expose the rclonefs base PutMultipart API. The product is maintained by the fastschema team and can be found at https://github.com/fastschema/fastschema.

Risk and Exploitability

The CVSS score of 5.4 indicates a medium severity flaw. No EPSS score is currently available, and the vulnerability is not listed in CISA’s KEV catalog. Attackers must be authenticated to the application, but a low‑privileged user can reach the upload endpoint. Once the malicious SVG file is stored, any user who views the resulting page will be affected. The attack vector is thus user‑initiated file upload, and the vulnerability can be exploited without additional access privileges beyond authentication.

Generated by OpenCVE AI on August 10, 2026 at 12:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade fastschema to a version later than v0.15.1 that includes the MIME type validation fix.
  • If an upgrade is not immediately possible, remove or disable the file upload endpoint for SVG files or other untrusted content types.
  • Modify server configuration to perform content‑based MIME type checking and reject or quarantine files that contain potentially executable code, such as SVG.

Generated by OpenCVE AI on August 10, 2026 at 12:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 12:00:00 +0000

Type Values Removed Values Added
Description 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. 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.

Mon, 10 Aug 2026 11:00:00 +0000

Type Values Removed Values Added
Description 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.
Title fastschema - Stored Cross-Site Scripting via MIME Type Bypass in File Upload
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T13:18:41.553Z

Reserved: 2026-08-10T10:32:53.854Z

Link: CVE-2026-72583

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T12:30:07Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')