{"cve":"CVE-2022-25858","nvd":{"published":"2022-07-15T20:15:08.427","modified":"2026-06-17T04:34:24.230","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-1333"],"references":["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://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722","https://snyk.io/vuln/SNYK-JS-TERSER-2806366"],"products":["terser:terser"],"source":"nvd","synced_at":"2026-10-19T21:33:44.859608815+00:00"},"epss":{"cve":"CVE-2022-25858","score":0.03253,"percentile":0.88347,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-4wf5-vphf-c2xc","url":"https://osv.dev/vulnerability/GHSA-4wf5-vphf-c2xc","summary":"Terser insecure use of regular expressions leads to ReDoS","modified":"2025-01-14T10:57:13.174999Z","packages":[{"ecosystem":"npm","name":"terser","purl":"pkg:npm/terser","ranges":["<4.8.1"],"fixed":["4.8.1"]},{"ecosystem":"npm","name":"terser","purl":"pkg:npm/terser","ranges":[">=5.0.0 <5.14.2"],"fixed":["5.14.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}