Skip to main content

CVE-2026-59960: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in argos-ci argos-javascript

0
High
VulnerabilityCVE-2026-59960cvecve-2026-59960cwe-78
Published: 09/14/2026 (09/14/2026, 16:59:28 UTC)
Source: CVE Database V5
Vendor/Project: argos-ci
Product: argos-javascript

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.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

argos-ci

argos-javascript

Affected versions
<6.2.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/14/2026, 17:16:36 UTC

Technical Analysis

Argos JavaScript SDK versions before 6.2.1 improperly neutralize special shell characters in CI branch or ref values sourced from GITHUB_HEAD_REF or ARGOS_BRANCH environment variables. These values flow through config.branch and getMergeBaseCommitSha() into gitFetch() and gitMergeBase() functions, which interpolate them into execSync() commands executed by /bin/sh -c. This leads to OS command injection allowing arbitrary commands to run with the CI runner's Argos upload process privileges. The flaw is resolved in Argos core package version 6.2.1.

Potential Impact

Successful exploitation enables attackers to execute arbitrary shell commands on the CI runner with the privileges of the Argos upload process. This can lead to exposure of CI secrets, modification of build artifacts, and full compromise of the CI runner environment.

Mitigation Recommendations

Upgrade to Argos core package version 6.2.1 or later, where this OS command injection vulnerability is fixed. No other mitigations are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-07T18:49:15.608Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6aa8289355bf5e2cf557f785

Added to database: 09/14/2026, 17:02:11 UTC

Last enriched: 09/14/2026, 17:16:36 UTC

Last updated: 09/15/2026, 03:02:56 UTC

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses