{"api_version":"1","generated_at":"2026-04-23T16:55:55+00:00","cve":"CVE-2022-25858","urls":{"html":"https://cve.report/CVE-2022-25858","api":"https://cve.report/api/cve/CVE-2022-25858.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-25858","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-25858"},"summary":{"title":"CVE-2022-25858","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.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-07-15 20:15:00","updated_at":"2023-08-08 14:22:00"},"problem_types":["CWE-1333"],"metrics":[],"references":[{"url":"https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135","name":"N/A","refsource":"CONFIRM","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Regular Expression Denial of Service (ReDoS) in org.webjars.npm:terser | CVE-2022-25858 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b","name":"N/A","refsource":"CONFIRM","tags":[],"title":"fix potential regexp DDOS · terser/terser@a4da734 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012","name":"N/A","refsource":"CONFIRM","tags":[],"title":"backport fix to potential regexp DDOS · terser/terser@d8cc569 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://snyk.io/vuln/SNYK-JS-TERSER-2806366","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Regular Expression Denial of Service (ReDoS) in terser | CVE-2022-25858 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/terser/terser/blob/master/lib/compress/evaluate.js#L135","name":"MISC:https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135","refsource":"MITRE","tags":[],"title":"terser/evaluate.js at master · terser/terser · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25858","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25858","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Fábio Santos","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"25858","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"terser","cpe5":"terser","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-25858","qid":"183049","title":"Debian Security Update for node-terser (CVE-2022-25858)"},{"cve":"CVE-2022-25858","qid":"378599","title":"Splunk Enterprise Third Party Package Updates for June (SVD-2023-0613)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-07-15T20:00:10.074191Z","ID":"CVE-2022-25858","STATE":"PUBLIC","TITLE":"Regular Expression Denial of Service (ReDoS)"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"terser","version":{"version_data":[{"version_affected":"<","version_value":"4.8.1"},{"version_affected":">=","version_value":"5.0.0"},{"version_affected":"<","version_value":"5.14.2"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Regular Expression Denial of Service (ReDoS)"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-TERSER-2806366","name":"https://snyk.io/vuln/SNYK-JS-TERSER-2806366"},{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722","name":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722"},{"refsource":"MISC","url":"https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135","name":"https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135"},{"refsource":"MISC","url":"https://github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b","name":"https://github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b"},{"refsource":"MISC","url":"https://github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012","name":"https://github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"LOW"}},"credit":[{"lang":"eng","value":"Fábio Santos"}]},"nvd":{"publishedDate":"2022-07-15 20:15:00","lastModifiedDate":"2023-08-08 14:22:00","problem_types":["CWE-1333"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:terser:terser:*:*:*:*:*:node.js:*:*","versionEndExcluding":"4.8.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:terser:terser:*:*:*:*:*:node.js:*:*","versionStartIncluding":"5.0.0","versionEndExcluding":"5.14.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}