Vulnerability · Published Oct 29, 2026 · Assigned by GitHub_M

CVE-2026-119202@hapi/content: quadratic-time parsing of Content-Disposition parameters allows denial of service

High 7.5

In plain English

A high-severity regular-expression denial of service in content from hapijs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.4%top 64.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@hapi/content6.0.3GHSA-8494-f6mr-cjpv
npmcontentno fix listedGHSA-8494-f6mr-cjpv

Affected products (as reported)

VendorProductVersions
hapijs content < 6.0.3

Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References