Parse Server: File upload Content-Type override via extension mismatch
Low severity
GitHub Reviewed
Published
Apr 2, 2026
in
parse-community/parse-server
•
Updated Apr 6, 2026
Package
Affected versions
>= 9.0.0, < 9.7.1-alpha.4
<= 8.6.72
Patched versions
9.7.1-alpha.4
8.6.73
Description
Published to the GitHub Advisory Database
Apr 4, 2026
Reviewed
Apr 4, 2026
Published by the National Vulnerability Database
Apr 6, 2026
Last updated
Apr 6, 2026
Impact
A file can be uploaded with a filename extension that passes the file extension allowlist (e.g.,
.txt) but with aContent-Typeheader that differs from the extension (e.g.,text/html). TheContent-Typeis passed to the storage adapter without consistency validation. Storage adapters that store and serve the provided Content-Type (such as S3 or GCS) serve the file with the mismatched Content-Type. The default GridFS adapter is not affected because it derives Content-Type from the filename at serving time.Patches
The file upload now derives the Content-Type from the filename extension, overriding any user-provided Content-Type when the file has an extension.
Workarounds
Configure the storage adapter or CDN to derive Content-Type from the filename extension instead of using the stored Content-Type.
References