Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted filePath/language to whisper()
-
DeliveryInject $() or shell metacharacters
-
ExploitUnescaped value concatenated by createCppCommand()
-
Executionshelljs exec() runs command string
-
ImpactExecute arbitrary OS commands as Node.js process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an application that calls whisper-node's whisper() function and passes attacker-controlled data into the filePath argument or the whisperOptions.language option (and potentially modelPath); these values flow unescaped into the shell command built by createCppCommand() and executed via shelljs exec(). No special whisper-node configuration is needed - the vulnerable code path is the default in versions through 1.1.1. The key LIMITING factor is that whisper-node is a library, not a network service: it is only remotely exploitable if the embedding application accepts untrusted input for these parameters; applications that use only hard-coded or sanitized paths/languages are not exposed. Impact is bounded by the privileges of the Node.js process. |
| Impact | This is a genuine high-severity issue for any application that embeds whisper-node, but its real-world risk is gated by how the library is used rather than by the library existing on disk. The vendor CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N) and the 9.3 score describe a trivially exploitable, unauthenticated, network-reachable command injection with full VC:H/VI:H/VA:H impact, and the source-code evidence (PR #64) confirms the root cause: user-supplied filePath, modelPath, and whisperOptions.language were interpolated unescaped into a shell command string executed via shelljs exec(). However, whisper-node is a library function, not a listening service - the AV:N/PR:N rating is only realized when the host application forwards untrusted input into whisper(), so the 'unauthenticated network' framing is inherited from a hypothetical calling app, not from whisper-node itself. No EPSS score, KEV listing, or public POC was provided in the input, so there is no signal of active or widespread exploitation; the fix (quoting/shell-escaping via a POSIX single-quote helper) is confirmed available in PR #64. Net assessment: technically critical and easy to exploit where reachable, but likely targeted/opportunistic against specific applications rather than mass-exploited, given the niche footprint and absence of exploitation telemetry. |
| Exploit ScenarioDerived | An application uses whisper-node to transcribe audio and passes a user-controlled filename or a 'language' option straight into whisper(). An attacker submits a value such as a filePath or language containing shell metacharacters or $(...) command substitution, which is concatenated into the './main ... -f <filePath>' command and executed by shelljs exec(), running arbitrary OS commands with the Node.js process privileges. No public exploit was identified at time of analysis, but the injection point is confirmed by the vendor patch diff. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
OS command injection in the whisper-node npm package through version 1.1.1 allows remote, unauthenticated attackers to run arbitrary shell commands with the privileges of the embedding Node.js process whenever an application passes attacker-controlled data into whisper()'s filePath argument or the whisperOptions.language (and potentially modelPath) options. The vulnerable code path is the default in all versions up to and including 1.1.1, with no special configuration required, although real-world exposure is gated by how the library is used: whisper-node is a library, not a network service, so only applications that feed it untrusted input are remotely exploitable, and impact is bounded by the Node.js process privileges. No public exploit code has been identified at time of analysis, and there is no indication of confirmed active exploitation (CISA KEV); the upstream fix appears in GitHub PR #64 but a released patched version could not be independently confirmed from the available data.
RemediationAI
The upstream fix is the escaping change in GitHub PR #64 (https://github.com/ariym/whisper-node/pull/64), which introduces a shellEscape() helper applying POSIX single-quote escaping to filePath, modelPath, and language before they are concatenated into the shell command; because that reference points to a pull request rather than a tagged release, treat this as upstream fix available (PR/commit) with a released patched version not independently confirmed, and verify the registry version actually contains the escaping change before relying on it. If an upgrade cannot be validated immediately, apply compensating controls at the call site: treat filePath, modelPath, and language as untrusted and enforce a strict allowlist - resolve filePath with path.resolve() against a fixed media directory and reject any value containing shell metacharacters (;, |, &, `, $, (, ), newline), and constrain language to a fixed set of ISO codes rather than free text; this blocks the injection but will reject legitimate filenames containing such characters, so normalization or renaming may be needed. Additionally, run the Node.js process that invokes whisper() as a low-privilege, containerized user with a read-only filesystem and no access to credentials or the host shell, which limits blast radius if an injection still succeeds - though it does not eliminate the flaw. Consult the vendor advisory at https://www.vulncheck.com/advisories/whisper-node-through-1.1.1-os-command-injection-via-filepath-and-language and the affected source at https://github.com/ariym/whisper-node/blob/c72944cfa48f5c74662ff17ee2dc1d5f7624393e/src/whisper.ts#L58 for confirmation of scope.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
whisper-node is a Node.js wrapper that shells out to a compiled whisper.cpp binary, constructing its command line in createCppCommand() as ./main ${getFlags(options)} -m ${modelPathOrName(...)} -f ${filePath} and executing the result through shelljs exec(). Because filePath, language, and modelPath are interpolated into that string without escaping, any shell metacharacters they contain (;, |, &, backticks, newlines, or $() substitution) are interpreted by the underlying POSIX shell rather than treated as literal arguments - the classic CWE-78 OS command injection root cause. The referenced source lines (src/whisper.ts line 8 and line 58 at commit c72944c) show the command construction and flag assembly, and the packaged 1.1.1 build on unpkg reproduces the same behavior. The upstream patch in PR #64 addresses the root cause by adding a shellEscape() helper that wraps each interpolated value in POSIX single quotes and escapes embedded single quotes, and by dropping the previous path.normalize("${filePath}") double-quoting approach for filePath and modelPath. This is a library-level defect: exploitation depends on a host application forwarding untrusted input into these parameters, not on any network listener exposed by whisper-node itself.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Command injection flowing from a typical network-facing app into whisper() yields AV:N/AC:L/PR:N; code execution as the Node process gives C:H/I:H/A:H with scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Whisper-node through 1.1.1 contains an OS command injection vulnerability that allows attackers to execute commands by supplying crafted filePath or whisperOptions.language values to whisper(). Attackers can inject shell metacharacters or $() substitution into the command string built by createCppCommand() and run via shelljs exec() to execute commands with Node.js process privileges.
Articles & Coverage 1
Executive ViewAI
Organizations using the whisper-node npm package (versions up to and including 1.1.1) in Node.js applications that process untrusted input face a critical command-injection risk that could let an attacker execute arbitrary shell commands with the application process's privileges. Because exposure depends on how each application passes data into whisper(), leadership should prioritize identifying affected workloads and enforcing least privilege until a confirmed patched release is deployed. If exploited in an internet-facing or otherwise untrusted context, this flaw could lead to server compromise, data theft, or service disruption.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic
EUVD-2026-101268
GHSA-4wmj-6xhg-gxhm
NVD
CVE.org
EPSS
Exploit-DB