What’s Vulnerable › Vulnerabilities

CVE-2021-27292: Regular Expression Denial of Service (ReDoS) in ua-parser-js

Description

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.

Affected products

How to fix

Upgrade to a fixed version: ua-parser-js 0.7.24; Npm Ua-Parser-Js 0.7.24. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-27292 or the next vulnerability affects your stack