{"id":"CVE-2022-25858","published":"2022-07-15T20:00:19Z","modified":"2024-09-16T19:45:47Z","title":"Regular Expression Denial of Service (ReDoS)","vendor":null,"product":null,"tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02843,"percentile":0.87387,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-TERSER-2806366","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722","tags":["x_refsource_MISC"]},{"url":"https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135","tags":["x_refsource_MISC"]},{"url":"https://github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b","tags":["x_refsource_MISC"]},{"url":"https://github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012","tags":["x_refsource_MISC"]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":17.48},{"name":"CVSS severity","points":3.71}]},"affectedVersions":[{"vendor":"n/a","product":"terser","versions":[">= unspecified, < 4.8.1",">= 5.0.0, < unspecified",">= unspecified, < 5.14.2"]}],"affected":[{"ecosystem":"npm","package":"terser","vulnerableRanges":["<4.8.1",">=5.0.0, <5.14.2"],"patched":["4.8.1","5.14.2"],"from":["GHSA-4wf5-vphf-c2xc"],"provenance":"source"}],"summary":{"text":"The terser npm package, in versions before 4.8.1 and from 5.0.0 before 5.14.2, contains a Regular Expression Denial of Service (ReDoS) flaw caused by insecure use of regular expressions. An attacker with network access can trigger it without authentication, user interaction, or special configuration, causing a denial of service through availability impact.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:27Z"},"euvd":{"id":"EUVD-2022-6234","exploited":false,"provenance":"source"}}