Skip to content
OpenAdvisories
High · 7.5 CVE-2026-119202 EUVD-2026-113373GHSA-8494-f6mr-cjpv

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

Published Oct 29, 2026 · Updated Nov 3, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
hapijs content < 6.0.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling opensearch-dashboards-3 3.9.0-r8 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @hapi/content < 6.0.3 6.0.3 GHSA-8494-f6mr-cjpv
npm content >= 3.0.6, <= 4.0.6 — GHSA-8494-f6mr-cjpv

References