# ua-parser-js (npm)

Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment

- Latest: 2.0.10 (2026-05-21)
- Licence: AGPL-3.0-or-later
- Downloads: 201988469 last month
- Advisories on the latest version: 0

- CVE-2026-48125 MODERATE: UAParser.js: Unbounded `Sec-CH-UA-Model` parsing can trigger ReDoS in `withClientHints()` Fixed in 2.0.10.
- CVE-2022-25927 HIGH: ReDoS Vulnerability in ua-parser-js version Fixed in 0.7.33, 1.0.33.
- CVE-2020-7793 HIGH: ua-parser-js Regular Expression Denial of Service vulnerability Fixed in 0.7.23.
- CVE-2021-4229 HIGH: Embedded malware in ua-parser-js Fixed in 0.7.30, 0.8.1, 1.0.1.
- CVE-2020-7733 HIGH: Regular Expression Denial of Service in ua-parser-js Fixed in 0.7.22.
- CVE-2021-27292 HIGH: Regular Expression Denial of Service (ReDoS) in ua-parser-js Fixed in 0.7.24.

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