VDB
Sign up
HIGH7.5

GHSA-78cj-fxph-m83p

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

Quick fix

GHSA-78cj-fxph-m83p — ua-parser-js: upgrade to the fixed version with the command below.

npm install ua-parser-js@0.7.24

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.14Fixed in: 0.7.24
Fixnpm install ua-parser-js@0.7.24

References