CVE-2015-9241: Denial of Service in hapi
Summary
CVE-2015-9241: Denial of Service in hapi. Affects hapi versions < 11.1.3. Fixed in 11.1.3. 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
The hapi package is a rich framework for building applications and services in Node.js. It provides a robust set of features for handling HTTP requests, routing, and other server-side functionalities. However, versions prior to 11.1.3 are vulnerable to a denial of service attack.
Vulnerability Detail
The vulnerability in hapi is triggered when specific input is passed into the If-Modified-Since or Last-Modified headers. This leads to an 'illegal access' exception, causing hapi to hold the socket open until timed out instead of sending an HTTP 500 error back to the sender. The default node timeout is 2 minutes. This vulnerability can be exploited to exhaust server resources and potentially disrupt the availability of the affected application.
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
11.1.3
This is the first release that contains the fix.
npm install hapi@11.1.3
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. Updating to the fixed version is the recommended solution.
Conclusion
The hapi package prior to version 11.1.3 is vulnerable to a denial of service attack. It is crucial to update to the fixed version to mitigate the risk of resource exhaustion and ensure the availability of the application. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for hapi →
FAQ
hapi is a powerful framework for building applications and services in Node.js. It provides a wide range of features for handling HTTP requests, routing, and server-side functionalities.
The vulnerability can be exploited to launch denial of service attacks, potentially causing server resource exhaustion and disrupting the availability of the affected application.
To fix this vulnerability, update hapi to version 11.1.3 or later. This ensures that the issue has been addressed and mitigated.
No, only versions prior to 11.1.3 are affected by this vulnerability. It is recommended to update to the fixed version to ensure security.
No specific workaround is mentioned for this vulnerability. Updating to the fixed version is the recommended solution.
References
Related vulnerabilities
Recent vulnerabilities recorded for hapi.