Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted /_next/image request
-
DeliveryDeliver SVG prefixed with <!--ftypavif-->
-
ExploitBypass AVIF magic-byte signature check
-
ExecutionSVG reaches intentionally-disabled parser
-
ImpactTrigger 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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- 16 npm packages depend on next (13 direct, 3 indirect)
Ecosystem-wide dependent count for version 15.0.0.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
React Server Components in React 19.x contain a critical pre-authentication remote code execution vulnerability (CVE-202
ZEIT Next.js before 2.4.1 has directory traversal under the /_next and /static request namespace, allowing attackers to
Pre-authentication denial of service in React Server Components (versions 19.0.0 through 19.2.1) allows unauthenticated
Information disclosure in React Server Components 19.x, distributed as react-server-dom-webpack, react-server-dom-turbop
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
Server-side request forgery in Vercel Next.js affects self-hosted deployments whose custom middleware calls next()/NextR
Next.js is a React framework that can provide building blocks to create web applications. Rated high severity (CVSS 7.5)
Next.js before 13.4.20-canary.13 lacks a cache-control header and thus empty prefetch responses may sometimes be cached
ZEIT Next.js 4 before 4.2.3 has Directory Traversal under the /_next request namespace. Rated high severity (CVSS 7.5),
Unsafe deserialization in React Server Components Server Function endpoints allows remote unauthenticated attackers to t
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
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
EUVD-2026-126601
GHSA-7qx7-33qx-rqx2
NVD
CVE.org
EPSS
Exploit-DB