Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. useragent
  4. ›
  5. CVE-2020-26311

CVE-2020-26311: useragent Regular Expression Denial of Service vulnerability

October 26, 2024 (updated September 3, 2025)

Useragent is a user agent parser for Node.js. All versions as of time of publication contain one or more regular expressions that are vulnerable to Regular Expression Denial of Service (ReDoS).

References

  • github.com/3rd-Eden/useragent
  • github.com/3rd-Eden/useragent/blob/ffa906f923183c85fbb9e6c90f19345e2bd3c52a/lib/regexps.js
  • github.com/3rd-Eden/useragent/commit/4c3ee79358bea72d88fe78ac98f4f861db40b89b
  • github.com/3rd-Eden/useragent/issues/167
  • github.com/advisories/GHSA-mgfv-m47x-4wqp
  • nvd.nist.gov/vuln/detail/CVE-2020-26311
  • securitylab.github.com/advisories/GHSL-2020-312-redos-useragent

Code Behaviors & Features

Detect and mitigate CVE-2020-26311 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 2.3.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/useragent/CVE-2020-26311.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:26 +0000.