Skip to content

fix(deps): patch critical and high advisories in production dependencies - #734

Merged
jovandyaz merged 1 commit into
mainfrom
fix/security-deps
Nov 20, 2026
Merged

jovandyaz merged 1 commit into
mainfrom
fix/security-deps

Conversation

@jovandyaz

@jovandyaz jovandyaz commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Why

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.

@jovandyaz

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

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.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: Minimal · up to 0d123

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 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.
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.

Share

Recent review info

Run configuration

Commits

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.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Action performed

Full review finished.

@jovandyaz
jovandyaz merged commit 7fd495f into main Nov 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant