CVE-2025-55173
JSON

4.3medium

Next.js Content Injection Vulnerability for Image Optimization

Severity
4.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.70% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-xv57-4mr9-wg8v

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.

Affected

Product or packageVersionsReported by
vercel next.js>= 15.0.0, < 15.4.5, < 14.2.31, before 14.2.31, from 15.0.0 before 15.4.5CVE List, NVD
next (npm)from 0.9.9 before 14.2.31, from 15.0.0 before 15.4.5GitHub Advisory Database

All scores

GitHub_M4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
GitHub4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Classification

CWE-20

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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.

All users relying on images.domains or images.remotePatterns are encouraged to upgrade and verify that external image sources are strictly validated.

More details at Vercel Changelog

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-55173 changed 2025-09-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-xv57-4mr9-wg8v changed 2026-09-10CC-BY-4.0
NVDCVE-2025-55173 changed 2026-10-18Public domain