@hapi/content: quadratic-time parsing of Content-Disposition parameters allows denial of service
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| hapijs | content | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Hapijs | Content |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-8494-f6mr-cjpv | @hapi/content: quadratic-time parsing of Content-Disposition parameters allows denial of service |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.411% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Hapijs
Hapijs content |
|
| Vendors & Products |
Hapijs
Hapijs content |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | @hapi/content: quadratic-time parsing of Content-Disposition parameters allows denial of service | |
| Weaknesses | CWE-1333 | |
| References |
| |
| Metrics |
cvssV3_1
|