chore(deps): update dependency undici to v7.24.0 [security]#738
chore(deps): update dependency undici to v7.24.0 [security]#738renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
b710a80 to
fb5f701
Compare
4d3f217 to
fbe8333
Compare
fbe8333 to
c0c1782
Compare
c0c1782 to
10ad1a2
Compare
10ad1a2 to
2dde6ed
Compare
c6bbc9f to
f7932b7
Compare
f7932b7 to
4fbc372
Compare
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
4fbc372 to
d0d0118
Compare
d0d0118 to
0f97d4f
Compare
31680a0 to
be67850
Compare
be67850 to
a0e8d37
Compare
This PR contains the following updates:
7.3.0→7.24.0GitHub Vulnerability Alerts
CVE-2025-47279
Impact
Applications that use undici to implement a webhook-like system are vulnerable. If the attacker set up a server with an invalid certificate, and they can force the application to call the webhook repeatedly, then they can cause a memory leak.
Patches
This has been patched in https://github.com/nodejs/undici/pull/4088.
Workarounds
If a webhook fails, avoid keep calling it repeatedly.
References
Reported as: https://github.com/nodejs/undici/issues/3895
CVE-2026-22036
Impact
The
fetch()API supports chained HTTP encoding algorithms for response content according to RFC 9110 (e.g., Content-Encoding: gzip, br). This is also supported by the undici decompress interceptor.However, the number of links in the decompression chain is unbounded and the default maxHeaderSize allows a malicious server to insert thousands compression steps leading to high CPU usage and excessive memory allocation.
Patches
Upgrade to 7.18.2 or 6.23.0.
Workarounds
It is possible to apply an undici interceptor and filter long
Content-Encodingsequences manually.References
CVE-2026-1525
Impact
Undici allows duplicate HTTP
Content-Lengthheaders when they are provided in an array with case-variant names (e.g.,Content-Lengthandcontent-length). This produces malformed HTTP/1.1 requests with multiple conflictingContent-Lengthvalues on the wire.Who is impacted:
undici.request(),undici.Client, or similar low-level APIs with headers passed as flat arraysPotential consequences:
Content-Lengthheaders (400 Bad Request)Patches
Patched in the undici version v7.24.0 and v6.24.0. Users should upgrade to this version or later.
Workarounds
If upgrading is not immediately possible:
Content-Lengthheaders (case-insensitive) are present before passing headers to undici{ 'content-length': '123' }) rather than an array, which naturally deduplicates by keyCVE-2026-1528
Impact
A server can reply with a WebSocket frame using the 64-bit length form and an extremely large length. undici's ByteParser overflows internal math, ends up in an invalid state, and throws a fatal TypeError that terminates the process.
Patches
Patched in the undici version v7.24.0 and v6.24.0. Users should upgrade to this version or later.
Workarounds
There are no workarounds.
CVE-2026-1527
Impact
When an application passes user-controlled input to the
upgradeoption ofclient.request(), an attacker can inject CRLF sequences (\r\n) to:The vulnerability exists because undici writes the
upgradevalue directly to the socket without validating for invalid header characters:Patches
Patched in the undici version v7.24.0 and v6.24.0. Users should upgrade to this version or later.
Workarounds
Sanitize the
upgradeoption string before passing to undici:CVE-2026-2229
Impact
The undici WebSocket client is vulnerable to a denial-of-service attack due to improper validation of the
server_max_window_bitsparameter in the permessage-deflate extension. When a WebSocket client connects to a server, it automatically advertises support for permessage-deflate compression. A malicious server can respond with an out-of-rangeserver_max_window_bitsvalue (outside zlib's valid range of 8-15). When the server subsequently sends a compressed frame, the client attempts to create a zlib InflateRaw instance with the invalid windowBits value, causing a synchronous RangeError exception that is not caught, resulting in immediate process termination.The vulnerability exists because:
isValidClientWindowBits()function only validates that the value contains ASCII digits, not that it falls within the valid range 8-15createInflateRaw()call is not wrapped in a try-catch blockPatches
Has the problem been patched? What versions should users upgrade to?
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
CVE-2026-1526
Description
The undici WebSocket client is vulnerable to a denial-of-service attack via unbounded memory consumption during permessage-deflate decompression. When a WebSocket connection negotiates the permessage-deflate extension, the client decompresses incoming compressed frames without enforcing any limit on the decompressed data size. A malicious WebSocket server can send a small compressed frame (a "decompression bomb") that expands to an extremely large size in memory, causing the Node.js process to exhaust available memory and crash or become unresponsive.
The vulnerability exists in the
PerMessageDeflate.decompress()method, which accumulates all decompressed chunks in memory and concatenates them into a single Buffer without checking whether the total size exceeds a safe threshold.Impact
Patches
Users should upgrade to fixed versions.
Workarounds
No workaround are possible.
Release Notes
nodejs/undici (undici)
v7.24.0Compare Source
What's Changed
Full Changelog: nodejs/undici@v7.23.0...v7.24.0
v7.23.0Compare Source
v7.22.0Compare Source
What's Changed
New Contributors
Full Changelog: nodejs/undici@v7.21.0...v7.22.0
v7.21.0Compare Source
What's Changed
closemethod to WebSocketStream interface by @piotr-cz in #4802New Contributors
Full Changelog: nodejs/undici@v7.20.0...v7.21.0
v7.20.0Compare Source
What's Changed
New Contributors
Full Changelog: nodejs/undici@v7.19.2...v7.20.0
v7.19.2Compare Source
What's Changed
New Contributors
Full Changelog: nodejs/undici@v7.19.1...v7.19.2
v7.19.1Compare Source
What's Changed
New Contributors
Full Changelog: nodejs/undici@v7.19.0...v7.19.1
v7.19.0Compare Source
What's Changed
New Contributors
Full Changelog: nodejs/undici@v7.18.2...v7.19.0
v7.18.2Compare Source
What's Changed
Full Changelog: nodejs/undici@v7.18.1...v7.18.2
v7.18.1Compare Source
What's Changed
Full Changelog: nodejs/undici@v7.18.0...v7.18.1
v7.18.0Compare Source
What's Changed
Full Changelog: nodejs/undici@v7.17.0...v7.18.0
v7.17.0Compare Source
What's Changed
'node:'prefix for requiring node built-ins by @Uzlopak in #4547statusinResponse.redirectby @gineika in #4591304 not modifiedreply upon revalidation did not update cache. by @daan944 in #4617New Contributors
Full Changelog: nodejs/undici@v7.16.0...v7.17.0
v7.16.0Compare Source
What's Changed
[kClose]and[kDestroy], only return Promise by @Uzlopak in #4450client.connect()sync by @Uzlopak in #4455BodyReadable.dumpby @Uzlopak in #4459[]instead of new Array(0) by @Uzlopak in #4435New Contributors
Full Changelog: nodejs/undici@v7.15.0...v7.16.0
v7.15.0Compare Source
What's Changed
New Contributors
Full Changelog: nodejs/undici@v7.14.0...v7.15.0
v7.14.0Compare Source
What's Changed
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.