CVE-2024-38372: Undici vulnerable to data leak when using response.arrayBuffer()
Impact Depending on network and process conditions of a fetch() request, response.arrayBuffer() might include portion of memory from the Node.js process. Patches This has been patched in v6.19.2. Workarounds There are no known workaround.
Published Jul 9, 2024 · Updated Aug 8, 2024
Affected packages
undici
- Ecosystem
- npm
- Affected
- >= 6.14.0, < 6.19.2
- Fixed in
- 6.19.2
- Check
npm ls undici
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Depending on network and process conditions of a fetch() request, response.arrayBuffer() might include portion of memory from the Node.js process.
Patches
This has been patched in v6.19.2.
Workarounds
There are no known workaround.
References
https://github.com/nodejs/undici/issues/3337 https://github.com/nodejs/undici/issues/3328 https://github.com/nodejs/undici/pull/3338 https://github.com/nodejs/undici/commit/f979ec3204ca489abf30e7d20e9fee9ea7711d36
Credited to bcomnes, KhafraDev.
References
- https://github.com/nodejs/undici/security/advisories/GHSA-3g92-w8c5-73pq
- https://nvd.nist.gov/vuln/detail/CVE-2024-38372
- https://github.com/nodejs/undici/issues/3328
- https://github.com/nodejs/undici/issues/3337
- https://github.com/nodejs/undici/pull/3338
- https://github.com/nodejs/undici/commit/f979ec3204ca489abf30e7d20e9fee9ea7711d36
- https://github.com/advisories/GHSA-3g92-w8c5-73pq
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-109383
undici vulnerable to TLS certificate validation bypass via dropped tls options in Agent
high7.4Oct 27, 2026CVE-2026-109829
undici vulnerable to cache poisoning and cross-user disclosure via cross-origin redirects
high7.4Oct 27, 2026CVE-2026-109855
undici WebSocket client vulnerable to Denial of Service via failed HTTP/2 handshake
high7.5Oct 27, 2026CVE-2026-109932
undici WebSocket client vulnerable to Denial of Service via unbounded automatic PONG buffering
medium5.9Oct 27, 2026CVE-2026-87018
undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation
high7.5Oct 27, 2026CVE-2026-87029
undici vulnerable to Denial of Service via unhandled exception in the decompress interceptor
medium5.9Oct 27, 2026
