fix(deps): override vulnerable transitive dependencies#2786
Conversation
Add pnpm overrides for Dependabot security alerts: - flatted >=3.4.2 (prototype pollution) - h3 >=1.15.6 (SSE injection, path traversal) - undici >=7.24.0 (WebSocket DoS, CRLF injection, smuggling) - devalue >=5.6.4 (prototype pollution) - svgo >=4.0.1 (billion laughs DoS) - express-rate-limit >=8.2.2 (IPv4-mapped IPv6 bypass) - rollup >=4.59.0 (path traversal) - minimatch scoped overrides for 3.x/5.x/9.x (ReDoS) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
📝 WalkthroughWalkthroughAdded explicit version constraints to Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ 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.
🧹 Nitpick comments (1)
package.json (1)
87-93: Use caret ranges (^) instead of unbounded>=for security overrides.Using
>=allows future major versions during re-resolution, increasing break risk. Major-bounded ranges like^7.24.0are the recommended pattern per official pnpm audit documentation and limit to the current major version while allowing patches and minor updates.Suggested change
- "flatted": ">=3.4.2", - "h3": ">=1.15.6", - "undici": ">=7.24.0", - "devalue": ">=5.6.4", - "svgo": ">=4.0.1", - "express-rate-limit": ">=8.2.2", - "rollup": ">=4.59.0", + "flatted": "^3.4.2", + "h3": "^1.15.6", + "undici": "^7.24.0", + "devalue": "^5.6.4", + "svgo": "^4.0.1", + "express-rate-limit": "^8.2.2", + "rollup": "^4.59.0",🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@package.json` around lines 87 - 93, The dependency ranges in package.json use unbounded ">=" (e.g., entries for "flatted", "h3", "undici", "devalue", "svgo", "express-rate-limit", "rollup"), which allows automatic upgrades to future major versions; change each of those entries to caret ranges (e.g., "^3.4.2", "^1.15.6", "^7.24.0", "^5.6.4", "^4.0.1", "^8.2.2", "^4.59.0") so updates remain bounded to the current major while still allowing minor/patch updates per pnpm guidance.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@package.json`:
- Around line 87-93: The dependency ranges in package.json use unbounded ">="
(e.g., entries for "flatted", "h3", "undici", "devalue", "svgo",
"express-rate-limit", "rollup"), which allows automatic upgrades to future major
versions; change each of those entries to caret ranges (e.g., "^3.4.2",
"^1.15.6", "^7.24.0", "^5.6.4", "^4.0.1", "^8.2.2", "^4.59.0") so updates remain
bounded to the current major while still allowing minor/patch updates per pnpm
guidance.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: d1143f1f-a97b-474a-9946-0f99641819d3
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (1)
package.json
Summary
Test plan
pnpm installresolves without errorspnpm buildpasses (25/25 tasks)🤖 Generated with Claude Code
Summary by CodeRabbit