Regular Expression Denial of Service (ReDoS) in ua-parser-js
High severity
GitHub Reviewed
Published
May 6, 2021
to the GitHub Advisory Database
•
Updated Feb 1, 2023
Description
Published by the National Vulnerability Database
Mar 17, 2021
Reviewed
Mar 22, 2021
Published to the GitHub Advisory Database
May 6, 2021
Last updated
Feb 1, 2023
ua-parser-js >= 0.7.14, fixed in 0.7.24, uses a regular expression which is vulnerable to denial of service. If an attacker sends a malicious User-Agent header, ua-parser-js will get stuck processing it for an extended period of time.
References