vercel / vercel/next.js

next@15.5.23 bundles vulnerable postCSS and Sharp

Open
#97,011 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Not Found
Dominant language
JavaScript
Stars
142k
Forks
32.4k
Avg merge
2d 14h
Merged PRs (30d)
351

Description

Link to the code that reproduces this issue

https://github.com/advisories/GHSA-r28c-9q8g-f849

To Reproduce
  1. Run npx create-next-app@15.5.23 my-audit-test --typescript --eslint --no-tailwind --src-dir --app --import-alias "@/*"
  2. Navigate into the directory: cd my-audit-test
  3. Run npm audit
  4. Observe high severity vulnerabilities reported for postcss and sharp.
Current vs. Expected behavior

Current beavior: Running npm audit on a project with Next.js 15.5.23 reports 3 high-severity security vulnerabilities originating from transitive dependencies (postcss and sharp).

Expected beavior: npm audit should pass with zero high-severity vulnerabilities on supported Next.js releases, and transitive dependencies like postcss and sharp should be bumped to secure patch versions.

Provide environment information
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Enterprise
  Available memory (MB): 16333
  Available CPU cores: 4
Binaries:
  Node: 25.3.0
  npm: 11.6.2
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 15.5.23
  eslint-config-next: 15.5.15
  react: 19.2.5
  react-dom: 19.2.5
  typescript: 5.9.3
Next.js Config:
  output: standalone
Which area(s) are affected? (Select all that apply)

Not Found

Which stage(s) are affected? (Select all that apply)

next build (local)

Additional context
  • PR #96739 ([15.x] support sharp 0.34 and 0.35) already addresses the sharp update for the 15.x release branch.
  • A similar version bump is still needed for postcss (to >=8.5.23) on the 15.x branch to completely clear the high-severity security warnings reported by npm audit.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the provided create-next-app and npm audit reproduction with Next.js 15.5.23, then inspect how the 15.x release resolves postcss and sharp. Review PR #96739 for the sharp update and verify that postcss reaches >=8.5.23; done means the supported 15.x release no longer reports high-severity vulnerabilities.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, next.js
Domain
build-system, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.