Vulnerability · Published Mar 18, 2021 · Assigned by GitHub_M
CVE-2021-21384Null characters not escaped in shescape
Medium 6.3
In plain English
A medium-severity argument injection in shescape from ericcornelissen. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | shescape | 1.1.3 | GHSA-f2rp-38vg-j3gh |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ericcornelissen | shescape | < 1.1.3 |
Weakness: CWE-88 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N
References
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-f2rp-38vg-j3gh x_refsource_CONFIRM
- https://github.com/ericcornelissen/shescape/commit/07a069a66423809cbedd61d980c11ca44a29ea2b x_refsource_MISC
- https://github.com/ericcornelissen/shescape/releases/tag/v1.1.3 x_refsource_MISC
- https://www.npmjs.com/package/shescape x_refsource_MISC