Skip to content

fix: bump next to 16.3.0 to remove vulnerable postcss/sharp deps - #3698

Draft
dielduarte wants to merge 1 commit into
canaryfrom
fix/3689-next-vulnerable-deps-v2
Draft

fix: bump next to 16.3.0 to remove vulnerable postcss/sharp deps#3698
dielduarte wants to merge 1 commit into
canaryfrom
fix/3689-next-vulnerable-deps-v2

Conversation

@dielduarte

@dielduarte dielduarte commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bumps `next` 16.2.6 → 16.3.0 in the pnpm catalog. 16.2.6 bundles vulnerable `postcss` (<=8.5.22) and `sharp` (<0.35.0), which `npm audit` flags as 4 high-severity advisories on a fresh install. 16.3.0 bundles patched versions of both.
  • Fixes a pre-existing type error in `run-bundled-code.spec.ts` that 16.3.0's build-time typecheck now catches (test behavior unchanged, 105/105 tests pass).

Redo of #3691, which was reverted in #3697 after the `tests` check failed on `canary`. That failure (`check-spam.spec.tsx` snapshot mismatch) was a SpamAssassin/DCC classification drift on an unrelated live external service — re-running it later against this same diff passed cleanly, and the code this PR touches has no path to that test's spam-checking feature. Opening as draft pending confirmation CI stays green before merging.

Fixes #3689

Verification

  • Reproduced the issue: fresh `create-email` project + `npm install` + `npm audit` → 4 high severity vulnerabilities, all from `next`.
  • With `next` overridden to 16.3.0 → `npm audit` → 0 vulnerabilities.
  • `pnpm build` and `pnpm test` pass in `packages/ui` (105/105 tests).

Test plan

  • CI green (including `tests`, given the prior flake)
  • `npm audit` clean on a fresh install once published

Summary by cubic

Upgrade next to 16.3.0 to remove vulnerable transitive postcss and sharp versions and keep fresh installs npm-audit clean. Also fixes a test-only typing issue surfaced by 16.3.0. Fixes #3689.

  • Dependencies

    • Bumped next 16.2.6 → 16.3.0 in the pnpm catalog and lockfile; adds a changeset for @react-email/ui patch release.
    • Transitive updates include postcss 8.5.23 and sharp 0.35.x, clearing 4 high-severity advisories.
  • Bug Fixes

    • Widened emitWarning call handling in run-bundled-code.spec.ts to satisfy stricter Node typings; behavior unchanged.

Written for commit 0805e1c. Summary will update on new commits.

Review in cubic

@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0805e1c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@react-email/ui Patch
react-email Patch
@react-email/editor Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-email Ready Ready Preview Aug 4, 2026 8:06pm
react-email-demo Error Error Aug 4, 2026 8:06pm

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednext@​16.3.061100909970

View full report

@pkg-pr-new

pkg-pr-new Bot commented Aug 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@react-email/ui@3698

commit: 0805e1c

@klotty klotty left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: This update resolves high-severity security vulnerabilities by bumping the next dependency and includes a focused type fix for test compatibility.

Re-trigger cubic

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.

@react-email/ui ships vulnerable versions of Next.js, PostCSS and Sharp

2 participants