CVE-2026-22036: Undici has an unbounded decompression chain in HTTP responses on Node.js Fetch API via Content-Encoding leads to resource exhaustion

Published Jan 14, 2026
·
Updated

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-Encoding sequences manually.

References

https://hackerone.com/reports/3456148 https://github.com/advisories/GHSA-gm62-xv2j-4w53 https://curl.se/docs/CVE-2022-32206.html

Other sources

Undici is an HTTP/1.1 client for Node.js. Prior to 7.18.0 and 6.23.0, 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. This vulnerability is fixed in 7.18.0 and 6.23.0.

— MITRE

Affected Software

10 affected componentsFixes available
npm/undici<7.18.0
npm/undici<6.23.0
npm/undici<6.23.0
6.23.0
npm/undici>=7.0.0<7.18.2
7.18.2
Nodejs Undici Node.js<6.23.0
Nodejs Undici Node.js>=7.0.0<7.18.2
ubuntu/node-undici*
ubuntu/node-undici*
ubuntu/node-undici*
ubuntu/node-undici*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 6.23.0
  2. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 7.18.2
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.18.2

Event History

Jan 14, 2026
CVE Published
via MITRE·07:07 PM
Data Sourced
via MITRE·07:07 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·07:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·09:06 PM
Data Sourced
via GitHub·09:06 PM
DescriptionSeverityWeaknessAffected Software
Jan 21, 2026
Data Sourced
via NVD·02:56 PM
RemedyAffected Software
Updated
via NVD·02:56 PM
Severity
Event
via NVD·02:56 PM
Jan 22, 2026
Updated
via MITRE·08:17 PM
Severity
Updated
via NVD·09:15 PM
Severity
Jan 23, 2026
Event
via FIRST·12:00 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-22036?

CVE-2026-22036 has a high severity rating due to its potential for resource exhaustion through an unbounded decompression chain.

2

How do I fix CVE-2026-22036?

To fix CVE-2026-22036, upgrade Undici to version 7.18.0 or later, or 6.23.0 or later.

3

What causes CVE-2026-22036?

CVE-2026-22036 is caused by an unbounded decompression chain in HTTP responses resulting from the Node.js Fetch API's handling of Content-Encoding.

4

Which versions of Undici are affected by CVE-2026-22036?

Versions of Undici prior to 7.18.0 and 6.23.0 are affected by CVE-2026-22036.

5

What is the potential impact of CVE-2026-22036?

The potential impact of CVE-2026-22036 includes significant resource exhaustion leading to denial of service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203