parse-server's endpoint `/loginAs` allows `readOnlyMasterKey` to gain full read and write access as any user
High severity
GitHub Reviewed
Published
Mar 5, 2026
in
parse-community/parse-server
•
Updated Mar 6, 2026
Package
Affected versions
< 8.6.6
>= 9.0.0, < 9.5.0-alpha.4
Patched versions
8.6.6
9.5.0-alpha.4
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 callPOST /loginAsto obtain a valid session token for any user. This allows a read-only credential to impersonate arbitrary users with full read and write access to their data. Any Parse Server deployment that usesreadOnlyMasterKeyis affected.Patches
The fix adds a check to the
/logInAshandler.Workarounds
There is no workaround other than not using
readOnlyMasterKey.References
References