Description
@enmaso/node-convert through 1.0.0 contains an OS command injection vulnerability in convert.js that allows attackers to execute shell commands via unsanitized filepath and convertTo arguments. Attackers can inject shell metacharacters or a single quote into the ImageMagick command run by child_process.exec() to execute operating system commands with Node.js process privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| enmaso | @enmaso/node-convert | ≤ 1.0.0 | — |
References
- https://gist.github.com/R3tro16/5a508fcfddfb0dfe66a0a53437ede74c third-party-advisory
- https://github.com/enmaso/node-convert/blob/143e4d76244e2daac57eef59d8ed5983e33ee4fb/convert.js#L4-L15 technical-description
- https://github.com/enmaso/node-convert product
- VulnCheck Advisory: @enmaso/node-convert through 1.0.0 OS Command Injection via filepath and convertTo third-party-advisory