Skip to content
OpenAdvisories
Medium · 4.3 CVE-2025-55173 EUVD-2025-26244GHSA-xv57-4mr9-wg8v

Next.js Content Injection Vulnerability for Image Optimization

Published Aug 29, 2025 · Updated Sep 2, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
vercel next.js >= 15.0.0, < 15.4.5, < 14.2.31 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling jitsucom-jitsu +2 2.11.0-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm next >= 0.9.9, < 14.2.31 14.2.31 GHSA-xv57-4mr9-wg8v
npm next >= 15.0.0, < 15.4.5 15.4.5 GHSA-xv57-4mr9-wg8v

Advisories 1

References