CVE-2026-64644: Next Denial of Service Vulnerability
MODERATECVE-2026-64644 is a MODERATE denial of service vulnerability (CWE-407: Inefficient Algorithmic Complexity) affecting Next libraries in the npm ecosystem. The issue involves denial of service in the image optimization api using svgs. Remediation is available by upgrading affected packages to version 15.5.21, 16.2.11.
CVE-2026-64644 at a Glance
How to Fix CVE-2026-64644
To remediate this vulnerability, upgrade all affected Next dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install next@15.5.21
npm install next@16.2.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls next
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-64644, inspect your project dependencies using npm:
npm ls next
Analyze the terminal output to locate any version of Next in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 15.5.21), your application is affected.
Note: The npm ls next command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-407: Inefficient Algorithmic Complexity, where an algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached. In Next, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-64644 Affected Next Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2026-64644?
Which Next versions are affected?
What version fixes CVE-2026-64644?
Is next affected?
What CWE is associated with CVE-2026-64644?
How can I check npm dependencies for CVE-2026-64644?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q8wf-6r8g-63ch",
"modified" : "2026-07-22T23:02:05Z",
"published" : "2026-07-22T23:02:05Z",
"aliases" : [ "CVE-2026-64644" ],
"summary" : "Next.js: Denial of Service in the Image Optimization API using SVGs",
"details" : "### Impact\n\nWhen self-hosting Next.js with the default image loader, the Image Optimization API can optimize remotely hosted images if configured (not enabled by default). If those images contain malicious content, they can cause CPU exhaustion in `/_next/image` endpoints.\n\n- If you are using `config.images.remotePatterns`, only the patterns in that array are impacted.\n- If you are using `config.images.unoptimized: true`, you are NOT impacted.\n- If you are using `config.images.loader: 'custom'`, you are NOT impacted.\n- If you are using Vercel, you are NOT impacted.\n\n### Workarounds\n\nIf you cannot upgrade immediately, you can avoid the expensive work by setting `config.experimental.imgOptSkipMetadata : true`.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "next"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "15.5.0"
}, {
"fixed" : "15.5.21"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "next"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "16.0.0"
}, {
"fixed" : "16.2.11"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/vercel/next.js/security/advisories/GHSA-q8wf-6r8g-63ch"
}, {
"type" : "WEB",
"url" : "https://github.com/vercel/next.js/pull/96006"
}, {
"type" : "WEB",
"url" : "https://github.com/vercel/next.js/commit/93cb90891402fa4c47798d03cb9e05c13233766c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/vercel/next.js"
}, {
"type" : "WEB",
"url" : "https://github.com/vercel/next.js/releases/tag/v15.5.21"
}, {
"type" : "WEB",
"url" : "https://github.com/vercel/next.js/releases/tag/v16.2.11"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-407" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-22T23:02:05Z",
"nvd_published_at" : null
}
}