CVE-2014-3742: File Descriptor Leak Can Cause DoS Vulnerability in hapi
Summary
CVE-2014-3742: File Descriptor Leak Can Cause DoS Vulnerability in hapi. Affects hapi versions >= 2.0.0, < 2.2.0. Fixed in 2.2.0. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
hapi is an open-source framework for building applications and services in Node.js. It provides a robust set of features for creating web servers, APIs, and other networked applications. However, versions 2.0.x and 2.1.x of hapi are vulnerable to a denial of service (DoS) attack due to a file descriptor leak. This vulnerability can be exploited to exhaust the server's file descriptors, leading to the termination of the node process. The severity of the attack depends on the process file descriptor limit.
Vulnerability Detail
The vulnerability in hapi arises from a file descriptor leak that occurs when certain conditions are met. By repeatedly triggering this leak, an attacker can cause the server to run out of file descriptors, resulting in the node process crashing. The impact of this vulnerability is a denial of service, rendering the affected server unavailable. It is important to note that no other side effects or exploits have been identified.
How To Fix
Latest published version: 18.1.0 as of 22 Oct 2026
npm install hapi@18.1.0
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.2.0
This is the first release that contains the fix.
npm install hapi@2.2.0
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The file descriptor leak vulnerability in hapi can lead to a denial of service attack by exhausting the server's file descriptors. To mitigate this risk, it is crucial to upgrade to version 2.2.x or above of hapi. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for hapi →
FAQ
hapi is an open-source framework for building applications and services in Node.js. It provides a robust set of features for creating web servers, APIs, and other networked applications.
Versions 2.0.x and 2.1.x of hapi are vulnerable to this file descriptor leak vulnerability.
The vulnerability can be exploited to launch a denial of service (DoS) attack, causing the affected server to become unavailable.
No other side effects or exploits have been identified for this vulnerability.
To fix this vulnerability, it is recommended to upgrade to version 2.2.x or above of hapi.
Related vulnerabilities
Recent vulnerabilities recorded for hapi.