Parse-community parse-server
Parse Server has stored cross-site scripting (XSS) via SVG file upload
Parse Server is an open source backend that can be deployed to any infrastructure that can run Node.js. Prior to 9.5.2-alpha.4 and 8.6.17, 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. This vulnerability is fixed in 9.5.2-alpha.4 and 8.6.17.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9.0.0 < 9.5.2-alpha.4
- < 8.6.17
Fixed in 9.5.2-alpha.4, 8.6.17
Mitigation
Upgrade parse-server to 9.5.2-alpha.4 or 8.6.17 or later.
References
- Vendor advisory github.com/parse-community/parse-server/securi…
- Release notes github.com/parse-community/parse-server/releas…
- Release notes github.com/parse-community/parse-server/releas…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.