logo

GHSA-3wqh-h42r-x8fq @hapi/subtext

Package

Manager: npm
Name: @hapi/subtext
Vulnerable Version: >=6.1.0 <6.1.3 || >=7.0.0 <7.0.3

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P/RL:U/RC:R

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

EPSS: N/A pctlN/A

Details

Denial of Service in @hapi/subtext Versions of `@hapi/subtext` prior to 6.1.3 or 7.0.3 are vulnerable to Denial of Service. The Content-Encoding HTTP header parser has a vulnerability which will cause the function to throw a system error if the header contains some invalid values. Because hapi rethrows system errors (as opposed to catching expected application errors), the error is thrown all the way up the stack. If no unhandled exception handler is available, the application will exist, allowing an attacker to shut down services. ## Recommendation Upgrade to version 6.1.3 or 7.0.3

Metadata

Created: 2020-09-03T15:46:22Z
Modified: 2025-07-21T13:06:11Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-3wqh-h42r-x8fq/GHSA-3wqh-h42r-x8fq.json
CWE IDs: []
Alternative ID: N/A
Finding: F002
Auto approve: 1