Memory Leak Vulnerability in Node.js HTTP Client Undici

node-undici Updated 02 Oct 2025

Summary

15/05/2025
N/A
No i
Unrated
Not published

CVE-2025-47279: Undici is an HTTP/1.1 client for Node.js. Affects node-undici versions 5.15.0+dfsg1+~cs20.10.9.3-1 – 7.3.0+dfsg1+~cs24.12.11-2. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Undici is an HTTP/1.1 client designed for Node.js, known for its performance and efficiency in handling HTTP requests. It is widely used in applications that require reliable and fast network communication. However, prior to versions 5.29.0, 6.21.2, and 7.5.0, Undici had a critical vulnerability that could lead to memory leaks when improperly handling webhook calls.

Vulnerability Detail

The vulnerability arises when applications using Undici implement a webhook-like system. If an attacker sets up a server with an invalid SSL certificate and forces the application to repeatedly call the webhook, it can result in a memory leak. This issue can degrade application performance and potentially lead to service outages, as the memory consumption increases without being released.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid calling a webhook repeatedly if the webhook fails. Implement logic to limit the number of retries or to back off after a failure to prevent memory leaks.

Conclusion

The memory leak vulnerability in the Undici HTTP client for Node.js poses a significant risk for applications using webhook systems. It is crucial to update to the latest patched versions to ensure application stability and performance. Implementing workarounds can help mitigate risks until updates are applied.

See every vulnerability recorded for node-undici →

Share this vulnerability

FAQ

The memory leak can lead to increased memory consumption, which may degrade application performance and cause service outages.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

The patched versions of Undici are 5.29.0, 6.21.2, and 7.5.0.

If you cannot update immediately, implement a workaround by avoiding repeated calls to failing webhooks to mitigate the risk of memory leaks.

Yes, Vulert can automate vulnerability checks by monitoring your manifest files like package-lock.json for any open-source vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for node-undici.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback