GHSA-jjc5-fp7p-6f8w · Severity: high · Ecosystem: npm — Shescape prior to 1.5.8 vulnerable to insufficient escaping of line feeds for CMD
Shescape is a simple shell escape package for JavaScript. Versions prior to 1.5.8 were found to be subject to code injection on windows. This impacts users that use Shescape (any API function) to escape arguments for cmd.exe on Windows An attacker can omit all arguments following their input by including a line feed character (`'\n'`) in the payload. This bug has been patched in [v1.5.8] which you can upgrade to now. No further changes are required. Alternatively, line feed characters (`'\n'`) can be stripped out manually or the user input can be made the last argument (this only limits the impact).
Conclusion & alert: CVE-2022-31179 is rated High Exploit Risk (71.4/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.59%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2025-08-03 | 0.53% | 0.59% | +0.07% |
| 2 | 2025-08-02 | 0.11% | 0.53% | +0.41% |
| 3 | 2025-03-30 | — | 0.11% | — |
Full EPSS history (12 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.1 | 3.1 | HIGH |
|
2.2 | 5.3 | [email protected] |
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
GHSA-jjc5-fp7p-6f8w · Severity: high · Ecosystem: npm — Shescape prior to 1.5.8 vulnerable to insufficient escaping of line feeds for CMD
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| shescape_project | shescape | < 1.5.8 | cpe:2.3:a:shescape_project:shescape:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/ericcornelissen/shescape/pull/332 | Patch Third Party Advisory |
| https://github.com/ericcornelissen/shescape/releases/tag/v1.5.8 | Release Notes Third Party Advisory |
| https://github.com/ericcornelissen/shescape/security/advisories/GHSA-jjc5-fp7p-6f8w | Exploit Patch Third Party Advisory |