parse-community/parse-server · Security

parse-server's endpoint `/loginAs` allows `readOnlyMasterKey` to gain full read and write access as any user

GHSA ID
GHSA-79wj-8rqv-jvp5
CVE ID
CVE-2026-30229
Severity
high
Published
Updated
CVSS v4
8.5 · CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Description

Impact

The readOnlyMasterKey can call POST /loginAs to 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 uses readOnlyMasterKey is affected.

Patches

The fix adds a check to the /logInAs handler.

Workarounds

There is no workaround other than not using readOnlyMasterKey.

References

CWEs

References