CVE-2022-31179 Details
Description
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).
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ericcornelissen/shescape/pull/332 | CVE | PatchThird Party Advisory |
| https://github.com/ericcornelissen/shescape/releases/tag/v1.5.8 | CVE | Release NotesThird Party Advisory |
| https://github.com/ericcornelissen/shescape/security/advisories/GHSA-jjc5-fp7p-6f8w | CVE | ExploitPatchThird Party Advisory |
| https://github.com/ericcornelissen/shescape/pull/332 | [email protected] | PatchThird Party Advisory |
| https://github.com/ericcornelissen/shescape/releases/tag/v1.5.8 | [email protected] | Release NotesThird Party Advisory |
| https://github.com/ericcornelissen/shescape/security/advisories/GHSA-jjc5-fp7p-6f8w | [email protected] | ExploitPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| shescape project shescape | < 1.5.8 |
CPE
Remediation
| |
| microsoft windows | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Aug 9, 2022 | Initial Analysis | [email protected] |