{"api_version":"1","generated_at":"2026-07-23T11:18:32+00:00","cve":"CVE-2022-25918","urls":{"html":"https://cve.report/CVE-2022-25918","api":"https://cve.report/api/cve/CVE-2022-25918.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-25918","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-25918"},"summary":{"title":"CVE-2022-25918","description":"The package shescape from 1.5.10 and before 1.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-10-27 10:15:00","updated_at":"2023-08-08 14:22:00"},"problem_types":["CWE-1333"],"metrics":[],"references":[{"url":"https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52","name":"https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52","refsource":"MISC","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1","name":"https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1","refsource":"MISC","tags":[],"title":"Release Release v1.6.1 · ericcornelissen/shescape · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9","name":"https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-cr84-xvw4-qx3c · ericcornelissen/shescape@552e8ea · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108","name":"https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108","refsource":"MISC","tags":[],"title":"Regular Expression Denial of Service (ReDoS) in shescape | CVE-2022-25918 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ericcornelissen/shescape/blob/main/src/unix.js#L52","name":"MISC:https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52","refsource":"MITRE","tags":[],"title":"shescape/unix.js at main · ericcornelissen/shescape · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25918","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25918","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Elliot Ward - Snyk Research Team","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"25918","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"shescape_project","cpe5":"shescape","cpe6":"1.5.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"25918","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"shescape_project","cpe5":"shescape","cpe6":"1.6.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-10-27T05:00:01.622197Z","ID":"CVE-2022-25918","STATE":"PUBLIC","TITLE":"Regular Expression Denial of Service (ReDoS)"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"shescape","version":{"version_data":[{"version_affected":">=","version_value":"1.5.10"},{"version_affected":"<","version_value":"1.6.1"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Regular Expression Denial of Service (ReDoS)"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108","name":"https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108"},{"refsource":"MISC","url":"https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52","name":"https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52"},{"refsource":"MISC","url":"https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9","name":"https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9"},{"refsource":"MISC","url":"https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1","name":"https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1"}]},"description":{"description_data":[{"lang":"eng","value":"The package shescape from 1.5.10 and before 1.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function."}]},"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":"Elliot Ward - Snyk Research Team"}]},"nvd":{"publishedDate":"2022-10-27 10: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:shescape_project:shescape:1.5.10:*:*:*:*:node.js:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:shescape_project:shescape:1.6.0:*:*:*:*:node.js:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}