{"id":"GHSA-g9mf-h72j-4rw9","revision":"f3f28247a3394201af50d905f5e60899","records":[{"revision":"f3f28247a3394201af50d905f5e60899","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-g9mf-h72j-4rw9","aliases":["CVE-2026-22036"],"title":"Undici has an unbounded decompression chain in HTTP responses on Node.js Fetch API via Content-Encoding leads to resource exhaustion","description":"### Impact\n\nThe `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.\n\nHowever, 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.\n\n### Patches\n\nUpgrade to 7.18.2 or 6.23.0.\n\n### Workarounds\n\nIt is possible to apply an undici interceptor and filter long `Content-Encoding` sequences manually.\n\n### References\n\n* https://hackerone.com/reports/3456148\n* https://github.com/advisories/GHSA-gm62-xv2j-4w53\n* https://curl.se/docs/CVE-2022-32206.html","state":0,"publishedAt":"2026-01-14T21:06:08+00:00","modifiedAt":"2026-09-10T03:50:33.2169155+00:00","affected":[{"ecosystem":"npm","name":"undici","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"7.0.0"},{"kind":"fixed","version":"7.18.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"undici","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"6.23.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/nodejs/undici/security/advisories/GHSA-g9mf-h72j-4rw9","https://nvd.nist.gov/vuln/detail/CVE-2026-22036","https://github.com/nodejs/undici/commit/b04e3cbb569c1596f86c108e9b52c79d8475dcb3","https://github.com/nodejs/undici"],"sourceUrl":"https://github.com/advisories/GHSA-g9mf-h72j-4rw9","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-g9mf-h72j-4rw9","identifiers":["GHSA-g9mf-h72j-4rw9","CVE-2026-22036"]},"retained":false,"historicalAffected":[]}],"coverage":[]}