CVE-2025-55173 Next.js Content Injection Vulnerability for Image Optimization
MediumCVSS 4.3
EPSS 0.72%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
Next.js is a React framework for building full-stack web applications. In versions before 14.2.31 and from 15.0.0 to before 15.4.5, Next.js Image Optimization is vulnerable to content injection. The issue allowed attacker-controlled external image sources to trigger file downloads with arbitrary content and filenames under specific configurations. This behavior could be abused for phishing or malicious file delivery. This vulnerability has been fixed in Next.js versions 14.2.31 and 15.4.5.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm next(npm) | >= 0.9.9, < 14.2.31; >= 15.0.0, < 15.4.5; >= 15.0.0, <= 15.4.4 | 14.2.31, 15.4.5 | Fixed |
| vercel next.js | < 14.2.31; = < 14.2.31; = >= 15.0.0, < 15.4.5; >= 15.0.0, < 15.4.5 | 14.2.31, 15.4.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm next(npm) | >= 15.0.0, <= 15.4.4 | No fix listed |
| npm next(npm) | >= 0.9.9, < 14.2.31 | 14.2.31 |
| vercel next.js | = >= 15.0.0, < 15.4.5 | No fix listed |
| vercel next.js | = < 14.2.31 | No fix listed |
| vercel next.js | < 14.2.31 | 14.2.31 |
| vercel next.js | >= 15.0.0, < 15.4.5 | 15.4.5 |
| npm next(npm) | >= 15.0.0, < 15.4.5 | 15.4.5 |
References
- https://github.com/vercel/next.js/security/advisories/GHSA-xv57-4mr9-wg8v vendor-advisory
- https://github.com/vercel/next.js/commit/6b12c60c61ee80cb0443ccd20de82ca9b4422ddd patch
- vercel.com
- nvd.nist.gov third-party-advisory vendor-advisory
- https://vercel.com/changelog/cve-2025-55173 vendor-advisory
- github.com
- github.com product