Repository navigation
fix: Option requestKeywordDenylist does not apply to query parameters keys, include and excludeKeys - #10793
Conversation
…rs `keys`, `include` and `excludeKeys`
|
🚀 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. 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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## alpha #10793 +/- ##
=======================================
Coverage 94.03% 94.03%
=======================================
Files 193 193
Lines 17239 17248 +9
Branches 259 259
=======================================
+ Hits 16210 16219 +9
Misses 1007 1007
Partials 22 22 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
## [9.10.5-alpha.11](9.10.5-alpha.10...9.10.5-alpha.11) (2026-10-16) ### Bug Fixes * Option `requestKeywordDenylist` does not apply to query parameters `keys`, `include` and `excludeKeys` ([#10793](#10793)) ([e220f51](e220f51))
|
🎉 This change has been released in version 9.10.5-alpha.11 |
## [9.10.5](9.10.4...9.10.5) (2026-10-16) ### Bug Fixes * Custom auth adapters that extend the AuthAdapter class accept any authData ([GHSA-rq3w-5c6f-p7wr](GHSA-rq3w-5c6f-p7wr)) ([#10773](#10773)) ([bee4082](bee4082)) * Installation update is written to the installation named by the request's installation ID instead of the addressed object ([GHSA-8j8q-73xx-w3m4](GHSA-8j8q-73xx-w3m4)) ([#10792](#10792)) ([256a253](256a253)) * LiveQuery subscriptions using a `$or` query can receive another user's events, including session tokens ([GHSA-349r-988w-x3jp](GHSA-349r-988w-x3jp)) ([#10776](#10776)) ([a7821c6](a7821c6)) * Login with master key overwrites stored MFA settings of user ([#10771](#10771)) ([28bb53b](28bb53b)) * Malformed query operators `$or`, `$and`, `$nor`, `$options` cause internal server error ([#10775](#10775)) ([c56ccdf](c56ccdf)) * Object update returns the stored value of a field reverted in `beforeSave` to a caller without read access ([GHSA-9rvr-f5hc-9f2f](GHSA-9rvr-f5hc-9f2f)) ([#10788](#10788)) ([0b33504](0b33504)) * Object write with a crafted key can pollute a shared prototype and cause denial of service ([GHSA-rx55-fw4j-pvpx](GHSA-rx55-fw4j-pvpx)) ([#10790](#10790)) ([e895091](e895091)) * Object write with a dot notation key can skip `afterSave` triggers and LiveQuery events ([GHSA-969q-274f-mc7w](GHSA-969q-274f-mc7w)) ([#10786](#10786)) ([6dab17c](6dab17c)) * Option `requestKeywordDenylist` does not apply to query parameters `keys`, `include` and `excludeKeys` ([#10793](#10793)) ([e220f51](e220f51)) * Relation `$relatedTo` query using an operator instead of an object ID bypasses owning-object ACL ([GHSA-58m4-cqvw-4vgh](GHSA-58m4-cqvw-4vgh)) ([#10783](#10783)) ([36af858](36af858)) * SMS MFA login code request saves other login request fields with master privileges ([GHSA-9rh6-r4ph-367v](GHSA-9rh6-r4ph-367v)) ([#10781](#10781)) ([e2a1474](e2a1474))
|
🎉 This change has been released in version 9.10.5 |
* release: (158 commits) chore(release): 9.10.5 [skip ci] empty commit to trigger CI chore(release): 9.10.5-alpha.11 [skip ci] fix: Option `requestKeywordDenylist` does not apply to query parameters `keys`, `include` and `excludeKeys` (parse-community#10793) chore(release): 9.10.5-alpha.10 [skip ci] fix: Installation update is written to the installation named by the request's installation ID instead of the addressed object ([GHSA-8j8q-73xx-w3m4](GHSA-8j8q-73xx-w3m4)) (parse-community#10792) chore(release): 9.10.5-alpha.9 [skip ci] fix: Object write with a crafted key can pollute a shared prototype and cause denial of service ([GHSA-rx55-fw4j-pvpx](GHSA-rx55-fw4j-pvpx)) (parse-community#10790) chore(release): 9.10.5-alpha.8 [skip ci] fix: Object update returns the stored value of a field reverted in `beforeSave` to a caller without read access ([GHSA-9rvr-f5hc-9f2f](GHSA-9rvr-f5hc-9f2f)) (parse-community#10788) chore(release): 9.10.5-alpha.7 [skip ci] fix: Object write with a dot notation key can skip `afterSave` triggers and LiveQuery events ([GHSA-969q-274f-mc7w](GHSA-969q-274f-mc7w)) (parse-community#10786) chore(release): 9.10.5-alpha.6 [skip ci] fix: Relation `$relatedTo` query using an operator instead of an object ID bypasses owning-object ACL ([GHSA-58m4-cqvw-4vgh](GHSA-58m4-cqvw-4vgh)) (parse-community#10783) chore(release): 9.10.5-alpha.5 [skip ci] fix: SMS MFA login code request saves other login request fields with master privileges ([GHSA-9rh6-r4ph-367v](GHSA-9rh6-r4ph-367v)) (parse-community#10781) chore(release): 9.10.5-alpha.4 [skip ci] fix: LiveQuery subscriptions using a `$or` query can receive another user's events, including session tokens ([GHSA-349r-988w-x3jp](GHSA-349r-988w-x3jp)) (parse-community#10776) chore(release): 9.10.5-alpha.3 [skip ci] fix: Malformed query operators `$or`, `$and`, `$nor`, `$options` cause internal server error (parse-community#10775) ... # Conflicts: # package-lock.json # package.json
Pull Request
Issue
Option
requestKeywordDenylistis documented to apply to database read and write requests, but it is only enforced on write requests. The query parameterskeys,includeandexcludeKeysare not checked against it, so a query can contain a field path with a prohibited keyword. Depending on the field path, such a query is either accepted or fails with an internal server error.Approach
Before a query runs, every field name in
keys,includeandexcludeKeysis checked against the key entries ofrequestKeywordDenylist. A match is rejected withParse.Error.INVALID_KEY_NAME, the same error that write requests return. Value and key-value entries of the denylist do not apply, since a field name has no value.Tasks
Summary by CodeRabbit
keys,include, andexcludeKeyswith an error, helping prevent unsafe field names from being processed.