Skip to content

fix(ui): bump next to 16.3.0 - #3691

Merged
dielduarte merged 3 commits into
canaryfrom
fix/3689-next-vulnerable-deps
Aug 4, 2026
Merged

fix(ui): bump next to 16.3.0 #3691
dielduarte merged 3 commits into
canaryfrom
fix/3689-next-vulnerable-deps

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).

NOTES:

  • I had to turn off the Vercel Toolbar (Pre-Production Deployments) for this project to get preview builds deploying. next@16.3.0 ships supportsImmutableAssets, which Vercel's adapter auto-enables once detected, that collides with Vercel's own preview-comments patching step and fails the deploy. Disabling the toolbar for Preview sidesteps it; Production is untouched.

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
  • npm audit clean on a fresh install once published

Summary by cubic

Bumped next to 16.3.0 to remove high‑severity advisories from bundled postcss and sharp, and fixed a test type error surfaced by 16.3.0’s stricter typecheck. Fixes #3689.

  • Dependencies
    • next 16.2.6 → 16.3.0 (bundles postcss@8.5.23 and sharp@0.35.3); updated pnpm catalog/workspace and lockfile.
    • Added a changeset to publish a patch of @react-email/ui.
  • Bug Fixes
    • Widened mock callback param in run-bundled-code.spec.ts so build-time typecheck passes; test behavior unchanged.

Written for commit 7b51431. Summary will update on new commits.

Review in cubic

next@16.2.6 bundles vulnerable postcss (<=8.5.22) and sharp (<0.35.0),
causing npm audit to flag 4 high-severity advisories on install.
16.3.0 bundles patched versions of both.

Also widens a mock-callback param type in run-bundled-code.spec.ts so
16.3.0's build-time typecheck doesn't fail on a pre-existing tuple
destructure that was already invalid per @types/node's inferred type.

Fixes #3689

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7b51431

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 6:48pm
react-email-demo Error Error Aug 4, 2026 6:48pm

@socket-security

socket-security Bot commented Aug 4, 2026

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

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@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@3691

commit: 7b51431

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 1 file (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread .changeset/vulnerable-next-deps.md Outdated
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

@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.

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

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

Auto-approved: Dependency bump to fix high-severity vulnerabilities in bundled postcss/sharp, plus a test type fix. No behavioral, contract, or operational tradeoff changes.

Re-trigger cubic

@dielduarte
dielduarte marked this pull request as ready for review August 4, 2026 15:36

@gabrielmfern gabrielmfern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

since this update is causing vercel toolbar to break deploys, we should investigate why, and push a fix if we can, or get in touch with Vercel if that makes sense

@dielduarte

Copy link
Copy Markdown
Contributor Author

since this update is causing vercel toolbar to break deploys, we should investigate why, and push a fix if we can, or get in touch with Vercel if that makes sense

@gabrielmfern I tested here: https://github.com/dielduarte/react-email-ui-vercel-test (my personal account)
preview: https://react-email-ui-vercel-test-git-te-6d0a55-magdiel-4916s-projects.vercel.app/ (with toolbar enabled)

I think we are safe to move on.

@dielduarte dielduarte changed the title fix(ui): bump next to 16.3.0 to remove vulnerable postcss/sharp deps fix(ui): bump next to 16.3.0 Aug 4, 2026
@dielduarte
dielduarte merged commit 460b9c0 into canary Aug 4, 2026
22 of 24 checks passed
@dielduarte
dielduarte deleted the fix/3689-next-vulnerable-deps branch August 4, 2026 19:05
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

4 participants