1. Home
  2. Vulnerabilities
  3. CVE-2026-119202

CVE-2026-119202

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

Published 29 Oct 2026 · modified 3 Nov 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Medium 50/100

Summary

@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 products and versions

Hapijs (1 line(s))
Hapijs
ProductVersionsFixed inSource
content Versions not specified — CNA (vendor or assigner)
npm (2 line(s))
npm
ProductVersionsFixed inSource
@hapi/content before 6.0.3 (excluded) 6.0.3 GitHub Advisory
content from 3.0.6 (included) to 4.0.6 (included) — GitHub Advisory

Fix

Upgrade — npm/@hapi/content 6.0.3official source

Source : GitHub Advisory

Workaround

No workaround provided.

Check whether you are affected

Exploit reported by sources

These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.

Timeline

  1. — CVE published (cve)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, CNA:GitHub_M)
Weakness
CWE-1333 · Autre (CWE-1333)

How this data is obtained and calculated