Command injection in total.js
High severity
GitHub Reviewed
Published
Feb 5, 2021
to the GitHub Advisory Database
•
Updated Feb 1, 2023
Description
Published by the National Vulnerability Database
Feb 2, 2021
Reviewed
Feb 3, 2021
Published to the GitHub Advisory Database
Feb 5, 2021
Last updated
Feb 1, 2023
There is a command injection vulnerability that affects the package total.js before version 3.4.7. The issue occurs in the image.pipe and image.stream functions. The type parameter is used to build the command that is then executed using child_process.spawn. The issue occurs because child_process.spawn is called with the option shell set to true and because the type parameter is not properly sanitized.
References