Advisory

GHSA-4wf5-vphf-c2xc

Also known as: CVE-2022-25858

Summary

Terser insecure use of regular expressions leads to ReDoS

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-07-16 00:00 UTC
Modified
2025-01-14 10:57 UTC

Affected packages and fixes

terser

npm · All systems

Affected

  • introduced 0, fixed 4.8.1 (semver)

Fixed versions

4.8.1

Fix

terser

npm · All systems

Affected

  • introduced 5.0.0, fixed 5.14.2 (semver)

Fixed versions

5.14.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences