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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-09-10T22:34:17.000Z
- Modified: 2026-09-30T17:51:56.193Z
- Also known as: GHSA-4x45-gxvp-6283
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- argos-ci argos-javascript: < 6.2.1
- @argos-ci/core (npm): before 6.2.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/argos-ci/argos-javascript/security/advisories/GHSA-4x45-gxvp-6283> (web)
- <https://github.com/argos-ci/argos-javascript/pull/319>
- <https://github.com/argos-ci/argos-javascript/commit/8355f3af3be3f4fe361d58a688d21535cf672717> (web)
- <https://github.com/argos-ci/argos-javascript/releases/tag/@argos-ci/core@6.2.1> (web)
- <https://github.com/argos-ci/argos-javascript> (package)

## Sources

- CVE List: [CVE-2026-59960](https://www.cve.org/CVERecord?id=CVE-2026-59960), CVE Terms of Use, modified 2026-09-14
- GitHub Advisory Database: [GHSA-4x45-gxvp-6283](https://github.com/advisories/GHSA-4x45-gxvp-6283), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59960](https://nvd.nist.gov/vuln/detail/CVE-2026-59960), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-59960 · Whole record: https://cve.day/CVE-2026-59960.json · Rebuilt by cve.day 2026-11-25T22:59:38.314Z
