VDB
Sign up
HIGH7.5

GHSA-662x-fhqg-9p8v

Regular Expression Denial of Service in ua-parser-js

Quick fix

GHSA-662x-fhqg-9p8v — ua-parser-js: upgrade to the fixed version with the command below.

npm install ua-parser-js@0.7.22

Details

The package ua-parser-js before 0.7.22 are vulnerable to Regular Expression Denial of Service (ReDoS) via the regex for Redmi Phones and Mi Pad Tablets UA.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/ua-parser-js
Introduced in: 0Fixed in: 0.7.22
Fixnpm install ua-parser-js@0.7.22

References