Install
ua-parser-js
Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment
2.0.10Latest, 21 May 2026
202MDownloads, last month
0Advisories on the latest
6Advisories, all versions
AGPL-3.0-or-laterLicence
1KStars
8.5/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Moderate | UAParser.js: Unbounded `Sec-CH-UA-Model` parsing can trigger ReDoS in `withClientHints()` CVE-2026-48125 | Fixed in 2.0.10 | 15 Jun 2026 |
| High | ReDoS Vulnerability in ua-parser-js version CVE-2022-25927 | Fixed in 0.7.33, 1.0.33 | 24 Jan 2023 |
| High | ua-parser-js Regular Expression Denial of Service vulnerability CVE-2020-7793 | Fixed in 0.7.23 | 9 Feb 2022 |
| High | Embedded malware in ua-parser-js CVE-2021-4229 | Fixed in 0.7.30, 0.8.1, 1.0.1 | 22 Oct 2021 |
| High | Regular Expression Denial of Service in ua-parser-js CVE-2020-7733 | Fixed in 0.7.22 | 7 May 2021 |
| High | Regular Expression Denial of Service (ReDoS) in ua-parser-js CVE-2021-27292 | Fixed in 0.7.24 | 6 May 2021 |
In the news
- ua-parser-js License Change and What It Means for Developers dev.to, 6 Jan 2025
On Hacker News
- NPM package ‘ua-parser-JS’ with more than 7M weekly download is compromised 255 points, 141 comments, 22 Oct 2021
- Compromised NPM packages of ua-parser-JS (0.7.29, 0.8.0, 1.0.0) 38 points, 6 comments, 22 Oct 2021
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.