CVE-2021-21384
HIGH 7.8CVSS 3.1Null characters not escaped
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.
- Published
- 19 Mar 2021
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-88
- Also known as
- GHSA-f2rp-38vg-j3gh
- Sources
- NVDJSONOSV GHSA-f2rp-38vg-j3ghJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | shescape_project | shescapecpe:2.3:a:shescape_project:shescape:*:*:*:*:*:node.js:*:* |
< 1.1.3 | 1.1.3 |
| OSV | npm | shescape | < 1.1.3 | 1.1.3 |
References
- https://github.com/ericcornelissen/shescape/commit/07a069a66423809cbedd61d980c11ca44a29ea2b · Patch, Third Party Advisory, WEB
- https://github.com/ericcornelissen/shescape/releases/tag/v1.1.3 · Release Notes, Third Party Advisory, WEB
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-f2rp-38vg-j3gh · Exploit, Third Party Advisory, WEB
- https://www.npmjs.com/package/shescape · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21384 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 19 Mar 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Mar 2021)