Skip to content

fix(security): clear pnpm audit high/critical (next 16.4.1) - #129

Merged
jusso-dev merged 2 commits into
mainfrom
fix/security-deps
Oct 30, 2026
Merged

jusso-dev merged 2 commits into
mainfrom
fix/security-deps

Conversation

@jusso-dev

@jusso-dev jusso-dev commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Advisory

pnpm audit --audit-level high failed on main: 5 critical and high advisories in next (16.0.0 to 16.4.0, including RCE and image SSRF), plus sharp (GHSA-g89c-p67h-r497, librsvg), proxy-addr (IPv4-mapped spoofing), fast-uri, js-yaml, source-map-js, body-parser, vite and zod.

Change

  • next 16.2.12 -> 16.4.1 (apps/web)
  • zod catalog 4.4.3 -> 4.6.6
  • overrides: sharp >=0.35.5, proxy-addr >=2.0.8, fast-uri >=3.1.7, js-yaml >=3.15.2, source-map-js >=1.2.2, body-parser >=2.4.0, vite >=8.3.3

#126 (sharp build script) and #127 (gitleaks) were already addressed on main by #120; allowBuilds.sharp is retained.

Verification

  • pnpm install --frozen-lockfile: ok
  • pnpm audit --audit-level high: ok (4 moderate remain)
  • pnpm typecheck: ok
  • pnpm test: ok
  • next build (apps/web): ok

Dependabot #123 and #124 overlap with this and can be retired once merged.

Fixes #128

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the app’s underlying framework and supporting libraries to newer versions. These updates are not expected to change how the app looks or behaves.

jusso-dev and others added 2 commits October 30, 2026 12:14
… deps

Clears pnpm audit high/critical: next, sharp, proxy-addr, fast-uri,
js-yaml, source-map-js, body-parser, vite, zod.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Walkthrough

The web app's Next.js version changes to 16.4.1. The workspace updates the Zod catalog version, raises the sharp minimum override, and adds minimum-version overrides for six packages.

Changes: Dependency updates

Layer / File(s) Summary
Next.js version update
apps/web/package.json
The web app's Next.js dependency changes from 16.2.12 to 16.4.1.
Workspace dependency versions
pnpm-workspace.yaml
The Zod catalog version changes to 4.6.6. The sharp minimum override changes to 0.35.5. Minimum-version overrides are added for proxy-addr, fast-uri, js-yaml, source-map-js, body-parser, and vite.

Priority: High

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

Change: Other · Severity of issue fixed: High

Merge Risk: Minimal · up to 3189d

The dependency updates are internally consistent and present no identified merge-blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the security fix (clearing pnpm audit high/critical findings) and cites the main dependency change (next 16.4.1). The raw summary confirms the next upgrade in apps/web/package.json, an…
Linked Issues check Passed Issue #128 requires dependency upgrades or overrides that make pnpm audit --audit-level high pass. The PR upgrades next to 16.4.1, updates the zod catalog, and adds security-version overrides fo…
Out of Scope Changes check Passed The reviewed changes are limited to dependency declarations in apps/web/package.json and pnpm-workspace.yaml. These changes directly address the dependency audit scope in issue #128. No unrelated …
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Title check

Explanation

The title names the security fix (clearing pnpm audit high/critical findings) and cites the main dependency change (next 16.4.1). The raw summary confirms the next upgrade in apps/web/package.json, and the objectives confirm the audit-driven scope. The title covers the main change, though it omits the zod, sharp, and override updates.

Full details: Linked Issues check

Explanation

Issue #128 requires dependency upgrades or overrides that make pnpm audit --audit-level high pass. The PR upgrades next to 16.4.1, updates the zod catalog, and adds security-version overrides for sharp, proxy-addr, fast-uri, js-yaml, source-map-js, body-parser, and vite. The PR reports successful frozen installation, audit, typecheck, tests, and next build, with only moderate advisories remaining.

Full details: Out of Scope Changes check

Explanation

The reviewed changes are limited to dependency declarations in apps/web/package.json and pnpm-workspace.yaml. These changes directly address the dependency audit scope in issue #128. No unrelated product or repository changes are shown.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

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

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

Comment @coderabbitai help to get the list of available commands.

@jusso-dev
jusso-dev merged commit 79f62a2 into main Oct 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security and supply chain failing on main: pnpm audit reports 4 critical and 10 high advisories

1 participant