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 package | Versions | Reported 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.11 | CVE List, NVD |
| next (npm) | from 13.0.0 before 15.5.21, from 16.0.0 before 16.2.11 | GitHub Advisory Database |
All scores
| GitHub_M | 6.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Classification
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
| https://github.com/vercel/next.js/security/advisories/GHSA-4633-3j49-mh5q | vendor-advisory, web | |
| https://github.com/vercel/next.js/pull/96008 | issue-tracking, patch, web | |
| https://github.com/vercel/next.js/commit/025bf4a5f7b47fb7758c4ebf1c931a61c451c082 | patch, web | |
| https://github.com/vercel/next.js/releases/tag/v15.5.21 | product, release-notes, web | |
| https://github.com/vercel/next.js/releases/tag/v16.2.11 | product, release-notes, web | |
| https://github.com/vercel/next.js | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-64647 changed 2026-07-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4633-3j49-mh5q changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-64647 changed 2026-10-24 | Public domain |