Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦 npm

GHSA-4wf5-vphf-c2xc

HIGH

Terser insecure use of regular expressions leads to ReDoS

Also known asCVE-2022-25858
Published
Jul 16, 2022
Updated
Jan 14, 2025
Affected
2 pkgs
Patched
2 / 2
Exploits
2 known

EPSS Exploitation Probability

via FIRST.org ↗
3.7%probability of exploitation in next 30 days
Lower Risk88th percentile0.00%
1.84%2.63%3.43%4.22%2.3%3.7%Dec 25Apr 26Jun 26

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

Blast Radius

2 pkgs affected
📦terser📦terser

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.

Description

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.

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
📦npmterserall versions4.8.1
📦npmterser5.0.0&&< 5.14.25.14.2
Exploits & PoCs
2

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is GHSA-4wf5-vphf-c2xc in your stack?

O3 detects GHSA-4wf5-vphf-c2xc across npm dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.