Inefficient Regular Expression Complexity Affecting node-terser package, versions <4.8.1-1


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
3.25% (89th 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-NODETERSER-23729892
  • published4 Dec 2026
  • disclosed15 Jul 2022

Introduced: 15 Jul 2022

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

How to fix?

Upgrade Echo:latest node-terser to version 4.8.1-1 or higher.

NVD Description

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

The package terser before 4.8.1, from 5.0.0 and before 5.14.2 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure usage of regular expressions.

CVSS Base Scores

version 3.1