---
id: CVE-2026-59960
title: Argos JavaScript provides official Argos SDKs for JavaScript
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
  getMergeBaseComm…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
vendor: argos-ci
product: argos-javascript
affected:
  - argos-javascript < 6.2.1
patched:
  - '@argos-ci/core 6.2.1'
published: '2026-09-14'
updated: '2026-09-14'
sourceUpdated: '2026-09-14T20:16:48.687'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-59960'
references:
  - url: >-
      https://github.com/argos-ci/argos-javascript/commit/8355f3af3be3f4fe361d58a688d21535cf672717
    label: security-advisories@github.com
  - url: 'https://github.com/argos-ci/argos-javascript/pull/319'
    label: security-advisories@github.com
  - url: >-
      https://github.com/argos-ci/argos-javascript/releases/tag/@argos-ci/core@6.2.1
    label: security-advisories@github.com
  - url: >-
      https://github.com/argos-ci/argos-javascript/security/advisories/GHSA-4x45-gxvp-6283
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-4x45-gxvp-6283'
tags:
  - nvd
  - cve.org
  - ghsa
  - npm
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-14T19:21:23.518385Z'
aliases:
  - GHSA-4x45-gxvp-6283
ecosystem: npm
ingestedAt: '2026-09-10T23:08:11.245Z'
epss: 0.00638
epssPercentile: 0.48366
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-59960)

Affected packages:

- `@argos-ci/core <= 6.2.0`

Patched in:

- `@argos-ci/core 6.2.1`

Source: https://github.com/advisories/GHSA-4x45-gxvp-6283
