ua-parser-js

Ecosystem: npm

Downloads: 149.13 Mln

Vulnerabilities from the last (months)
  • 0CriticalAffects 0 versions
  • 6HighAffects 11 versions
  • 0MediumAffects 0 versions
  • 1ModerateAffects 1 version
  • 0LowAffects 0 versions
Severity distribution (all time)
7vulnerabilities
  • Critical0 (0.0%)
  • High6 (85.7%)
  • Medium0 (0.0%)
  • Moderate1 (14.3%)
  • Low0 (0.0%)

Monthly breakdown

  • Critical
  • High
  • Medium
  • Moderate
  • Low
  • 1 vulnerabilities
    • Critical: 0
    • High: 0
    • Medium: 0
    • Moderate: 1
    • Low: 0
  • 1 vulnerabilities
    • Critical: 0
    • High: 1
    • Medium: 0
    • Moderate: 0
    • Low: 0
  • 1 vulnerabilities
    • Critical: 0
    • High: 1
    • Medium: 0
    • Moderate: 0
    • Low: 0
  • 1 vulnerabilities
    • Critical: 0
    • High: 1
    • Medium: 0
    • Moderate: 0
    • Low: 0
  • 1 vulnerabilities
    • Critical: 0
    • High: 1
    • Medium: 0
    • Moderate: 0
    • Low: 0
  • 2 vulnerabilities
    • Critical: 0
    • High: 2
    • Medium: 0
    • Moderate: 0
    • Low: 0

Vulnerabilities (7)

Known vulnerabilities affecting ua-parser-js, based on data from OSV.

Vulnerabilities affecting ua-parser-js
IDSeveritySummaryAffected versionsPublishedSource
GHSA-9h5v-pfqq-x599ModerateUAParser.js: Unbounded `Sec-CH-UA-Model` parsing can trigger ReDoS in `withClientHints()`### Summary A regular expression denial-of-service (ReDoS) vulnerability has been discovered in `ua-parser-js` 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 the parser to spend excessive CPU time due to catastrophic backtracking in the device [regex](https://github.com/faisalman/ua-parser-js/blob/2.0.9/src/main/ua-parser.js#L615): ```js / ([\w ]+) miui\/v?\d/i ``` Unlike when using the `User-Agent` value, which has a hard limit of `UA_MAX_LENGTH = 500`, when using Clien
  • >= 2.0.1, < 2.0.10
GitHub (opens in a new tab)
GHSA-fhg7-m89q-25r3HighReDoS Vulnerability in ua-parser-js version### Description: A regular expression denial of service (ReDoS) vulnerability has been discovered in `ua-parser-js`. ### Impact: This vulnerability bypass the library's `MAX_LENGTH` input limit prevention. By crafting a very-very-long user-agent string with specific pattern, an attacker can turn the script to get stuck processing for a very long time which results in a denial of service (DoS) condition. ### Affected Versions: From version `0.7.30` to before versions `0.7.33` / `1.0.33`. ### Patches: A patch has been released to remove the vulnerable regular expression, update to version `0.
  • >= 0.7.30, < 0.7.33
  • >= 0.8.0, < 1.0.33
GitHub (opens in a new tab)
GHSA-236c-vhj4-gfxgHighDuplicate Advisory: Embedded malware in ua-parser-js### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-pjwm-rvh2-c87w. This link is maintained to preserve external references. ### Original Description 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.29, < 0.7.30
  • >= 0.8.0, < 0.8.1
  • >= 1.0.0, < 1.0.1
