Denial of Service in @hapi/subtext

@hapi/subtext Updated 02 Oct 2025

Summary

03/09/2020
HIGH
Yes i
High
Not published

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 ↓

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 Your last release was probably never penetration tested 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/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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for @hapi/subtext.

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 →

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