next@15.5.23 bundles vulnerable postCSS and Sharp
Nobody has claimed this yet.
- 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
- Run
npx create-next-app@15.5.23 my-audit-test --typescript --eslint --no-tailwind --src-dir --app --import-alias "@/*" - Navigate into the directory:
cd my-audit-test - Run
npm audit - Observe high severity vulnerabilities reported for
postcssandsharp.
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 thesharpupdate 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 bynpm audit.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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