chore(deps): update dependency undici to v7.18.2 [security] #738
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.3.0→7.18.2GitHub 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
Release Notes
nodejs/undici (undici)
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
New Contributors
Full Changelog: nodejs/undici@v7.13.0...v7.14.0
v7.13.0Compare Source
What's Changed
New Contributors
Full Changelog: nodejs/undici@v7.12.0...v7.13.0
v7.12.0Compare Source
What's Changed
@returnseverywhere by @Uzlopak in #4302New Contributors
Full Changelog: nodejs/undici@v7.11.0...v7.12.0
v7.11.0Compare Source
What's Changed
node:-prefix by @Uzlopak in #4256fetchis wrongly typed (#4271) by @bpasero in #4272Dispatcher.RequestOptionsby @IvanDimanov-OfficeRnD in #4281cleanMockstoMockClientandMockPoolby @DemianParkhomenko in #4176Configuration
📅 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.