Skip to main content

Next.js CVE-2026-119347

| EUVDEUVD-2026-126601 MEDIUM
Improper Validation of Specified Type of Input (CWE-1287)
2026-11-16 GitHub_M GHSA-7qx7-33qx-rqx2
6.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted /_next/image request
  2. Delivery
    Deliver SVG prefixed with <!--ftypavif-->
  3. Exploit
    Bypass AVIF magic-byte signature check
  4. Execution
    SVG reaches intentionally-disabled parser
  5. Impact
    Trigger denial of service or decoder flaw

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Specified type validation
Exploitation Conditions

Applies specifically to SELF-HOSTED Next.js deployments running the built-in image optimizer (/_next/image) in affected versions (15.0.0-15.5.28 and 16.0.0-16.4.4), where the default dangerouslyAllowSVG:false is relied upon to block SVG processing. The concrete prerequisite is that an attacker can get the optimizer to fetch attacker-supplied SVG bytes (via the url parameter resolving to an allowed/reachable image source) whose content begins with the comment '<!--ftypavif-->', causing the 'ftypavif' bytes to sit at offset 4 and defeat the AVIF magic-byte detection. Limiting factors: the bug does not affect Vercel-hosted deployments the same way (the image CDN and cacheComponents paths behave differently per the e2e tests), the impact is bounded to denial of service and secondary exposure of SVG-decoder bugs (no confidentiality/integrity impact per VC:N/VI:N), and exploitation presupposes the optimizer can be pointed at the malicious SVG source.

Impact

Signals point to a moderate, not urgent, priority. The authoritative CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) shows a network-reachable, low-complexity, unauthenticated flaw, but the impact metrics are the limiting factor: only VA:L (low availability) with VC:N/VI:N - no confidentiality or integrity impact and no scope change. This is consistent with the advisory, which frames the bug as a signature-detection bypass that exposes a normally-disabled SVG parser, raising exposure to denial of service and to latent SVG-decoder vulnerabilities rather than granting direct code execution. The vuln.today decision label is 'this_month' (not act_now/emergency). No CISA KEV listing is present in the input, so there is no confirmation of active exploitation, and no EPSS score was provided to gauge exploitation probability. The commit evidence includes an e2e test (app/evil/route.js) that demonstrates the exact bypass trigger (an SVG beginning with the comment '<!--ftypavif-->' so the 'ftypavif' bytes land at offset 4 where the AVIF magic-byte check looks), so a public PoC reference exists, but it is not packaged as a weaponized exploit. A key scoping caveat the defender must verify: the evidence states the issue affects SELF-HOSTED deployments, and the tests show Vercel-hosted/CDN and cacheComponents paths behave differently (passing bytes through or serving as-is) - so real-world risk is concentrated on self-hosted Next.js, not Vercel-managed hosting. Overall: a real but bounded availability/exposure issue warranting patching on the normal cycle, not an emergency.

Exploit ScenarioDerived

An attacker requests the self-hosted optimizer endpoint /_next/image with a url pointing at an attacker-influenced SVG whose content begins with the HTML comment '<!--ftypavif-->'; the optimizer misidentifies it as AVIF, bypasses the dangerouslyAllowSVG:false default, and feeds the SVG to a parser that was meant to stay disabled. A public PoC reference exists in the project's own e2e test (app/evil/route.js) but is not verified as a working weaponized exploit; the CVSS vector (AV:N/AC:L) indicates remote, low-complexity triggering, with impact limited to denial of service and exposure of SVG decoder weaknesses.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 16, 2026

Self-hosted Next.js deployments in the 15.0.0-15.5.28 and 16.0.0-16.4.4 ranges let remote, unauthenticated attackers push SVG content through the built-in /_next/image optimizer even when dangerouslyAllowSVG is false, which is the default. The bypass works by starting an SVG document with the XML comment <!--ftypavif-->, which places the bytes 'ftypavif' at offset 4 - exactly where the optimizer's AVIF magic-byte sniff looks - so the file is mistyped and handed to an SVG parser the operator meant to keep disabled. The assessed impact is limited to availability (CVSS:3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L), consisting of denial of service and secondary exposure to flaws in SVG decoding; no confidentiality or integrity impact is assessed, no public exploit was identified at time of analysis, and this is not in CISA KEV - priority is moderate ('this_month'), not emergency.

RemediationAI

