HighGHSA-394c-5j6w-4xmxCVE-2020-7793

ua-parser-js Regular Expression Denial of Service vulnerability

Published 9 Feb 2022 · Updated 14 Jan 2025

Affected package

Affected
<0.7.23
Fixed in
0.7.23
Update to the fixed version for your release line, for example:npm install ua-parser-js@0.7.23

Details

The package ua-parser-js before 0.7.23 are vulnerable to Regular Expression Denial of Service (ReDoS) in multiple regexes (see linked commit for more info).

Is GHSA-394c-5j6w-4xmx 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.