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.

Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)0.6%top 52.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmshescape1.1.3GHSA-f2rp-38vg-j3gh

Affected products (as reported)

VendorProductVersions
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