---
id: "CVE-2026-119202"
kind: "vulnerability"
aliases: ["CVE-2026-119202"]
title: "@hapi/content: crafted Content-Disposition header can block Node.js event loop"
severity: "high"
cvss: 7.5
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["hapi", "multipart-uploads", "node.js", "npm", "package"]
not_affected_if: ["no-multipart-parsing", "versions-outside-range"]
published_at: "2026-10-29T21:17:19+00:00"
first_seen_at: "2026-10-29T21:26:51+00:00"
updated_at: "2026-10-29T21:28:34+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-119202", "first_seen_at": "2026-10-29T21:26:51+00:00"}]
---

# @hapi/content: crafted Content-Disposition header can block Node.js event loop

A crafted Content-Disposition header with a long token and no equals sign makes @hapi/content's parser run in quadratic time. The Node.js event loop stalls, so the server stops answering other requests.

_Summary, check and fix written by a model from the sources; labelled as such._

## Fix

- @hapi/content: upgrade to `6.0.3`

## Timeline

- 2026-10-29T21:26:51+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-119202

## From the sources

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

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
