Improper Validation of Specified Type of Input Affecting next package, versions >=15.0.0 <15.5.29>=16.0.0 <16.4.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-NEXT-22733202
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditUnknown

Introduced: 19 Nov 2026

NewCVE-2026-119347  (opens in a new tab)
CWE-1287  (opens in a new tab)

How to fix?

Upgrade next to version 15.5.29, 16.4.5 or higher.

Overview

next is a react framework.

Affected versions of this package are vulnerable to Improper Validation of Specified Type of Input via a false-positive AVIF/HEIC detection bypass in the detectContentType function within image-optimizer.ts. The previous ISOBMFF magic-byte check used a wildcard for the first four bytes of the ftyp box size, allowing an SVG file containing the comment <!--ftypavif--> or <!--ftypcheic--> to match the AVIF or HEIC signature. This causes the image optimizer (/_next/image) to pass the attacker-supplied SVG to an SVG parser even when dangerouslyAllowSVG: false (the default), increasing exposure to denial of service and SVG decoder vulnerabilities.

Note: This is only exploitable on self-hosted deployments where the Next.js image optimizer is active.

CVSS Base Scores

version 4.0
version 3.1