Inefficient Regular Expression Complexity Affecting node-ua-parser-js package, versions <0.8.1+ds+~0.7.36-3


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.73% (75th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-NODEUAPARSERJS-18000891
  • published17 Jul 2026
  • disclosed26 Jan 2023

Introduced: 26 Jan 2023

CVE-2022-25927  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Echo:latest node-ua-parser-js to version 0.8.1+ds+~0.7.36-3 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-ua-parser-js package and not the node-ua-parser-js package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1