CVE-2024-24750: Backpressure request ignored in fetch() in Undici

Published Feb 16, 2024
·
Updated

Impact

Calling fetch(url) and not consuming the incoming body ((or consuming it very slowing) will lead to a memory leak.

Patches

Patched in v6.6.1

Workarounds

Make sure to always consume the incoming body.

Other sources

Undici is an HTTP/1.1 client, written from scratch for Node.js. In affected versions calling fetch(url) and not consuming the incoming body ((or consuming it very slowing) will lead to a memory leak. This issue has been addressed in version 6.6.1. Users are advised to upgrade. Users unable to upgrade should make sure to always consume the incoming body.

MITRE

Affected Software

2 affected componentsFixes available
npm/undici>=6.0.0<=6.6.0
6.6.1
Nodejs Undici Node.js>=6.0.0<6.6.1

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.6.1
  2. Upgrade

    Upgrade undici to a version that resolves this vulnerability.

    Fixed in 6.6.1
  3. Configuration

    When calling fetch(url), ensure the incoming response body is fully consumed (do not ignore it and do not consume it very slowly), to prevent the memory leak in affected versions.

    Node.js Undici (fetch) Consume incoming response body = Always consume

Event History

Feb 16, 2024
Advisory Published
via GitHub·03:59 PM
CVE Published
via MITRE·09:42 PM
Data Sourced
via MITRE·09:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-24750?

CVE-2024-24750 is categorized as a medium severity vulnerability due to its potential to cause a memory leak.

2

How do I fix CVE-2024-24750?

To fix CVE-2024-24750, upgrade to the undici package version 6.6.1 or later.

3

What is the impact of CVE-2024-24750?

The impact of CVE-2024-24750 is a memory leak when calling fetch(url) without properly consuming the incoming body.

4

Which versions of undici are affected by CVE-2024-24750?

CVE-2024-24750 affects undici versions from 6.0.0 to 6.6.0.

5

What is the recommended workaround for CVE-2024-24750?

The recommended workaround for CVE-2024-24750 is to always consume the incoming body when using the fetch function.

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