{"id":"CVE-2026-109869","aliases":["CVE-2026-109869","GHSA-xjj6-f33q-929c"],"related":[],"kind":"vulnerability","state":"published","title":"undici vulnerable to Denial of Service via unhandled error on excessive content-encodings","summary":"undici is an HTTP client library for Node.js. In versions 6.23.0 through 6.29.0, 7.18.0 through 7.30.0, and 8.0.0 through 8.12.1, its fetch() implementation crashes the Node.js process when a malicious server returns a response with more than five content codings and closes the connection before sending the body. undici rejects such responses because of a content-encoding limit, but it created the internal response stream before that check and returned without attaching an error listener or aborting the request, so the early close surfaces a content-length mismatch on the orphaned stream, which Node.js treats as an unhandled error and terminates the process. A remote, unauthenticated server can trigger this with a single response, even when the application correctly catches the fetch() rejection, resulting in a denial of service. The issue is fixed in undici 6.29.1, 7.30.1, and 8.12.2, and users should upgrade to one of those versions or later. There is no workaround.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"undici is an HTTP client library for Node.js. In versions 6.23.0 through 6.29.0, 7.18.0 through 7.30.0, and 8.0.0 through 8.12.1, its fetch() implementation crashes the Node.js process when a malicious server returns a response with more than five content codings and closes the connection before sending the body. undici rejects such responses because of a content-encoding limit, but it created the internal response stream before that check and returned without attaching an error listener or aborting the request, so the early close surfaces a content-length mismatch on the orphaned stream, which Node.js treats as an unhandled error and terminates the process. A remote, unauthenticated server can trigger this with a single response, even when the application correctly catches the fetch() rejection, resulting in a denial of service. The issue is fixed in undici 6.29.1, 7.30.1, and 8.12.2, and users should upgrade to one of those versions or later. There is no workaround.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nundici's `fetch()` crashes the Node.js process when a malicious server returns a response with more than five content codings and closes the connection before sending the body. undici rejects such responses (a content-encoding limit), but it created the internal response stream before that check and returned without attaching an error listener or aborting the request. The early close then surfaces a content-length mismatch on that orphaned internal stream, which Node.js treats as an unhandled `error` and terminates the process. A remote, unauthenticated server can trigger this with a single response, even when the application correctly catches the `fetch()` rejection. undici 6.x, 7.x, and 8.x are affected.\n\n### Patches\n\nUpgrade to `6.29.1`, `7.30.1`, or `8.12.2`. undici now validates the content-encoding chain before creating the internal body stream and aborts the response when the limit is exceeded, so no error can surface on an orphaned stream.\n\n### Workarounds\n\nNone.","format":"markdown","source":"ghsa"}],"published":"2026-10-15T18:08:31.243Z","modified":"2026-10-23T22:30:05.007Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-248","CWE-459"],"affected":[{"ranges":[{"type":"semver","introduced":"6.23.0","fixed":"6.29.1","status":"affected"},{"type":"semver","version":"6.29.1","status":"unaffected"},{"type":"semver","introduced":"7.18.0","fixed":"7.30.1","status":"affected"},{"type":"semver","version":"7.30.1","status":"unaffected"},{"type":"semver","introduced":"8.0.0","fixed":"8.12.2","status":"affected"},{"type":"semver","version":"8.12.2","status":"unaffected"}],"vendor":"undici","product":"undici","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.23.0","status":"affected","fixed":"6.29.1"}],"ecosystem":"npm","package":"undici","purl":"pkg:npm/undici","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"7.18.0","status":"affected","fixed":"7.30.1"}],"ecosystem":"npm","package":"undici","purl":"pkg:npm/undici","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.12.2"}],"ecosystem":"npm","package":"undici","purl":"pkg:npm/undici","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"6.23.0","fixed":"6.29.1"},{"status":"affected","introduced":"7.18.0","fixed":"7.30.1"},{"status":"affected","introduced":"8.0.0","fixed":"8.12.2"}],"vendor":"nodejs","product":"undici","cpe":"cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-xjj6-f33q-929c","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-109869","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/commit/07ded4941b1e72afec862958c3b8ddf468f3b429","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/commit/1325a87dfb3492f8e87e6b0a84b3bda4e82e3436","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/commit/b5084c7dc239172d75c336b1cd51ddac023938a5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/releases/tag/v6.29.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/releases/tag/v7.30.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/releases/tag/v8.12.2","tags":["web"],"sources":["ghsa"]}],"credits":["hanityx","mcollina","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-16T20:05:44.033Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-109869","url":"https://www.cve.org/CVERecord?id=CVE-2026-109869","licence":"CVE Terms of Use","modified":"2026-10-16T20:06:00.782Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xjj6-f33q-929c","url":"https://github.com/advisories/GHSA-xjj6-f33q-929c","licence":"CC-BY-4.0","modified":"2026-10-23T22:30:05.007Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-109869","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-109869","licence":"Public domain","modified":"2026-10-19T20:45:20.340Z"}],"updatedAt":"2026-11-25T22:59:44.924Z","epss":{"score":0.0042,"percentile":0.38261,"date":"2026-12-01T12:00:22.000Z"}}