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

ua-parser-js Regular Expression Denial of Service vulnerability

Published 9 Feb 2022 · Updated 14 Jan 2025

Is your project on an affected ua-parser-js?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

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.

More advisories for ua-parser-js

  • MediumCVE-2026-48125UAParser.js: Unbounded `Sec-CH-UA-Model` parsing can trigger ReDoS in `withClientHints()` · 15 Jun 2026
  • HighCVE-2022-25927ReDoS Vulnerability in ua-parser-js version · 24 Jan 2023
  • HighCVE-2021-4229Embedded malware in ua-parser-js · 22 Oct 2021
  • HighCVE-2020-7733Regular Expression Denial of Service in ua-parser-js · 7 May 2021
  • HighCVE-2021-27292Regular Expression Denial of Service (ReDoS) in ua-parser-js · 6 May 2021
ua-parser-js security overview

References

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