ReDoS via long UserAgent header in ua-parser
High severity
GitHub Reviewed
Published
Jul 24, 2018
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Description
Published to the GitHub Advisory Database
Jul 24, 2018
Reviewed
Jun 16, 2020
Last updated
Jan 9, 2023
Affected versions of
ua-parser
are vulnerable to regular expression denial of service when given a specially craftedUser-Agent
header.Recommendation
No patch is currently available for this vulnerability.
The best mitigation is currently to avoid using this package, using a different, functionally equivalent package such as useragent.
References