{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-25918","id":"CVE-2022-25918","title":"Regular Expression Denial of Service (ReDoS)","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.","descriptionLong":"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.","published":"2022-10-27T05:05:09.944Z","updated":"2026-10-28T02:31:06.682765196Z","reserved":"2022-02-24T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"snyk"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"snyk"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"snyk.io"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"medium","products":["shescape"],"affectedProducts":[{"vendor":"n/a","product":"shescape","defaultStatus":null,"versions":[{"version":"1.5.10","status":"affected","lessThan":"unspecified","versionType":"custom"},{"version":"unspecified","lessThan":"1.6.1","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"shescape","purl":"pkg:npm/shescape","ranges":[">=1.5.10 <1.6.1"],"fixed":["1.6.1"],"advisory":"GHSA-cr84-xvw4-qx3c"}],"cwes":["CWE-1333"],"aliases":["GHSA-cr84-xvw4-qx3c"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108","tags":["x_transferred","Exploit","Patch","Third Party Advisory","web"]},{"url":"https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52","tags":["x_transferred","Broken Link","web"]},{"url":"https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1","tags":["x_transferred","Release Notes","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25918.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25918","tags":["advisory"]},{"url":"https://github.com/ericcornelissen/shescape/security/advisories/GHSA-cr84-xvw4-qx3c","tags":["web"]},{"url":"https://github.com/ericcornelissen/shescape","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.01629,"epssPercentile":0.76736,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-25918","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25918","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-25918","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-cr84-xvw4-qx3c","ok":true,"note":"GHSA-cr84-xvw4-qx3c"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-25918","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}