Next.js: Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used
What to do
- Upgrade to a fixed version: next 15.5.28, next 16.4.1.
- Redeploy and restart long-running processes so they load the fixed code.
Affected packages
next
- >= 10.0.0, <= 15.5.27
- 15.5.28
Check your project: npm ls next --all
next
- >= 16.0.0, <= 16.4.0
- 16.4.1
Check your project: npm ls next --all
What changed
Published in the GitHub Advisory Database as critical.