HighGHSA-662x-fhqg-9p8vCVE-2020-7733

Regular Expression Denial of Service in ua-parser-js

Published 7 May 2021 · Updated 14 Jan 2025

Affected package

Affected
<0.7.22
Fixed in
0.7.22
Update to the fixed version for your release line, for example: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.

Is GHSA-662x-fhqg-9p8v in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected ua-parser-js, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.