Vulnerability
CVE-2026-119202
@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.
23 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-252r-7gfh-jxrr
- CGA-2jr5-cg9m-3jgm
- CGA-4c4f-5r4p-44q6
- CGA-598v-g5vr-m929
- CGA-64hg-8569-rwhp
- CGA-65cf-86g5-gjgj
- CGA-6v46-76w7-m9hq
- CGA-7p2q-9fc9-6j9m
- CGA-9g7x-79v5-29wm
- CGA-9q4q-6qpg-23pr
- CGA-f7c9-g2r5-3whv
- CGA-hjjj-49w8-7vmp
- CGA-j685-rc8g-36x7
- CGA-m44w-6g79-q5hv
- CGA-mjpq-r99h-5hgr
- CGA-pjhj-mv55-ch9g
- CGA-q6vf-xm26-76vc
- CGA-rrxm-pmgw-qvj2
- CGA-vh23-wfq5-cgfv
- CGA-x84v-7c9g-jvwr
- CGA-x8f6-5qh9-hx9h
- CGA-xr4v-5x7q-5r9p
-
GHSA-8494-f6mr-cjpv
@hapi/content: quadratic-time parsing of Content-Disposition parameters allows denial of service