Description
The Headers.set() and Headers.append() methods are vulnerable to Regular Expression Denial of Service (ReDoS) attacks when untrusted values are passed into the functions. This is due to the inefficient regular expression used to normalize the values in the headerValueNormalize() utility function.
Recommendation
Update the undici package to the latest compatible version. Followings are version details:
- Affected version(s): < 5.19.1
- Patched version(s): 5.19.1
References
Related Issues
- angular vulnerable to regular expression denial of service via the <input type="url"> element - CVE-2023-26118
- angular vulnerable to regular expression denial of service via the angular.copy() utility - CVE-2023-26116
- angular vulnerable to regular expression denial of service via the $resource service - CVE-2023-26117
- MathJax Regular expression Denial of Service (ReDoS) - CVE-2023-39663
- Tags:
- npm
- undici
Anything's wrong? Let us know Last updated on February 16, 2023