CVE-2026-107703 Details
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.
A command injection vulnerability has been identified in the npm package '@enmaso/node-convert' in all versions through 1.0.0. The issue resides in 'convert.js', where unsanitized user inputs for file paths and conversion formats are interpolated into a command executed by 'child_process.exec()'. This flaw allows attackers to inject shell metacharacters or quotes, executing arbitrary operating system commands with the privileges of the Node.js process.
To address this vulnerability, the package should be updated to use 'child_process.execFile()' with an array of arguments, validate the 'convertTo' parameter against a list of allowed extensions, and correct the logic to return early if the file does not exist.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 8, 2026CISA-ADP
Assessed Oct 8, 2026References 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.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| enmaso/node-convert | <= 1.0.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 8, 2026 | CVE Modified | CISA-ADP |
| Oct 8, 2026 | New CVE Received | [email protected] |
Volerion