undici vulnerable to Denial of Service via orphaned RetryHandler response body
### Impact undici's `RetryHandler` can leave a response body pending indefinitely. When a retried request receives a non-retryable response after a truncated one, the original `response.body` held by the application is never settled, so reads such as `response.body.text()` hang and `bodyTimeout` does not fire. A malicious server can repeat this to accumulate pending promises and streams, leading to denial of service. ### Patches Patched in undici v7.29.1 and v8.10.2. ### Workarounds Impose an independent request deadline and destroy the response body when it expires. `bodyTimeout` alone does not prevent this.
GHSA-pmjh-fq2x-6v4x
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-pmjh-fq2x-6v4x
undici
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 7.29.1
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
undici
Source reference: /affected/1/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 8.10.2
Source reference:
/affected/1/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "7.11.0"
},
{
"fixed": "7.29.1"
}
]
}
],
"package": {
"name": "undici",
"purl": "pkg:npm/undici",
"ecosystem": "npm"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-pmjh-fq2x-6v4x/GHSA-pmjh-fq2x-6v4x.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "8.0.0"
},
{
"fixed": "8.10.2"
}
]
}
],
"package": {
"name": "undici",
"purl": "pkg:npm/undici",
"ecosystem": "npm"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-pmjh-fq2x-6v4x/GHSA-pmjh-fq2x-6v4x.json"
}
}
]- Related CVEs
- CVE-2026-18149
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #31153 · Revision 1
- Added to Heist Feed
- Publisher date