Skip to content

fix: Dot notation operation on a missing field reveals whether the field is stored to a caller without read access (GHSA-4m87-fqwv-2m8v) - #10843

Merged
mtrezza merged 1 commit into
parse-community:release-8.x.xfrom
mtrezza:fix/GHSA-4m87-fqwv-2m8v-8
Oct 29, 2026
Merged

mtrezza merged 1 commit into
parse-community:release-8.x.xfrom
mtrezza:fix/GHSA-4m87-fqwv-2m8v-8

Conversation

@mtrezza

@mtrezza mtrezza commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Pull Request

Issue

Dot notation operation on a missing field reveals whether the field is stored to a caller without read access (GHSA-4m87-fqwv-2m8v)

Tasks

  • Add tests

@parse-github-assistant

Copy link
Copy Markdown

🚀 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

  • Keep pull requests small. Large PRs will be rejected. Break complex features into smaller, incremental PRs.
  • Use Test Driven Development. Write failing tests before implementing functionality. Ensure tests pass.
  • Group code into logical blocks. Add a short comment before each block to explain its purpose.
  • We offer conceptual guidance. Coding is up to you. PRs must be merge-ready for human review.
  • Our review focuses on concept, not quality. PRs with code issues will be rejected. Use an AI agent.
  • Human review time is precious. Avoid review ping-pong. Inspect and test your AI-generated code.

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. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: c84f011e-2103-4ce8-8f3a-2ea9fc155622
Commits

Reviewing files that changed from the base of the PR and between 01d73d0 and 71daed5.

Files selected for processing: 2
  • spec/vulnerabilities.spec.js
  • src/Controllers/DatabaseController.js

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

_expandResultOnKeyPath now handles absent or non-object path segments without recursing into them. Vulnerability specs add coverage for dot-notation update and create operations, including missing paths, trigger configurations, master-key requests, and MongoDB behavior.

Changes: Save response key-path handling

Layer / File(s) Summary
Expand missing key paths
src/Controllers/DatabaseController.js
_expandResultOnKeyPath checks whether each path segment contains an object before recursing.
Cover dot-notation response behavior
spec/vulnerabilities.spec.js
Tests cover update and create responses for dot-notation operations, including missing paths. The existing missing-parent Remove case now runs on databases other than PostgreSQL.

Priority: Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related issues

Possibly related PRs

Merge Risk: Minimal · up to 71dae

No concrete merge-blocking risk was identified.

Caution

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

  • Ignore

Failed Failed checks: 2 errors

Check name Status Explanation Resolution
Title check Error The title "fix: GHSA-4m87-fqwv-2m8v" begins with the allowed prefix "fix:", but the first letter after the prefix is not capitalized. The title names only the advisory ID and not the change. The chang… Capitalize the first letter after the prefix and add a short description of the fix. For example: "fix: Handle missing nested paths in dot-notation results for GHSA-4m87-fqwv-2m8v".
Description check Error The pull request description is empty. The author did not add an issue link, an approach, or any task checklist. The template requires these sections, so the description is largely incomplete. Add a description that follows the repository template. Include: the issue or advisory this PR closes (GHSA-4m87-fqwv-2m8v), a summary of the approach (the nested path check in _expandResultOnKeyPath and the updated WriteOnly and GHSA test …
Passed Passed checks: 5 passed
Check name Status Explanation
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Security Check Passed No new security vulnerability is introduced. The only production change guards nested result traversal with Object.hasOwn and an object-type check, then stops when the result lacks a path segment. Thi…
Engage In Review Feedback Passed No review feedback required engagement. The current review produced zero actionable findings, and no CodeRabbit review threads were returned.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files.

Full details: Security Check

Explanation

No new security vulnerability is introduced. The only production change guards nested result traversal with Object.hasOwn and an object-type check, then stops when the result lacks a path segment. This prevents missing-path values from entering the sanitized response. The added GHSA-4m87-fqwv-2m8v tests cover callers without read access, missing parents, nested paths, array indexes, master-key requests, and create operations. The remaining changes are tests.

Full details: Title check

Explanation

The title "fix: GHSA-4m87-fqwv-2m8v" begins with the allowed prefix "fix:", but the first letter after the prefix is not capitalized. The title names only the advisory ID and not the change. The changeset fixes dot-notation handling on missing paths in DatabaseController._expandResultOnKeyPath, and the new tests cover that fix, so the title is related to the change but lacks a descriptive summary and fails the casing requirement.

Resolution

Capitalize the first letter after the prefix and add a short description of the fix. For example: "fix: Handle missing nested paths in dot-notation results for GHSA-4m87-fqwv-2m8v".

Full details: Description check

Resolution

Add a description that follows the repository template. Include: the issue or advisory this PR closes (GHSA-4m87-fqwv-2m8v), a summary of the approach (the nested path check in _expandResultOnKeyPath and the updated WriteOnly and GHSA test expectations), and the task checklist with completed items checked and inapplicable items removed.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@mtrezza

mtrezza commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.87%. Comparing base (dfb0ff4) to head (71daed5).
⚠️ Report is 1 commits behind head on release-8.x.x.

Additional details and impacted files
@@                Coverage Diff                @@
##           release-8.x.x   #10843      +/-   ##
=================================================
+ Coverage          92.86%   92.87%   +0.01%     
=================================================
  Files                192      192              
  Lines              16576    16577       +1     
  Branches             225      225              
=================================================
+ Hits               15393    15396       +3     
+ Misses              1163     1161       -2     
  Partials              20       20              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-merge checks failed. Please resolve the failing checks before merging.

@mtrezza mtrezza changed the title fix: GHSA-4m87-fqwv-2m8v fix: Dot notation operation on a missing field reveals whether the field is stored to a caller without read access (GHSA-4m87-fqwv-2m8v) Oct 29, 2026
@mtrezza
mtrezza merged commit 3515f98 into parse-community:release-8.x.x Oct 29, 2026
42 of 49 checks passed
parseplatformorg pushed a commit that referenced this pull request Oct 29, 2026
## [8.6.118](8.6.117...8.6.118) (2026-10-29)

### Bug Fixes

* Dot notation operation on a missing field reveals whether the field is stored to a caller without read access ([GHSA-4m87-fqwv-2m8v](https://github.com/parse-community/parse-server/security/advisories/GHSA-4m87-fqwv-2m8v)) ([#10843](#10843)) ([3515f98](3515f98))
@mtrezza
mtrezza deleted the fix/GHSA-4m87-fqwv-2m8v-8 branch October 29, 2026 13:27
@parseplatformorg

Copy link
Copy Markdown
Contributor

🎉 This change has been released in version 8.6.118

@parseplatformorg parseplatformorg added the state:released-8.x.x Released as LTS version label Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:released-8.x.x Released as LTS version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants