fix: Protected field change detection oracle via LiveQuery watch parameter (GHSA-qpc3-fg4j-8hgm)#10253
Conversation
|
🚀 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. |
📝 WalkthroughWalkthroughThis PR enforces protected-field authorization for LiveQuery subscriptions by validating Changes
Sequence Diagram(s)mermaid Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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)
📝 Coding Plan
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@spec/vulnerabilities.spec.js`:
- Around line 3739-3750: The test "should not deliver update event when only
non-watched public field changes" is inconsistent: it watches 'publicField' via
query.watch('publicField') but then calls obj.set('publicField', 'visible')
which is a no-op on the watched field; change the test body to modify a truly
non-watched field (e.g., obj.set('nonWatchedField', 'value') or a protected
field) or alternatively rename the test to reflect that it's doing a no-op
update on a watched field; update references to subscription and updateSpy
accordingly so the assertion expect(updateSpy).not.toHaveBeenCalled() matches
the corrected scenario.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: b88d7f70-33f0-4b7b-9cea-90267c85bfb3
📒 Files selected for processing (2)
spec/vulnerabilities.spec.jssrc/LiveQuery/ParseLiveQueryServer.ts
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## alpha #10253 +/- ##
=======================================
Coverage 92.53% 92.54%
=======================================
Files 192 192
Lines 16394 16399 +5
Branches 219 221 +2
=======================================
+ Hits 15171 15177 +6
+ Misses 1204 1203 -1
Partials 19 19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
# [9.6.0-alpha.43](9.6.0-alpha.42...9.6.0-alpha.43) (2026-03-20) ### Bug Fixes * Protected field change detection oracle via LiveQuery watch parameter ([GHSA-qpc3-fg4j-8hgm](GHSA-qpc3-fg4j-8hgm)) ([#10253](#10253)) ([0c0a0a5](0c0a0a5))
|
🎉 This change has been released in version 9.6.0-alpha.43 |
Issue
Protected field change detection oracle via LiveQuery watch parameter (GHSA-qpc3-fg4j-8hgm)