MEDIUM · CVSS 4.0 EPSS 0.6% · 41th percentile CWE-1287

CVE-2026-119347: Next.js: SVG rejection bypass in the image optimization

Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-7qx7-33qx-rqx2

Summary

A vulnerability in the Next.js image optimization component allows processed SVG files to bypass rejection checks even when SVG support is explicitly disabled. Engineering and security teams managing self-hosted Next.js deployments should update their packages.

Who is affected

Self-hosted Next.js deployments can be forced to process attacker-supplied SVG files through the `/_next/image` endpoint despite `dangerouslyAllowSVG: false` being configured. This exposes the application to denial of service risks and potential SVG decoder vulnerabilities by reaching a parser intended to remain disabled.

Exploitability

The vulnerability is remotely exploitable over the network with low complexity and no privileges or user interaction required, impacting application availability. It carries a CVSS 4.0 base score of medium severity, an EPSS score of 0.003, and is not currently listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm next >= 15.0.0, < 15.5.29 15.5.29 npm install [email protected]
npm next >= 16.0.0, < 16.4.5 16.4.5 npm install [email protected]

Tracked tools affected

Next.js · Next.js security advisories · Fixed in Next.js 15.5.29 release notes · Fixed in Next.js 16.4.5 release notes

CVSS 4.0 vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Attack vectorNetwork
Attack complexityLow
Attack requirementsNone
Privileges requiredNone
User interactionNone
Confidentiality (vulnerable system)None
Integrity (vulnerable system)None
Availability (vulnerable system)Low
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What is affected by CVE-2026-119347?

Self-hosted Next.js deployments using vulnerable versions of the npm package 'next' (specifically 15.0.0 through 15.5.28 and 16.0.0 through 16.4.4).

Does setting dangerouslyAllowSVG to false mitigate the issue?

No, the vulnerability allows attacker-supplied SVGs to be processed even when dangerouslyAllowSVG is set to false (the default).

Is this vulnerability actively exploited in the wild?

No, CISA Known Exploited Vulnerabilities data indicates this is not currently listed as actively exploited.

Original advisory description
On self-hosted deployments, the Next.js image optimizer (`/_next/image`) can be made to process an attacker-supplied SVG even when SVG support is disabled with `dangerouslyAllowSVG: false` (the default). This reaches an SVG parser the application intended to keep disabled, increasing exposure to denial of service and SVG decoder vulnerabilities.

References

Source records: GHSA-7qx7-33qx-rqx2 (OSV.dev) · EPSS by FIRST, 2026-11-26.