Regular Expression Denial of Service in Headers
Description
Published by the National Vulnerability Database
Feb 16, 2023
Published to the GitHub Advisory Database
Feb 16, 2023
Reviewed
Feb 16, 2023
Last updated
Feb 16, 2023
Impact
The
Headers.set()
andHeaders.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 theheaderValueNormalize()
utility function.Patches
This vulnerability was patched in v5.19.1.
Workarounds
There is no workaround. Please update to an unaffected version.
References
Credits
Carter Snook reported this vulnerability.
References