Loading...
Skip to main content

CVE-2026-30948

HIGH

Parse Server vulnerable to stored cross-site scripting (XSS) via SVG file upload

Published March 11, 2026Updated March 14, 2026Source: osv

Summary

### Impact A stored cross-site scripting (XSS) vulnerability allows any authenticated user to upload an SVG file containing JavaScript. The file is served inline with `Content-Type: image/svg+xml` and without protective headers, causing the browser to execute embedded scripts in the Parse Server origin. This can be exploited to steal session tokens from `localStorage` and achieve account takeover. The default `fileExtensions` option blocks HTML file extensions but does not block SVG, which is a well-known XSS vector. All Parse Server deployments where file upload is enabled for authenticated users (the default) are affected. ### Patches The fix adds `svg` (case-insensitive) to the default file extension denylist. The default regex changes from `^(?![xXsS]?[hH][tT][mM][lL]?$)` to `^(?!([xXsS]?[hH][tT][mM][lL]?|[sS][vV][gG])$)`. ### Workarounds Configure the `fileExtensions` option to explicitly block SVG uploads: ```js { fileUpload: { fileExtensions: ['^(?!([xXsS]?[hH][tT][mM][lL]?|[sS][vV][gG])$)'] } } ``` ### References - GitHub security advisory: https://github.com/parse-community/parse-server/security/advisories/GHSA-hcj7-6gxh-24ww - Fix Parse Server 9: https://github.com/parse-community/parse-server/releases/tag/9.5.2-alpha.4 - Fix Parse Server 8: https://github.com/parse-community/parse-server/releases/tag/8.6.17

Remediation

Upgrade to the fixed version using your package manager.

npm
Update parse-server to 8.6.17 or later
npm install parse-server@8.6.17
npm
Update parse-server to 9.5.2-alpha.4 or later
npm install parse-server@9.5.2-alpha.4

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

PackageEcosystemAffectedFixed In
parse-server
npm
All versions8.6.17
parse-server
npm
All versions9.5.2-alpha.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.7 score means for each attack dimension.

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

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:H/SI:H/SA:N

Frequently Asked Questions

What is CVE-2026-30948?
Parse Server vulnerable to stored cross-site scripting (XSS) via SVG file upload This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.7/10).
How do I check if my project is affected by CVE-2026-30948?
CVE-2026-30948 affects parse-server. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-30948 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.7

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-hcj7-6gxh-24ww
BIT-parse-2026-30948

Related CVEs

  • CVE-2023-36475
    CRITICAL

    Parse Server vulnerable to remote code execution via MongoDB BSON parser through prototype pollution

  • CVE-2026-27804
    CRITICAL

    Parse Server: Account takeover via JWT algorithm confusion in Google auth adapter

  • CVE-2026-30966
    CRITICAL

    Parse Server has role escalation and CLP bypass via direct `_Join` table write

  • CVE-2026-32248
    CRITICAL

    Parse Server: Account takeover via operator injection in authentication data identifier

  • CVE-2024-27298
    CRITICAL

    ZDI-CAN-19105: Parse Server literalizeRegexPart SQL Injection

  • CVE-2026-30965
    CRITICAL

    Parse Server vulnerable to session token exfiltration via `redirectClassNameForKey` query parameter

  • CVE-2024-39309
    CRITICAL

    ZDI-CAN-23894: Parse Server literalizeRegexPart SQL Injection Authentication Bypass Vulnerability

  • CVE-2026-31800
    HIGH

    Parse Server: Classes `_GraphQLConfig` and `_Audience` master key bypass via generic class routes

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies