Loading...
Skip to main content

CVE-2026-31868

MEDIUM

Parse Server vulnerable to stored XSS via file upload of HTML-renderable file types

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

Summary

### Impact An attacker can upload a file with a file extension or content type that is not blocked by the default configuration of the Parse Server `fileUpload.fileExtensions` option. The file can contain malicious code, for example JavaScript in an SVG or XHTML file. When the file is accessed via its URL, the browser renders the file and executes the malicious code in the context of the Parse Server domain. This is a stored Cross-Site Scripting (XSS) vulnerability that can be exploited to steal session tokens, redirect users, or perform actions on behalf of other users. Affected file extensions and content types include `.svgz`, `.xht`, `.xml`, `.xsl`, `.xslt`, and content types `application/xhtml+xml` and `application/xslt+xml` for extensionless uploads. Uploading of `.html`, `.htm`, `.shtml`, `.xhtml`, and `.svg` files was already blocked. ### Patches The fix adds the missing file extensions and content types to the default value of the `fileUpload.fileExtensions` server option. ### Workarounds Configure the `fileUpload.fileExtensions` server option to block the affected file extensions and content types. ### References - GitHub security advisory: https://github.com/parse-community/parse-server/security/advisories/GHSA-v5hf-f4c3-m5rv - Fix Parse Server 9: https://github.com/parse-community/parse-server/releases/tag/9.6.0-alpha.4 - Fix Parse Server 8: https://github.com/parse-community/parse-server/releases/tag/8.6.30

Remediation

Upgrade to the fixed version using your package manager.

npm
Update parse-server to 8.6.30 or later
npm install parse-server@8.6.30
npm
Update parse-server to 9.6.0-alpha.4 or later
npm install parse-server@9.6.0-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.30
parse-server
npm
All versions9.6.0-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.8 score means for each attack dimension.

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

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

Frequently Asked Questions

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

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-v5hf-f4c3-m5rv
BIT-parse-2026-31868

Related CVEs

  • 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-31871
    CRITICAL

    Parse Server vulnerable to SQL Injection via dot-notation sub-key name in `Increment` operation on PostgreSQL

  • CVE-2022-39396
    CRITICAL

    Remote code execution via MongoDB BSON parser through prototype pollution

  • CVE-2026-31856
    CRITICAL

    Parse Server vulnerable to SQL injection via `Increment` operation on nested object field in PostgreSQL

  • CVE-2026-31800
    HIGH

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

  • CVE-2026-30948
    HIGH

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

  • CVE-2026-33409
    HIGH

    Parse Server has an auth provider validation bypass on login via partial authData

Check if you're affected

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

Scan Your Dependencies