@hapi/content is vulnerable to Inefficient Regular Expression Complexity
87
CVE Score
High
Inefficient Regular Expression Complexity
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.
Upgrade the @hapi/content package to version 6.0.3 or later.
You are affected if you are using a version that falls within the vulnerable range and parse Content-Disposition header values from untrusted requests.
6.0.1 - 6.0.2
Fixed in 6.0.3@hapi/content is vulnerable to Inefficient Regular Expression Complexity in versions 6.0.1 - 6.0.2.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.