Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. next
  4. ›
  5. CVE-2026-64647

CVE-2026-64647: Next.js: Cache confusion of response bodies for requests with bodies containing invalid UTF-8 byte sequences

July 22, 2026

A server-side fetch with a request body may return a cached response body from a different request to the same URL but different body. Confidential data in the POST’s response body would then leak to unauthorized requests. Though the request itself will not be deduped.

This is only an issue when receiving request bodies with a content type charset other than UTF-8. For example, the UTF-16 byte sequences for 삃삃 and 섄섄 in the request body would share the same cache.

References

  • github.com/advisories/GHSA-4633-3j49-mh5q
  • github.com/vercel/next.js/commit/025bf4a5f7b47fb7758c4ebf1c931a61c451c082
  • github.com/vercel/next.js/pull/96008
  • github.com/vercel/next.js/releases/tag/v15.5.21
  • github.com/vercel/next.js/releases/tag/v16.2.11
  • github.com/vercel/next.js/security/advisories/GHSA-4633-3j49-mh5q
  • nvd.nist.gov/vuln/detail/CVE-2026-64647

Code Behaviors & Features

Detect and mitigate CVE-2026-64647 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 13.0.0 before 15.5.21, all versions starting from 16.0.0 before 16.2.11

Fixed versions

  • 15.5.21
  • 16.2.11

Solution

Upgrade to versions 15.5.21, 16.2.11 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output

Source file

npm/next/CVE-2026-64647.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:19:24 +0000.