parse-server's file creation and deletion bypasses `readOnlyMasterKey` write restriction
Moderate severity
GitHub Reviewed
Published
Mar 5, 2026
in
parse-community/parse-server
•
Updated Mar 6, 2026
Package
Affected versions
>= 9.0.0, < 9.5.0-alpha.3
< 8.6.5
Patched versions
9.5.0-alpha.3
8.6.5
Description
Published to the GitHub Advisory Database
Mar 6, 2026
Reviewed
Mar 6, 2026
Published by the National Vulnerability Database
Mar 6, 2026
Last updated
Mar 6, 2026
Impact
The
readOnlyMasterKeycan be used to create and delete files via the Files API (POST /files/:filename,DELETE /files/:filename). This bypasses the read-only restriction which violates the access scope of thereadOnlyMasterKey.Any Parse Server deployment that uses
readOnlyMasterKeyand exposes the Files API is affected. An attacker with access to thereadOnlyMasterKeycan upload arbitrary files or delete existing files.Patches
The fix adds permission checks to both the file upload and file delete handlers.
Workarounds
There is no workaround other than not using
readOnlyMasterKey, or restricting network access to the Files API endpoints.References
References