ua-parser-js@2.0.7

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

  • latest version

    2.0.10

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    3 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the ua-parser-js package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Regular Expression Denial of Service (ReDoS)

    ua-parser-js is a lightweight JavaScript-based user-agent string parser.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the withClientHints() function. An attacker can cause excessive CPU consumption by sending a specially crafted Sec-CH-UA-Model header containing a very large input, leading to significant processing delays due to inefficient regular expression handling.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade ua-parser-js to version 2.0.10 or higher.

    >=2.0.1 <2.0.10