GitHub (opens in a new tab)
GHSA-394c-5j6w-4xmxHighua-parser-js Regular Expression Denial of Service vulnerabilityThe 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.23
GitHub (opens in a new tab)
GHSA-pjwm-rvh2-c87wHighEmbedded malware in ua-parser-jsThe npm package `ua-parser-js` had three versions published with malicious code. Users of affected versions (0.7.29, 0.8.0, 1.0.0) should upgrade as soon as possible and check their systems for suspicious activity. See [this issue](https://github.com/faisalman/ua-parser-js/issues/536) for details as they unfold. Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given
  • >= 0.7.29, < 0.7.30
  • >= 0.8.0, < 0.8.1
  • >= 1.0.0, < 1.0.1
GitHub (opens in a new tab)
GHSA-662x-fhqg-9p8vHighRegular Expression Denial of Service in ua-parser-jsThe 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.
  • < 0.7.22
GitHub (opens in a new tab)
GHSA-78cj-fxph-m83pHighRegular Expression Denial of Service (ReDoS) in ua-parser-jsua-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.14, < 0.7.24
GitHub (opens in a new tab)
  • GHSA-9h5v-pfqq-x599Moderate
    UAParser.js: Unbounded `Sec-CH-UA-Model` parsing can trigger ReDoS in `withClientHints()`
    • >= 2.0.1, < 2.0.10

    ### Summary A regular expression denial-of-service (ReDoS) vulnerability has been discovered in `ua-parser-js` 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 the parser to spend excessive CPU time due to catastrophic backtracking in the device [regex](https://github.com/faisalman/ua-parser-js/blob/2.0.9/src/main/ua-parser.js#L615): ```js / ([\w ]+) miui\/v?\d/i ``` Unlike when using the `User-Agent` value, which has a hard limit of `UA_MAX_LENGTH = 500`, when using Clien

    CVE: CVE-2026-48125

  • GHSA-fhg7-m89q-25r3High
    ReDoS Vulnerability in ua-parser-js version
    • >= 0.7.30, < 0.7.33
    • >= 0.8.0, < 1.0.33

    ### Description: A regular expression denial of service (ReDoS) vulnerability has been discovered in `ua-parser-js`. ### Impact: This vulnerability bypass the library's `MAX_LENGTH` input limit prevention. By crafting a very-very-long user-agent string with specific pattern, an attacker can turn the script to get stuck processing for a very long time which results in a denial of service (DoS) condition. ### Affected Versions: From version `0.7.30` to before versions `0.7.33` / `1.0.33`. ### Patches: A patch has been released to remove the vulnerable regular expression, update to version `0.

    CVE: CVE-2022-25927

  • GHSA-236c-vhj4-gfxgHigh
    Duplicate Advisory: Embedded malware in ua-parser-js
    • >= 0.7.29, < 0.7.30
    • >= 0.8.0, < 0.8.1
    • +1 more
    Affected versions:
    • >= 0.7.29, < 0.7.30
    • >= 0.8.0, < 0.8.1
    • >= 1.0.0, < 1.0.1

    ### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-pjwm-rvh2-c87w. This link is maintained to preserve external references. ### Original Description 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.

  • GHSA-394c-5j6w-4xmxHigh
    ua-parser-js Regular Expression Denial of Service vulnerability
    • < 0.7.23

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

    CVE: CVE-2020-7793

  • GHSA-pjwm-rvh2-c87wHigh
    Embedded malware in ua-parser-js
    • >= 0.7.29, < 0.7.30
    • >= 0.8.0, < 0.8.1
    • +1 more
    Affected versions:
    • >= 0.7.29, < 0.7.30
    • >= 0.8.0, < 0.8.1
    • >= 1.0.0, < 1.0.1

    The npm package `ua-parser-js` had three versions published with malicious code. Users of affected versions (0.7.29, 0.8.0, 1.0.0) should upgrade as soon as possible and check their systems for suspicious activity. See [this issue](https://github.com/faisalman/ua-parser-js/issues/536) for details as they unfold. Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given

    CVE: CVE-2021-4229

  • GHSA-662x-fhqg-9p8vHigh
    Regular Expression Denial of Service in ua-parser-js
    • < 0.7.22

    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.

    CVE: CVE-2020-7733

  • GHSA-78cj-fxph-m83pHigh
    Regular Expression Denial of Service (ReDoS) in ua-parser-js
    • >= 0.7.14, < 0.7.24

    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.

    CVE: CVE-2021-27292

Showing 1-7 of 7 vulnerabilities