Regular Expression Denial of Service (ReDoS) in @hapi/content HTTP header parsing
hapijs content
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @hapi/content npm |
|
|
Original description
@hapi/content provided HTTP Content-* headers parsing. All versions of @hapi/content through 6.0.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via crafted HTTP header values. Three regular expressions used to parse Content-Type and Content-Disposition headers contain patterns susceptible to catastrophic backtracking. This vulnerability is fixed in 6.0.1.
From the CVE record · GitHub_M