Intel

AIKIDO-2026-736034

@hapi/content is vulnerable to Inefficient Regular Expression Complexity

CVE-2026-115728Published 3 days ago
November 4, 2026

87

CVE Score

High

Inefficient Regular Expression Complexity

Are you affected? Scan for Free

TL;DR

exports.disposition parsed untrusted input, a Content-Disposition header value, with a global regular expression whose alternatives all require an equals sign. A long multipart parameter name lacking an equals sign makes the global scan restart at every character, and quadratic backtracking blocks the Node.js event loop. No check rejects or limits such input before parsing. The fix adds a trailing regex alternative that consumes an equals-less parameter so the scan cannot restart inside it.

How do I fix this?

Upgrade the @hapi/content package to version 6.0.3 or later.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and parse Content-Disposition header values from untrusted requests.

Versions

6.0.1 - 6.0.2

Fixed in 6.0.3

Background info

@hapi/content is vulnerable to Inefficient Regular Expression Complexity in versions 6.0.1 - 6.0.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea