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
ua-parser-jsnpm
- 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.22Details
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
- Advisorynvd.nist.gov/vuln/detail/CVE-2020-7733
- Linkgithub.com/faisalman/ua-parser-js/commit/233d3bae22a795153a7e6638887ce159c63e557d
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBFAISALMAN-674666
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-674665
- Linksnyk.io/vuln/SNYK-JS-UAPARSERJS-610226
- Linkwww.oracle.com//security-alerts/cpujul2021.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.