You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(deps): patch critical and high advisories in production dependencies - #734
pnpm audit --prod on main reported 126 advisories in production dependencies: 2 critical, 45 high. Several reach the API's request path:
proxy-addr (via express), critical: IP spoofing through IPv4-mapped IPv6 addresses. The API rate-limits by client IP behind a proxy.
body-parser, multer and engine.io: request-driven denial of service.
undici: a TLS certificate validation bypass, plus a WebSocket DoS.
@modelcontextprotocol/sdk: the OAuth client could send credentials to another server.
zod, hono, markdown-it and js-yaml: CPU or memory exhaustion on crafted input.
What changed
Direct dependencies: raised within their current major: @hono/node-server, @modelcontextprotocol/sdk, dompurify, hono, markdown-it, sanitize-html, zod, esbuild and vite.
Transitive dependencies: fixed with pnpm.overrides, following the existing floors. Each override stays inside the major its parents ask for: body-parser@^2, brace-expansion@^2, js-yaml@^3 and @^4, undici@^6 and @^7. multer and seroval raise their existing floors.
Every patched version is older than the workspace's 3-day minimumReleaseAge, so nothing needed an exclusion.
Not included
No majors. happy-dom 21 fixes a high advisory, but it only runs in tests and Renovate already tracks the major.
pnpm audit --prod still reports 10 moderate and 2 low advisories.
Verification
pnpm audit --prod: 0 critical and 0 high, from 2 and 45.
nx run-many -t typecheck lint test build across all 32 projects, without the Nx cache: passed.
pnpm install --frozen-lockfile against the new lockfile: clean.
Summary by CodeRabbit
Chores
Updated version ranges for several application and development dependencies, including packages used by authentication and the editor.
No actionable comments were generated in the recent review.
Walkthrough
Dependency version ranges and pnpm overrides change in the root manifest. The zod and dompurify ranges also change in the auth-react and editor package manifests.
Changes
Dependency updates
Layer / File(s)
Summary
Dependency ranges and overrides package.json, packages/auth-react/package.json, packages/editor/package.json
The root manifest updates dependency ranges and adds or changes pnpm overrides. The auth-react manifest updates zod, and the editor manifest updates dompurify.
This PR patches critical and high security advisories in production dependencies by raising version ranges and overrides. No concrete regression was found, and it is ready to merge once the normal CI checks pass.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: patching critical and high security advisories in production dependencies. The raw summary shows pnpm overrides and version range bumps for body-parser, brace-expansio…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: patching critical and high security advisories in production dependencies. The raw summary shows pnpm overrides and version range bumps for body-parser, brace-expansion, js-yaml, undici, multer, seroval, zod and dompurify, which fits the title. The title is specific and follows the conventional commit style.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Some tools did not complete. Review the errors below.
ESLint
If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.
packages/auth-react/package.json
ESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox.
packages/editor/package.json
ESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox.
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.
Reviewing files that changed from the base of the PR and between 60170ca and 0d12356.
Files ignored due to path filters: 1
pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
Files selected for processing: 3
package.json
packages/auth-react/package.json
packages/editor/package.json
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
pnpm audit --prodon main reported 126 advisories in production dependencies: 2 critical, 45 high. Several reach the API's request path:proxy-addr(viaexpress), critical: IP spoofing through IPv4-mapped IPv6 addresses. The API rate-limits by client IP behind a proxy.body-parser,multerandengine.io: request-driven denial of service.undici: a TLS certificate validation bypass, plus a WebSocket DoS.@modelcontextprotocol/sdk: the OAuth client could send credentials to another server.zod,hono,markdown-itandjs-yaml: CPU or memory exhaustion on crafted input.What changed
@hono/node-server,@modelcontextprotocol/sdk,dompurify,hono,markdown-it,sanitize-html,zod,esbuildandvite.pnpm.overrides, following the existing floors. Each override stays inside the major its parents ask for:body-parser@^2,brace-expansion@^2,js-yaml@^3and@^4,undici@^6and@^7.multerandserovalraise their existing floors.minimumReleaseAge, so nothing needed an exclusion.Not included
happy-dom21 fixes a high advisory, but it only runs in tests and Renovate already tracks the major.pnpm audit --prodstill reports 10 moderate and 2 low advisories.Verification
pnpm audit --prod: 0 critical and 0 high, from 2 and 45.nx run-many -t typecheck lint test buildacross all 32 projects, without the Nx cache: passed.pnpm install --frozen-lockfileagainst the new lockfile: clean.Summary by CodeRabbit