{"id":"CVE-2025-55173","aliases":["CVE-2025-55173","GHSA-xv57-4mr9-wg8v"],"related":[],"kind":"vulnerability","state":"published","title":"Next.js Content Injection Vulnerability for Image Optimization","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"A vulnerability in **Next.js Image Optimization** has been fixed in **v15.4.5** and **v14.2.31**. 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.\n\nAll users relying on `images.domains` or `images.remotePatterns` are encouraged to upgrade and verify that external image sources are strictly validated.\n\nMore details at [Vercel Changelog](https://vercel.com/changelog/cve-2025-55173)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Next.js es un React framework para construir aplicaciones web full-stack. En versiones antes de 14.2.31 y desde 15.0.0 hasta la 15.4.5, la optimización de imágenes de Next.js es vulnerable a la inyección de contenido. El problema permitió que fuentes de imágenes externas controladas por el atacante desencadenaran descargas de archivos con contenido y nombres de archivo arbitrarios bajo configuraciones específicas. Este comportamiento podría ser abusado para phishing o entrega de archivos maliciosos. Esta vulnerabilidad ha sido corregida en las versiones de Next.js 14.2.31 y 15.4.5.","source":"nvd"}],"published":"2025-08-29T21:59:55.000Z","modified":"2026-10-18T21:10:00.120Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":">= 15.0.0, < 15.4.5","status":"affected"},{"version":"< 14.2.31","status":"affected"}],"vendor":"vercel","product":"next.js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.9.9","status":"affected","fixed":"14.2.31"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"15.0.0","status":"affected","fixed":"15.4.5"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"14.2.31"},{"status":"affected","introduced":"15.0.0","fixed":"15.4.5"}],"vendor":"vercel","product":"next.js","cpe":"cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-xv57-4mr9-wg8v","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vercel/next.js/commit/6b12c60c61ee80cb0443ccd20de82ca9b4422ddd","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://vercel.com/changelog/cve-2025-55173","tags":["vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-55173","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js","tags":["package"],"sources":["ghsa"]},{"url":"http://vercel.com/changelog/cve-2025-55173","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-02T19:22:48.480Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-55173","url":"https://www.cve.org/CVERecord?id=CVE-2025-55173","licence":"CVE Terms of Use","modified":"2025-09-02T19:22:57.504Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xv57-4mr9-wg8v","url":"https://github.com/advisories/GHSA-xv57-4mr9-wg8v","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:27.715Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-55173","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-55173","licence":"Public domain","modified":"2026-10-18T21:10:00.120Z"}],"updatedAt":"2026-11-25T22:59:03.908Z","epss":{"score":0.00696,"percentile":0.54271,"date":"2026-12-01T12:00:22.000Z"}}