# CVE-2021-21384: Null characters not escaped in shescape

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-18T23:47:56.000Z
- Modified: 2026-09-10T03:49:01.950Z
- Also known as: GHSA-f2rp-38vg-j3gh
- Weaknesses: CWE-88
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ericcornelissen shescape: < 1.1.3
- shescape (npm): before 1.1.3
- shescape_project shescape: before 1.1.3

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N`
- GitHub: CVSS:3.1 6.3 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/ericcornelissen/shescape/security/advisories/GHSA-f2rp-38vg-j3gh> (exploit, third-party-advisory, web)
- <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://www.npmjs.com/package/shescape> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21384> (advisory)

## Sources

- CVE List: [CVE-2021-21384](https://www.cve.org/CVERecord?id=CVE-2021-21384), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-f2rp-38vg-j3gh](https://github.com/advisories/GHSA-f2rp-38vg-j3gh), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-21384](https://nvd.nist.gov/vuln/detail/CVE-2021-21384), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21384 · Whole record: https://cve.day/CVE-2021-21384.json · Rebuilt by cve.day 2026-11-25T22:58:00.336Z
