CVE-2022-25858

Regular Expression Denial of Service (ReDoS)

HIGH
7.5
CVSS Score
Published: July 15, 2022 at 08:00 PM UTC
Updated: June 17, 2026 at 04:34 AM UTC
1 product affected across 1 vendorTerser

Using terser by N/A?

Get instant alerts when new vulnerabilities affect terser - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 3%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.0.0v < 4.8.1v < 5.14.25.0.0 ≤ v < 5.14.25.0.0
Affected range stops below 4.8.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.14.2, so it looks safe — our inference, not a vendor statement

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-1333

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card