Vendor-released patch: Next.js 15.5.29 for the 15.x branch and Next.js 16.4.5 for the 16.x branch - upgrade to the release matching your major line; details are in GHSA-7qx7-33qx-rqx2 (https://github.com/vercel/next.js/security/advisories/GHSA-7qx7-33qx-rqx2) and https://nextjs.org/blog/november-2026-security-release. The advisory does not document a workaround, so updating is the complete fix; setting dangerouslyAllowSVG: false does not help because that is precisely the control the bug bypasses. Until you can upgrade, the practical exposure limit described in the assessment is whether the optimizer can be pointed at attacker-supplied SVG bytes at all - i.e. whether the url parameter can resolve to a source the deployment allows - so narrowing which image sources the optimizer will fetch and serving untrusted images unoptimized reduces reachability, at the cost of losing optimizer functionality for those sources.

Affected VersionsENISA

next.js 15.0.0, < 15.5.29
next.js 16.0.0, < 16.4.5

Affected Packages

npm next fix: 15.5.29, 16.4.5
euvd next_js fix: 15.5.29, 16.4.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-1287 (Improper Validation of Specified Type of Input), realized as a magic-byte signature confusion in packages/next/src/server/image-optimizer.ts. Next.js's detectContentType() classified incoming image bytes by comparing them against fixed byte patterns; the AVIF test checked bytes 4-11 for 'ftyp' + 'avif' and the HEIC test for 'ftyp' + 'heic', but never validated the 4-byte big-endian ISOBMFF box size that must precede 'ftyp' in a real ISO Base Media File Format container. Because the leading size field was allowed to be zero/absent, ordinary text could match: an SVG whose first bytes are the XML comment <!--ftypavif--> puts 'ftypavif' at offset 4 and is misclassified as AVIF, evading the dangerouslyAllowSVG reject path and reaching an SVG decoder. The upstream fix introduces hasFtypBox(buffer, brand), which requires at least 12 bytes, a box size between 16 and the buffer length, the 'ftyp' type at offset 4, and the expected brand at offset 8; both the AVIF and HEIC checks were converted to use it, and an e2e regression suite (avif-svg-signature-confusion) was added with control and 'evil' routes. The commit test notes also show deployment-mode differences: Vercel-hosted paths (plain CDN and cacheComponents) behave differently from self-hosted, where the request is expected to return 400 with 'image type is not allowed'.

Know when Next Js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.9 MEDIUM
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
vuln.today AI 5.3 MEDIUM

Remote, low-complexity, unauthenticated request to the optimizer (AV:N/AC:L/PR:N/UI:N); impact limited to denial of service and parser exposure, so C:N/I:N/A:L, no scope change.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 16, 2026 - 20:18 EUVD
CVE Published
Nov 16, 2026 - 18:25 cve.org
MEDIUM 6.9

DescriptionCVE.org

Next.js is a React framework for building full-stack web applications. From 15.0.0 until 15.5.29 and 16.4.5, the /_next/image optimizer in self-hosted Next.js deployments can process attacker-supplied SVG content even when dangerouslyAllowSVG is false, which is the default. The SVG reaches a parser that the application intended to keep disabled, increasing exposure to denial of service and vulnerabilities in SVG decoding. This issue is fixed in versions 16.4.5 and 15.5.29.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 16 npm packages depend on next (13 direct, 3 indirect)

Ecosystem-wide dependent count for version 15.0.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
High
Next.js is a very widely deployed React framework; self-hosted subset affected
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
High

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-55182 CRITICAL POC
10.0 Dec 03

React Server Components in React 19.x contain a critical pre-authentication remote code execution vulnerability (CVE-202

CVE-2017-16877 HIGH POC
7.5 Nov 17

ZEIT Next.js before 2.4.1 has directory traversal under the /_next and /static request namespace, allowing attackers to

CVE-2025-55184 HIGH POC
7.5 Dec 11

Pre-authentication denial of service in React Server Components (versions 19.0.0 through 19.2.1) allows unauthenticated

CVE-2025-55183 MEDIUM POC
5.3 Dec 11

Information disclosure in React Server Components 19.x, distributed as react-server-dom-webpack, react-server-dom-turbop

CVE-2026-75604 CRITICAL POC
9.0 Sep 01

Path traversal in Next.js (13.4.0 through 15.5.23 and 16.x before 16.3.3) running on Windows-hosted servers lets a remot

CVE-2025-57822 HIGH POC
8.2 Aug 29

Server-side request forgery in Vercel Next.js affects self-hosted deployments whose custom middleware calls next()/NextR

CVE-2024-34351 HIGH POC
7.5 May 14

Next.js is a React framework that can provide building blocks to create web applications. Rated high severity (CVSS 7.5)

CVE-2023-46298 HIGH POC
7.5 Oct 22

Next.js before 13.4.20-canary.13 lacks a cache-control header and thus empty prefetch responses may sometimes be cached

CVE-2018-6184 HIGH POC
7.5 Jan 24

ZEIT Next.js 4 before 4.2.3 has Directory Traversal under the /_next request namespace. Rated high severity (CVSS 7.5),

CVE-2025-67779 HIGH
7.5 Dec 12

Unsafe deserialization in React Server Components Server Function endpoints allows remote unauthenticated attackers to t

CVE-2026-119790 MEDIUM POC
6.3 Nov 16

Cached-data disclosure in Next.js 16.3.0 through 16.4.4 lets a request for one root-param value (for example one locale

CVE-2026-119351 MEDIUM POC
6.3 Nov 16

Next.js 16.2.0 through 16.4.4 with the opt-in Cache Components feature can persist an outer 'use cache' entry under a ke

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy