CVE-2026-119202 @hapi/content: quadratic-time parsing of Content-Disposition parameters allows denial of service
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
Description
@hapi/content provides HTTP Content-* header parsing. From 3.0.6 until 6.0.3, Content.disposition() uses an unanchored parameter-name expression in a global regular-expression scan, causing repeated failed matching over the remaining input when a Content-Disposition parameter contains a long token without an equals sign. The resulting quadratic processing can block the Node.js event loop before route handlers or validation when @hapi/pez parses multipart/form-data headers, including unauthenticated hapi routes with payload.multipart enabled, and also affects applications that pass untrusted headers directly to Content.disposition(). This issue is fixed in @hapi/content version 6.0.3.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| hapi @hapi/content(npm) | < 6.0.3; <= 6.0.2 | 6.0.3 | Fixed |
| npm content(npm) | >= 3.0.6, <= 4.0.6 | after 4.0.6 | Fixed |
| hapijs content | = < 6.0.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| hapijs content | = < 6.0.3 | No fix listed |
| hapi @hapi/content(npm) | <= 6.0.2 | No fix listed |
| npm content(npm) | >= 3.0.6, <= 4.0.6 | No fix listed |
| hapi @hapi/content(npm) | < 6.0.3 | 6.0.3 |
References
- https://github.com/hapijs/content/security/advisories/GHSA-8494-f6mr-cjpv exploit vendor-advisory
- https://github.com/hapijs/content/commit/0993851dc7234976a3fce3a7c31662b213c940fd patch
- https://github.com/hapijs/content/releases/tag/v6.0.3
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-113373 third-party-advisory