What’s Vulnerable › Vulnerabilities
CVE-2021-21384: Null characters not escaped in shescape
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-03-19 · updated 2026-06-17
- Weakness: CWE-88
Description
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.
Affected products
- ericcornelissen shescape: before 1.1.3 — fixed in 1.1.3
How to fix
Upgrade to a fixed version: ericcornelissen shescape 1.1.3. Check the vendor advisory for mitigations.
References
- https://github.com/ericcornelissen/shescape/commit/07a069a66423809cbedd61d980c11ca44a29ea2b
- https://github.com/ericcornelissen/shescape/releases/tag/v1.1.3
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-f2rp-38vg-j3gh
- https://www.npmjs.com/package/shescape
- https://github.com/ericcornelissen/shescape/commit/07a069a66423809cbedd61d980c11ca44a29ea2b
- https://github.com/ericcornelissen/shescape/releases/tag/v1.1.3
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-f2rp-38vg-j3gh
- https://www.npmjs.com/package/shescape
Get alerted when CVE-2021-21384 or the next vulnerability affects your stack