GitHub Advisoryadvisory · npm
GHSA-4rgj-8mq3-hggj Denial of Service in @hapi/subtext
HIGH
Official page ↗
- Ecosystem
- npm
- Packages
- @hapi/subtext
- Severity
- High
- Weaknesses
- CWE-400
- Reviewed
- 2020-08-31
Affected packages
• npm @hapi/subtext: < 6.1.2 → fixed in 6.1.2
Description
Versions of `@hapi/subtext` prior to 6.1.2 are vulnerable to Denial of Service (DoS). The package fails 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, which may exhaust system resources leading to Denial of Service.
Recommendation
Upgrade to version 6.1.2 or later.
Related
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness