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
ua-parser-jsnpm
- 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.23Details
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
- Advisorynvd.nist.gov/vuln/detail/CVE-2020-7793
- Linkgithub.com/faisalman/ua-parser-js/commit/6d1f26df051ba681463ef109d36c9cf0f7e32b18
- Linkcert-portal.siemens.com/productcert/pdf/ssa-637483.pdf
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBFAISALMAN-1050388
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1050387
- Linksnyk.io/vuln/SNYK-JS-UAPARSERJS-1023599
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.