{"id":"CVE-2021-21384","published":"2021-03-18T23:50:13Z","modified":"2024-08-03T18:09:15Z","title":"Null characters not escaped in shescape","vendor":"ericcornelissen","product":"shescape","tier":"tail","description":{"text":"shescape is a simple shell escape package for JavaScript. In shescape before version 1.1.3, anyone using _Shescape_ to defend against shell injection may still be vulnerable against shell injection if the attacker manages to insert a into the payload. For an example see the referenced GitHub Security Advisory. The problem has been patched in version 1.1.3. No further changes are required.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00573,"percentile":0.41202,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/ericcornelissen/shescape/security/advisories/GHSA-f2rp-38vg-j3gh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ericcornelissen/shescape/commit/07a069a66423809cbedd61d980c11ca44a29ea2b","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/releases/tag/v1.1.3","tags":["x_refsource_MISC"]},{"url":"https://www.npmjs.com/package/shescape","tags":["x_refsource_MISC"]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":8.24},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"ericcornelissen","affectedVersions":[{"vendor":"ericcornelissen","product":"shescape","versions":["< 1.1.3"]}],"affected":[{"ecosystem":"npm","package":"shescape","vulnerableRanges":["<1.1.3"],"patched":["1.1.3"],"from":["GHSA-f2rp-38vg-j3gh"],"provenance":"source"}],"summary":{"text":"The shescape JavaScript shell-escape package, before version 1.1.3, fails to escape null characters, so input passed through it can still enable shell injection despite its use as a defence. An attacker who can get a null character into the payload can inject shell commands, which requires local access, a high-complexity condition, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:49Z"},"euvd":{"id":"EUVD-2021-0648","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ericcornelissen-shescape-cve-2021-21384","children":[{"from":"CVE-2021-21384","to":"CVE-2022-25918","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/unix.js"],"commits":["https://github.com/ericcornelissen/shescape/commit/07a069a66423809cbedd61d980c11ca44a29ea2b","https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9"],"basis":"rarely changed file"}]},{"from":"CVE-2021-21384","to":"CVE-2022-31179","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/unix.js","src/win.js"],"commits":["https://github.com/ericcornelissen/shescape/commit/07a069a66423809cbedd61d980c11ca44a29ea2b","https://github.com/ericcornelissen/shescape/commit/aceea7358f7222984e21260381ebc5ec4543b76f"],"basis":"rarely changed file"}]}]}}