MEDIUM 4.3 npm

Parse Server's Endpoint `/sessions/me` bypasses `_Session` `protectedFields`

GHSA-g4v2-qx3q-4p64 · BIT-parse-2026-39381 · CVE-2026-39381

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

Impact

The GET /sessions/me endpoint returns _Session fields that the server operator explicitly configured as protected via the protectedFields server option. Any authenticated user can retrieve their own session's protected fields with a single request. The equivalent GET /sessions and GET /sessions/:objectId endpoints correctly strip protected fields.

Patches

The GET /sessions/me handler now re-fetches the session with the caller's auth context after validating the session token, ensuring protectedFields and CLP apply consistently with other session endpoints.

Workarounds

None.

References

Ready to move

Start Securing

Free, no credit card | First findings in minutes