CVE-2025-55173
MEDIUM 4.3CVSS 3.1Next.js Content Injection Vulnerability for Image Optimization
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.
- Published
- 29 Aug 2025
- Last modified
- 18 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-20
- Also known as
- GHSA-xv57-4mr9-wg8v
- Sources
- NVDJSONOSV GHSA-xv57-4mr9-wg8vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vercel | next.jscpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:* |
< 14.2.31 | 14.2.31 |
| NVD | vercel | next.jscpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:* |
>= 15.0.0, < 15.4.5 | 15.4.5 |
| OSV | npm | next | >= 0.9.9, < 14.2.31 | 14.2.31 |
| OSV | npm | next | >= 15.0.0, < 15.4.5 | 15.4.5 |
References
- https://github.com/vercel/next.js/commit/6b12c60c61ee80cb0443ccd20de82ca9b4422ddd · Patch, WEB
- https://github.com/vercel/next.js/security/advisories/GHSA-xv57-4mr9-wg8v · Vendor Advisory, WEB
- https://vercel.com/changelog/cve-2025-55173 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-55173 · ADVISORY
- https://github.com/vercel/next.js · PACKAGE
- http://vercel.com/changelog/cve-2025-55173 · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 29 Aug 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Aug 2025)