faisalman/ua-parser-js

faisalman/ua-parser-js

Releases124
Frequency1 month 1 week
Last Release
Stars10.2K
UAParser.js - The Essential Web Development Tool for User-Agent Detection. Detect Browsers, OS, Devices, Bots, Apps, AI Crawlers, and more. Run in Browser (client-side) or Node.js (server-side).

CVE History

CVEAffectedPublishedCVSS v3CVSS v2
>= 2.0.1, < 2.0.105.3 MEDIUM

UAParser.js is a JavaScript library to detect browsers, operating systems, CPUs, and devices from user-agent data. From 2.0.1 until 2.0.10, a regular expression denial-of-service vulnerability exists when using the Client Hints API. By sending a crafted Sec-CH-UA-Model header to an application that calls UAParser(headers).withClientHints(), an attacker can cause excessive CPU time due to catastrophic backtracking in the device regex because Client Hints values are copied without the UA_MAX_LENGTH limit used for User-Agent values. This issue is fixed in version 2.0.10.

>= 0.8.1, < 1.0.33, >= 0.7.30, < 0.7.33, >= 0.8.0, < 1.0.335.3 MEDIUM

Versions of the package ua-parser-js from 0.7.30 and before 0.7.33, from 0.8.1 and before 1.0.33 are vulnerable to Regular Expression Denial of Service (ReDoS) via the trim() function.

= 1.0.0, = 0.8.0, = 0.7.29, >= 0.7.29, < 0.7.30, >= 0.8.0, < 0.8.1, >= 1.0.0, < 1.0.15 MEDIUM7.6 HIGH

A vulnerability was found in ua-parser-js 0.7.29/0.8.0/1.0.0. It has been rated as critical. This issue affects the crypto mining component which introduces a backdoor. Upgrading to version 0.7.30, 0.8.1 and 1.0.1 is able to address this issue. It is recommended to upgrade the affected component.

>= 0.7.14, < 0.7.247.5 HIGH5 MEDIUM

ua-parser-js >= 0.7.14, fixed in 0.7.24, uses a regular expression which is vulnerable to denial of service. If an attacker sends a malicious User-Agent header, ua-parser-js will get stuck processing it for an extended period of time.

< 0.7.237.5 HIGH5 MEDIUM

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).

< 0.7.227.5 HIGH5 MEDIUM

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.