fix: Session update endpoint allows overwriting server-generated session fields (GHSA-jc39-686j-wp6q)#10263
Conversation
Incomplete fix of GHSA-5v7g-9h8f-8pgg. The session update path (PUT) did not block expiresAt or createdWith fields, allowing authenticated users to bypass server-configured session lifetime policies.
|
🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review. Tip
Note Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect. Caution Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
📝 WalkthroughWalkthroughThese changes add validation to prevent non-admin users from modifying sensitive session fields ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## alpha #10263 +/- ##
==========================================
- Coverage 92.54% 92.14% -0.40%
==========================================
Files 192 192
Lines 16433 16437 +4
Branches 226 226
==========================================
- Hits 15208 15146 -62
- Misses 1205 1267 +62
- Partials 20 24 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
# [9.6.0-alpha.48](9.6.0-alpha.47...9.6.0-alpha.48) (2026-03-21) ### Bug Fixes * Session update endpoint allows overwriting server-generated session fields ([GHSA-jc39-686j-wp6q](https://github.com/parse-community/parse-server/security/advisories/GHSA-jc39-686j-wp6q)) ([#10263](#10263)) ([ea68fc0](ea68fc0))
|
🎉 This change has been released in version 9.6.0-alpha.48 |
Issue
Session update endpoint allows overwriting server-generated session fields (GHSA-jc39-686j-wp6q)
Tasks