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

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

On Hacker News

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.