Vulnerability in undici
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-18149 has been found in undici.
Attackers can target a specific entry point like RetryHandler over the network to misuse the product.
Risk of unauthorized operations or information disclosure. CVSS score: 5.9/10.
What to do: upgrade undici to 8.10.2 or later.
If unsure, ask your IT team or search "undici CVE-2026-18149" on the vendor's site.
CVE-2026-18149 (undici) — CWE-772 / CVSS v3 5.9
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: RetryHandler / response.body / bodyTimeout
Patched: 8.10.2 — apply immediately
Workaround: Impose an independent request deadline and destroy the response body when it expires.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-772) exists in undici. Attackers reach the vulnerable code path via RetryHandler without authentication.
Check the vendor advisory for the affected versions of undici. Attack surface: RetryHandler / response.body / bodyTimeout.
Severity: Medium (CVSS 5.9/10). Risk of unauthorized operations or information disclosure.
Update to 8.10.2.
Workaround: Impose an independent request deadline and destroy the response body when it expires.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'undici' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'undici' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
undiciを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply temporary workaroundmitigate
Impose an independent request deadline and destroy the response body when it expires.パッチが適用されるまでの応急処置として、Impose an independent request deadline and destroy the response body when it expires. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3
Apply patchpatch
Upgrade undici to 8.10.2ステージング環境で 8.10.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmundici |
< 8.10.2→ 8.10.2 |
8.10.2 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-18149 node-undici Fix available
- Ubuntu UBUNTU-CVE-2026-18149 node-undici No fixed version in this record
Original description The description as published by the source.
undici's retry handler can leave an already-exposed response body pending forever. When a server returns a successful response that declares a Content-Length, sends only part of the body, and closes the connection, the retry handler retries the request. If the retry returns a non-retryable status such as 400, the handler forwards that new response downstream and replaces its internal response stream, but the original response body that the application still holds is never ended or destroyed. As a result calls that read that body never settle, and the configured body timeout does not fire because its timer is tied to the connection parser rather than the orphaned body. An attacker-controlled server can trigger this with two short responses without keeping a connection open, and repeated requests accumulate pending promises and streams that can exhaust application concurrency or memory. This affects undici versions from 7.11.0 up to 7.29.1 and from 8.0.0 up to 8.10.2. Users should upgrade to undici 7.29.1 or 8.10.2.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory cna.openjsf.org
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- web github.com
- web github.com
- web hackerone.com
- web github.com
- web github.com
- web github.com