CVE-2026-13697
undici's cache interceptor mishandles malformed Cache-Control …
undici's cache interceptor mishandles malformed Cache-Control private directives. In undici 7.0.0 up to before 7.29.0 and 8.0.0 up to before 8.9.0, a response carrying a degenerate qualified private directive, such as private set to an empty value, can be stored in the default shared cache and later served to a different caller with the same cache key, disclosing private response bodies and headers including Set-Cookie. Separately, a Cache-Control header that combines an unqualified private directive with a qualified one triggers an uncaught TypeError in the cache-control parser, which rejects the request and, depending on the consumer's error handling, can terminate the process. Both issues affect applications using the cache interceptor in shared mode, including the default configuration. The issues are fixed in undici 7.29.0 and 8.9.0.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- cna.openjsf.org/security-advisories.html
- github.com/nodejs/undici/security/advisories/GHSA-4cwx-7wf7-3272
- nvd.nist.gov/vuln/detail/CVE-2026-13697
- github.com/nodejs/undici/commit/4fe5bc5fefe5ac81a200fc8e1cf84b8bf8464451
- github.com/advisories/GHSA-4cwx-7wf7-3272
- github.com/nodejs/undici/releases/tag/v7.29.0
- github.com/nodejs/undici/releases/tag/v8.9.0
- nvd.nist.gov/vuln/detail/CVE-2026-13697
- cve.org/CVERecord?id=CVE-2026-13697
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.