Security mailing lists by PureSourceCode

CVE-2022-25858

HIGH 7.5CVSS 3.1

Terser insecure use of regular expressions leads to ReDoS

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.

Published
15 Jul 2022
Last modified
17 Jun 2026
Assigned by
report@snyk.io
NVD status
Modified
Weakness
CWE-1333
Also known as
GHSA-4wf5-vphf-c2xc
Sources
NVDJSONOSV GHSA-4wf5-vphf-c2xcJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD report@snyk.io (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD terser terser
cpe:2.3:a:terser:terser:*:*:*:*:*:node.js:*:*
< 4.8.1 4.8.1
NVD terser terser
cpe:2.3:a:terser:terser:*:*:*:*:*:node.js:*:*
>= 5.0.0, < 5.14.2 5.14.2
OSV npm terser < 4.8.1 4.8.1
OSV npm terser >= 5.0.0, < 5.14.2 5.14.2

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 15 Jul 2022)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 16 Jul 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.