Parse Server vulnerable to stored XSS via file upload of HTML-renderable file types
Moderate severity
GitHub Reviewed
Published
Mar 10, 2026
in
parse-community/parse-server
•
Updated Mar 11, 2026
Package
Affected versions
>= 9.0.0-alpha.1, < 9.6.0-alpha.4
< 8.6.30
Patched versions
9.6.0-alpha.4
8.6.30
Description
Published to the GitHub Advisory Database
Mar 11, 2026
Reviewed
Mar 11, 2026
Published by the National Vulnerability Database
Mar 11, 2026
Last updated
Mar 11, 2026
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.fileExtensionsoption. 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 typesapplication/xhtml+xmlandapplication/xslt+xmlfor extensionless uploads. Uploading of.html,.htm,.shtml,.xhtml, and.svgfiles was already blocked.Patches
The fix adds the missing file extensions and content types to the default value of the
fileUpload.fileExtensionsserver option.Workarounds
Configure the
fileUpload.fileExtensionsserver option to block the affected file extensions and content types.References
References