CVE-2020-26311
JavaScript vulnerability analysis and mitigation

Overview

Useragent, a user agent parser for Node.js, contains a vulnerability identified as CVE-2020-26311. The vulnerability affects all versions of the software as of the publication date and involves one or more regular expressions that are vulnerable to Regular Expression Denial of Service (ReDoS). The issue was discovered by the GitHub Security Lab team and reported on November 30, 2020 (GitHub Issue, NVD).

Technical details

The vulnerability stems from inefficient regular expressions that can lead to excessive backtracking under specific input patterns. One of the vulnerable regular expressions identified was: /(HbbTV)/1.1.1.CE-HTML/1.\d;(Vendor/)(THOM;?);\s(LF;+);?/. When provided with specially crafted input, this regular expression can cause exponential backtracking, resulting in O(2^n) runtime performance (GitHub Advisory).

Impact

The vulnerability can lead to a Denial of Service (DoS) condition when processing maliciously crafted user agent strings. Since useragent is designed to handle untrusted user inputs on the server side, this vulnerability could allow attackers to cause significant server-side performance degradation through carefully constructed HTTP requests (GitHub Advisory).

Mitigation and workarounds

At the time of publication, no official patches were available for this vulnerability. While a fix exists in the master branch of the repository, it had not been published to npm, with the latest published version being three years old (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-65513HIGH7.5
  • JavaScriptJavaScript
  • mcp-fetch-server
NoNoDec 09, 2025
CVE-2025-67716MEDIUM5.7
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 11, 2025
CVE-2025-67490MEDIUM5.4
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management