{"api_version":"1","generated_at":"2026-07-24T21:18:44+00:00","cve":"CVE-2023-40185","urls":{"html":"https://cve.report/CVE-2023-40185","api":"https://cve.report/api/cve/CVE-2023-40185.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-40185","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-40185"},"summary":{"title":"CVE-2023-40185","description":"shescape is simple shell escape library for JavaScript. This may impact users that use Shescape on Windows in a threaded context. The vulnerability can result in Shescape escaping (or quoting) for the wrong shell, thus allowing attackers to bypass protections depending on the combination of expected and used shell. This bug has been patched in version 1.7.4.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-08-23 21:15:00","updated_at":"2023-09-01 18:02:00"},"problem_types":["CWE-150"],"metrics":[],"references":[{"url":"https://github.com/ericcornelissen/shescape/releases/tag/v1.7.4","name":"https://github.com/ericcornelissen/shescape/releases/tag/v1.7.4","refsource":"MISC","tags":[],"title":"Release Release v1.7.4 · ericcornelissen/shescape · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ericcornelissen/shescape/pull/1142","name":"https://github.com/ericcornelissen/shescape/pull/1142","refsource":"MISC","tags":[],"title":"Provide explicit `$PATH` value to which by ericcornelissen · Pull Request #1142 · ericcornelissen/shescape · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ericcornelissen/shescape/security/advisories/GHSA-j55r-787p-m549","name":"https://github.com/ericcornelissen/shescape/security/advisories/GHSA-j55r-787p-m549","refsource":"MISC","tags":[],"title":"Windows escaping may be bypassed in threaded context · Advisory · ericcornelissen/shescape · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ericcornelissen/shescape/commit/0b976dab645abf45ffd85e74a8c6e51ee2f42d63","name":"https://github.com/ericcornelissen/shescape/commit/0b976dab645abf45ffd85e74a8c6e51ee2f42d63","refsource":"MISC","tags":[],"title":"Provide explicit `$PATH` value to which (#1142) · ericcornelissen/shescape@0b976da · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-40185","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40185","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"40185","vulnerable":"-1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"microsoft","cpe5":"windows","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"40185","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"shescape_project","cpe5":"shescape","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-40185","qid":"994969","title":"NodeJs (Npm) Security Update for shescape (GHSA-j55r-787p-m549)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-40185","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"shescape is simple shell escape library for JavaScript. This may impact users that use Shescape on Windows in a threaded context. The vulnerability can result in Shescape escaping (or quoting) for the wrong shell, thus allowing attackers to bypass protections depending on the combination of expected and used shell. This bug has been patched in version 1.7.4."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences","cweId":"CWE-150"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"ericcornelissen","product":{"product_data":[{"product_name":"shescape","version":{"version_data":[{"version_affected":"=","version_value":"< 1.7.4"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/ericcornelissen/shescape/security/advisories/GHSA-j55r-787p-m549","refsource":"MISC","name":"https://github.com/ericcornelissen/shescape/security/advisories/GHSA-j55r-787p-m549"},{"url":"https://github.com/ericcornelissen/shescape/pull/1142","refsource":"MISC","name":"https://github.com/ericcornelissen/shescape/pull/1142"},{"url":"https://github.com/ericcornelissen/shescape/commit/0b976dab645abf45ffd85e74a8c6e51ee2f42d63","refsource":"MISC","name":"https://github.com/ericcornelissen/shescape/commit/0b976dab645abf45ffd85e74a8c6e51ee2f42d63"},{"url":"https://github.com/ericcornelissen/shescape/releases/tag/v1.7.4","refsource":"MISC","name":"https://github.com/ericcornelissen/shescape/releases/tag/v1.7.4"}]},"source":{"advisory":"GHSA-j55r-787p-m549","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L","version":"3.1"}]}},"nvd":{"publishedDate":"2023-08-23 21:15:00","lastModifiedDate":"2023-09-01 18:02:00","problem_types":["CWE-150"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":8.6,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":4}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"AND","children":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:shescape_project:shescape:*:*:*:*:*:node.js:*:*","versionEndExcluding":"1.7.4","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":false,"cpe23Uri":"cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*","cpe_name":[]}]}],"cpe_match":[]}]}},"legacy_mitre":{"record":null,"notes":[]}}}