# CVE-2022-25858: Regular Expression Denial of Service (ReDoS)

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-07-15 · Modified: 2024-09-16
- Aliases: UBUNTU-CVE-2022-25858, DEBIAN-CVE-2022-25858, GHSA-4wf5-vphf-c2xc
- Record: https://cvemate.com/vulnerability/CVE-2022-25858 · JSON: https://cvemate.com/vulnerability/CVE-2022-25858/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 3.253%, percentile 88.747%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (reference)

## Affected

- debian node-terser (Debian): \< 4.8.1-1
- ubuntu node-terser (Ubuntu): All versions (No fix recorded)
- ubuntu qt6-webengine (Ubuntu): All versions (No fix recorded)
- Npm terser (Npm): \< 4.8.1 \| ≥ 5.0.0, \< 5.14.2
- terser terser: \< 4.8.1 \| ≥ 5.0.0, \< 5.14.2
- wordpress autoshare-for-twitter: ≤ 1.1.2 (fixed in 1.2.0)
- wordpress elasticpress: ≤ 4.2.2 (fixed in 4.3.0)
- wordpress maps-block-apple: ≤ 1.0.3 (fixed in 1.1.0)
- wordpress publisher-media-kit: ≤ 1.2.1 (fixed in 1.3.0)
- wordpress retro-winamp-block: ≤ 1.1.0 (fixed in 1.2.0)
- wordpress simple-local-avatars: ≤ 2.5.0 (fixed in 2.6.0)
- wordpress simple-podcasting: \< 1.2.4
- wordpress sophi: ≤ 1.2.0 (fixed in 1.2.1)

## References

- <https://snyk.io/vuln/SNYK-JS-TERSER-2806366>
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722>
- <https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135>
- <https://github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b>
- <https://github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012>
- <https://ubuntu.com/security/CVE-2022-25858>
- <https://www.cve.org/CVERecord?id=CVE-2022-25858>
- <https://security-tracker.debian.org/tracker/CVE-2022-25858>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25858>
- <https://github.com/terser/terser>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/d535c069-cfa3-4c41-9a01-b4c4e7c75764>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/f1c08c10-7358-4618-b892-7d222ba460de>

---

Data as of 2026-12-05T07:00:32.956Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
