Technical impact
The vulnerability arises from quadratic processing during the parsing of the Content-Disposition header when a parameter token lacks an equals sign. This causes repeated failed regex matches, which can stall the Node.js event loop and result in denial of service for any request processing that uses @hapi/pez to handle multipart/form-data or any application that directly calls Content.disposition with untrusted headers. The weakness is documented as CWE-1333, indicating a flaw in algorithmic complexity.
Affected Systems
Affected packages include the hapi/content library, versions 3.0.6 through 6.0.3, used by the hapi framework and its dependencies. These versions are associated with the hapijs organization on GitHub, and the vulnerability is resolved in release 6.0.3. Any Node.js application that imports @hapi/content and processes HTTP Content-* headers, especially through @hapi/pez multipart handling, is impacted.
Risk and Exploitability
The CVSS score of 7.5 places this issue in the high severity range. No EPSS score is available, but because the vulnerability can be triggered by crafted HTTP requests, remote attackers could potentially invoke the denial of service. The vulnerability is not listed in the CISA KEV catalog, indicating no current known exploit drives. Attack vectors likely involve sending a malicious Content-Disposition header on a public route, which then stalls the event loop while the library attempts to parse it. The lack of a direct code execution or data exfiltration path limits the scope to availability degradation.
Github GHSA