Denial of Service in @hapi/subtext
Summary
GHSA-4rgj-8mq3-hggj: Denial of Service in @hapi/subtext. Affects @hapi/subtext versions < 6.1.2. Fixed in 6.1.2. 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/subtext package is a part of the Hapi framework ecosystem for Node.js. It provides functionality for parsing and handling HTTP payloads. This package is commonly used in web applications to process incoming requests. However, versions prior to 6.1.2 are vulnerable to a Denial of Service (DoS) attack.
Vulnerability Detail
The vulnerability in @hapi/subtext arises from a failure to enforce the 'maxBytes' configuration for payloads with chunked encoding that are written to the file system. This allows attackers to send requests with arbitrary payload sizes, potentially leading to the exhaustion of system resources and causing a Denial of Service. The impact of this vulnerability can be severe, as it can disrupt the availability of the affected application.
How To Fix
Latest published version: 8.1.4 as of 23 Oct 2026
npm install @hapi/subtext@8.1.4
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
6.1.2
This is the first release that contains the fix.
npm install @hapi/subtext@6.1.2
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. The recommended solution is to upgrade to the fixed version of the package.
Conclusion
The @hapi/subtext package prior to version 6.1.2 is vulnerable to a Denial of Service attack. To mitigate this vulnerability, it is crucial to upgrade to version 6.1.2 or later. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for @hapi/subtext →
FAQ
@hapi/subtext is a package in the Hapi framework ecosystem for Node.js. It provides functionality for parsing and handling HTTP payloads.
A Denial of Service attack is a type of cyber attack where an attacker overwhelms a system or network with a high volume of requests or malicious traffic, causing it to become unavailable or unresponsive to legitimate users.
This vulnerability can lead to a Denial of Service, causing the affected application to become unresponsive or unavailable to legitimate users.
To fix this vulnerability, it is recommended to upgrade to version 6.1.2 or later of the @hapi/subtext package.
No specific workaround is mentioned for this vulnerability. The recommended solution is to upgrade to the fixed version of the package.
References
Related vulnerabilities
Recent vulnerabilities recorded for @hapi/subtext.