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.
The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.
Link | Tags |
---|---|
https://github.com/ericcornelissen/shescape/security/advisories/GHSA-f2rp-38vg-j3gh | third party advisory exploit |
https://github.com/ericcornelissen/shescape/commit/07a069a66423809cbedd61d980c11ca44a29ea2b | third party advisory patch |
https://github.com/ericcornelissen/shescape/releases/tag/v1.1.3 | third party advisory release notes |
https://www.npmjs.com/package/shescape | product |