CVE-2026-64647
JSON

6.3medium

Next.js: Response Body Cache Confusion with Invalid UTF-8 Request Bodies

Severity
6.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.35% (higher than 21% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-4633-3j49-mh5q

Description

Next.js is a React framework for building full-stack web applications. In versions 12.0.0 through 15.5.20 and 16.0.0 through 16.2.10, 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. This issue has been fixed in versions 15.5.21 and 16.2.11.

Affected

Product or packageVersionsReported by
vercel next.js>= 13.0.0, < 15.5.21, >= 16.0.0, < 16.2.11, from 13.0.0 before 15.5.21, from 16.0.0 before 16.2.11CVE List, NVD
next (npm)from 13.0.0 before 15.5.21, from 16.0.0 before 16.2.11GitHub Advisory Database

All scores

GitHub_M6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Classification

CWE-116

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Next.js is a React framework for building full-stack web applications. In versions 12.0.0 through 15.5.20 and 16.0.0 through 16.2.10, 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. This issue has been fixed in versions 15.5.21 and 16.2.11.

GitHub Advisory Database

Impact

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.

Workarounds

If you cannot upgrade, consider only making fetch requests with UTF-8 bodies (default in Next.js). Applications using Pages Router are not vulnerable.

NVD (es)

Next.js es un framework de React para construir aplicaciones web full-stack. En las versiones 12.0.0 hasta la 15.5.20 y 16.0.0 hasta la 16.2.10, un fetch del lado del servidor con un cuerpo de solicitud puede devolver un cuerpo de respuesta en caché de una solicitud diferente a la misma URL pero con un cuerpo diferente. Datos confidenciales en el cuerpo de respuesta del POST se filtrarían entonces a solicitudes no autorizadas. Aunque la solicitud en sí misma no será desduplicada. Esto es solo un problema al recibir cuerpos de solicitud con un conjunto de caracteres (charset) de tipo de contenido diferente a UTF-8. Por ejemplo, las secuencias de bytes UTF-16 para ?? y ?? en el cuerpo de la solicitud compartirían la misma caché. Este problema ha sido solucionado en las versiones 15.5.21 y 16.2.11.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-64647 changed 2026-07-27CVE Terms of Use
GitHub Advisory DatabaseGHSA-4633-3j49-mh5q changed 2026-09-10CC-BY-4.0
NVDCVE-2026-64647 changed 2026-10-24Public domain