NodeJS/shell-quote/1.7.0
quote and parse shell commands
https://www.npmjs.com/package/shell-quote
MIT
1 Security Vulnerabilities
Improper Neutralization of Special Elements used in a Command in Shell-quote
- https://nvd.nist.gov/vuln/detail/CVE-2021-42740
- https://github.com/substack/node-shell-quote/commit/5799416ed454aa4ec9afafc895b4e31760ea1abe
- https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md#173
- https://www.npmjs.com/package/shell-quote
- https://github.com/advisories/GHSA-g4rg-993r-mgx7
- https://github.com/ljharb/shell-quote/commit/5799416ed454aa4ec9afafc895b4e31760ea1abe
- https://github.com/ljharb/shell-quote/blob/master/CHANGELOG.md#173
The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject unescaped shell metacharacters through a regex designed to support Windows drive letters. If the output of this package is passed to a real shell as a quoted argument to a command with exec()
, an attacker can inject arbitrary commands. This is because the Windows drive letter regex character class is [A-z]
instead of the correct [A-Za-z]
. Several shell metacharacters exist in the space between capital letter Z and lower case letter a, such as the backtick character.
27 Other Versions
Version | License | Security | Released | |
---|---|---|---|---|
1.8.1 | MIT | 2023-04-07 - 20:56 | about 1 year | |
1.8.0 | MIT | 2023-01-31 - 03:27 | over 1 year | |
1.7.4 | MIT | 2022-10-13 - 16:52 | over 1 year | |
1.7.3 | MIT | 2021-10-21 - 06:34 | over 2 years | |
1.7.2 | MIT | 1 | 2019-09-01 - 07:46 | over 4 years |
1.7.1 | MIT | 1 | 2019-08-13 - 13:35 | over 4 years |
1.7.0 | MIT | 1 | 2019-08-13 - 07:52 | over 4 years |
1.6.3 | MIT | 1 | 2019-08-13 - 07:41 | over 4 years |
1.6.2 | MIT | 1 | 2019-08-13 - 07:15 | over 4 years |
1.6.1 | MIT | 1 | 2016-06-17 - 20:43 | almost 8 years |
1.6.0 | MIT | 3 | 2016-04-24 - 05:53 | about 8 years |
1.5.0 | MIT | 3 | 2016-03-16 - 17:58 | about 8 years |
1.4.3 | MIT | 3 | 2015-03-08 - 03:47 | about 9 years |
1.4.2 | MIT | 3 | 2014-07-20 - 21:27 | almost 10 years |
1.4.1 | MIT | 3 | 2013-12-25 - 01:00 | over 10 years |
1.4.0 | MIT | 3 | 2013-10-18 - 01:40 | over 10 years |
1.3.3 | MIT | 3 | 2013-06-24 - 12:01 | almost 11 years |
1.3.2 | MIT | 3 | 2013-06-24 - 11:50 | almost 11 years |
1.3.1 | MIT | 3 | 2013-05-13 - 13:48 | almost 11 years |
1.3.0 | MIT | 3 | 2013-05-13 - 13:42 | almost 11 years |
1.2.0 | MIT | 3 | 2013-05-13 - 12:10 | almost 11 years |
1.1.0 | MIT | 3 | 2013-05-13 - 10:35 | almost 11 years |
1.0.0 | MIT | 3 | 2013-05-13 - 10:27 | almost 11 years |
0.1.1 | MIT | 3 | 2013-04-17 - 08:06 | about 11 years |
0.1.0 | MIT | 3 | 2013-04-15 - 04:36 | about 11 years |
0.0.1 | MIT | 3 | 2012-05-18 - 18:25 | almost 12 years |
0.0.0 | MIT | 3 | 2012-05-18 - 10:42 | almost 12 years |