Argos JavaScript: CI Branch Name OS Command Injection in @argos-ci/core
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
Argos JavaScript provides official Argos SDKs for JavaScript. Prior to Argos core package version 6.2.1, attacker-controlled CI branch or ref values from GITHUB_HEAD_REF or ARGOS_BRANCH can flow through config.branch and getMergeBaseCommitSha() when hasRemoteContentAccess is false. The gitFetch() and gitMergeBase() functions in packages/core/src/ci-environment/git.ts interpolate these values into execSync() command strings executed by /bin/sh -c, so shell metacharacters in a pull-request branch name can execute arbitrary commands with the Argos upload process privileges on the CI runner. Successful exploitation can expose CI secrets, alter build artifacts, or compromise the runner. This issue is fixed in Argos core package version 6.2.1.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| argos-ci | argos-javascript | before 6.2.1 | 6.2.1 | Patch available | CNA |
| — | @argos-ci/core (npm) | before 6.2.1 | 6.2.1 | Patch available | GHSA-4x45-gxvp-6283 |
- argos-javascript Vendorargos-ci Affected before 6.2.1 Fixed in 6.2.1 Patch available CNA
- @argos-ci/core (npm) Vendor— Affected before 6.2.1 Fixed in 6.2.1 Patch available GHSA-4x45-gxvp-6283
Remediation
- Fix · CNA argos-javascript (argos-ci) Fixed in 6.2.1
- Fix · GHSA-4x45-gxvp-6283 @argos-ci/core (npm) Fixed in 6.2.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-59960
- 2026-10-03 Alias added: GHSA-4x45-gxvp-6283
- 2026-10-25 EPSS moved to the 50th–90th percentile
References
Other 5
- https://github.com/argos-ci/argos-javascript/security/advisories/GHSA-4x45-gxvp-6283
- https://github.com/argos-ci/argos-javascript/pull/319
- https://github.com/argos-ci/argos-javascript/commit/8355f3af3be3f4fe361d58a688d21535cf672717
- https://github.com/argos-ci/argos-javascript/releases/tag/@argos-ci/[email protected]
- https://github.com/argos-ci/argos-javascript
Sources
- CVE-2026-59960 · CVE Program
- CVE-2026-59960 · NVD
- FIRST EPSS
- GHSA-4x45-gxvp-6283 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences