VDB
KO
HIGH 7.5

GHSA-78cj-fxph-m83p

Regular Expression Denial of Service (ReDoS) in ua-parser-js

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / ua-parser-js
Introduced in: 0.7.14 Fixed in: 0.7.24
Fix npm install ua-parser-js@0.7.24

References