CVE-2015-9241: Denial of Service in hapi

hapi Updated 02 Oct 2025

Summary

07/06/2018
Yes i
High
Not published

CVE-2015-9241: Denial of Service in hapi. Affects hapi versions < 11.1.3. Fixed in 11.1.3. 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

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for hapi.

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 →

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