Description
@hapi/content from 6.0.1 before 6.0.3 contains a regular expression denial of service vulnerability in Content.disposition() caused by an incomplete fix for CVE-2026-35213. Unauthenticated remote attackers can send multipart uploads with a long Content-Disposition parameter lacking an equals sign, triggering quadratic backtracking that blocks the event loop.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| hapijs | @hapi/content | 6.0.1 – < 6.0.3 | 6.0.3 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | @hapi/content | < 6.0.1 | 6.0.1 | GHSA-jg4p-7fhp-p32p |
References
- https://github.com/hapijs/content/pull/42 issue-tracking patch
- https://github.com/hapijs/content/commit/0993851dc7234976a3fce3a7c31662b213c940fd patch
- https://github.com/hapijs/content/tree/v6.0.3 release-notes
- https://github.com/hapijs/content/blob/v6.0.2/lib/index.js#L96 technical-description
- GitHub Security Advisory (GHSA-jg4p-7fhp-p32p) related vendor-advisory
- VulnCheck Advisory: @hapi/content 6.0.1 before 6.0.3 ReDoS via Content.disposition() Parameter Parsing third-party-advisory