Undici vulnerable to Regular Expression Denial of Service in Headers
CVE-2023-24807
7.5HIGH
What is CVE-2023-24807?
The Undici HTTP/1.1 client for Node.js is vulnerable to Regular Expression Denial of Service (ReDoS) attacks when untrusted input is used with the Headers.set()
and Headers.append()
methods. This vulnerability arises from the inefficiencies in the regular expression utilized in the headerValueNormalize()
utility function. The issue has been addressed in version 5.19.1 of Undici. To mitigate the risk, users are strongly advised to upgrade to this version immediately, as no workarounds are available to rectify the vulnerability without an update.
Affected Version(s)
undici < 5.19.1