Skip to main content

JS Recon EUVDEUVD-2026-67859

| CVE-2026-55378 CRITICAL
OS Command Injection (CWE-78)
2026-08-28 GitHub_M
9.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Fork repo and craft branch/fork name with shell metacharacters
  2. Delivery
    Open pull request against target
  3. Exploit
    Workflow interpolates name into gh shell command
  4. Execution
    Command injection executes on Actions runner
  5. Impact
    Abuse GITHUB_TOKEN pull-requests write access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the vulnerable pr_checker.yml PR Branch Checker workflow be present and enabled (versions 1.2.1-beta.1 through pre-1.3.1-beta.2) and that the repository accepts pull requests from external forks - the default for a public project. The attacker must control a branch name or fork repository name and populate it with shell metacharacters, which are permitted in Git branch names and GitHub fork names. Per the CVSS vector (PR:N/UI:N), no authentication to the target and no maintainer interaction are needed - merely opening the PR triggers the workflow. Limiting factors: the impact is bounded to the GitHub Actions runner and the GITHUB_TOKEN's pull-requests write scope, and organizations that require manual approval before running workflows on first-time-contributor PRs, or that have already upgraded to 1.3.1-beta.2, are not exposed.

Impact

The signals point to a genuine, high-priority CI/CD supply-chain risk rather than an inflated CVSS number. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, VC:H/VI:H, score 9.3) is consistent with the description: a remote, unauthenticated outsider simply opens a PR and needs no victim interaction, and it is highly automatable. What tempers the raw score is scope: execution is confined to the Actions runner and the GITHUB_TOKEN is limited to pull-requests write (not full repo admin or secrets:write), so the immediate blast radius is PR manipulation and whatever other secrets that specific workflow exposes - not guaranteed full repository takeover. There is no EPSS value, no POC, and no KEV entry in the input, so exploitation is currently theoretical-but-easy rather than observed; the absence of active-exploitation evidence should not lower urgency for any organization that has forked, contributes to, or self-hosts runners for this project. Because the affected product is a niche open-source security tool, real-world exposure is narrow but acute for its maintainers and downstream forks.

Exploit ScenarioDerived

An attacker forks the js-recon repository, creates a branch whose name contains shell metacharacters (for example a name embedding a $(...) or backtick command substitution), and opens a pull request against the project. When the PR Branch Checker workflow fires, it interpolates the malicious branch/fork name into the gh pr comment shell command, executing the attacker's commands on the runner with the workflow's pull-requests-write GITHUB_TOKEN. No POC is published, but the technique is a well-documented Actions injection pattern requiring only a public PR.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 28, 2026

Command injection in JS Recon (js-recon) versions 1.2.1-beta.1 through 1.3.1-beta.2 lets anyone who opens a pull request run arbitrary commands on the project's GitHub Actions runner. The vulnerable PR Branch Checker workflow (.github/workflows/pr_checker.yml) interpolates the attacker-controlled branch name and fork repository name into a shell 'gh pr comment' command without sanitization. No public exploit is identified at time of analysis and it is not in CISA KEV, but the flaw is trivially reachable by external contributors and executes with the workflow's write-capable GITHUB_TOKEN.

RemediationAI

Vendor-released patch: 1.3.1-beta.2 - upgrade the workflow to this release (commit 447876c), which removes the interpolation by dropping the BRANCH_NAME and SOURCE_REPO environment variables and hardcoding a static comment body that no longer echoes the source repo or branch. For forks or repositories that cannot immediately pull the fix, apply the standard GitHub Actions script-injection mitigations: stop referencing ${{ github.head_ref }} and ${{ github.event.pull_request.head.repo.full_name }} directly inside run: shell commands, and if the values are truly needed, pass them through intermediate env: variables and quote them so the shell treats them as data (trade-off: still safer to avoid echoing them at all). Additionally, constrain the workflow's permissions to the minimum (or use pull_request instead of pull_request_target so untrusted code runs without write-scoped tokens) - the trade-off is that legitimate auto-commenting on PRs may lose the ability to post. See the advisory GHSA-w9cj-mg3x-qjm4 and PR #121 for the exact diff.

Affected VersionsENISA

js-recon 1.2.1-beta.1, < 1.3.1-beta.2

Affected Packages

euvd js_recon_1_2_1_beta_1 fix: 1.3.1-beta.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is a GitHub Actions CI workflow, not the recon tool's runtime code. github.head_ref (the PR source branch name) and github.event.pull_request.head.repo.full_name (the fork's owner/repo) are attacker-controlled strings that GitHub copies verbatim into environment variables BRANCH_NAME and SOURCE_REPO, which are then embedded inside a double-quoted 'gh pr comment --body "...$SOURCE_REPO:$BRANCH_NAME..."' shell command in a run: block. This is a textbook CWE-78 OS Command Injection: because branch and fork names permit shell metacharacters (backticks, $(), ;, etc.), they break out of the string literal and are executed by the runner's shell. It is the same class of bug as the well-known 'github.head_ref script injection' pattern in GitHub Actions.

Know when Js Recon gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 9.1 CRITICAL

Any outsider opening a PR triggers it with no auth or interaction (AV:N/AC:L/PR:N/UI:N); runner code execution with a write-scoped token yields high confidentiality/integrity but no availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 28, 2026 - 21:17 EUVD
CVE Published
Aug 28, 2026 - 18:15 cve.org
CRITICAL 9.3

DescriptionCVE.org

JS Recon is a JavaScript enumeration and SAST tool. From 1.2.1-beta.1 until 1.3.1-beta.2, the PR Branch Checker workflow in .github/workflows/pr_checker.yml places github.head_ref and github.event.pull_request.head.repo.full_name into BRANCH_NAME and SOURCE_REPO and interpolates those untrusted values into a shell gh pr comment command. A remote user who opens a pull request can use shell metacharacters in a branch or fork name to execute commands in the GitHub Actions runner with the workflow's GITHUB_TOKEN, which has pull-requests write permission. This issue is fixed in version 1.3.1-beta.2.

Technical POC Analysis

CWE-78: OS Command Injection.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

JS Recon (versions 1.2.1-beta.1 through 1.3.1-beta.2) is vulnerable to command injection that permits arbitrary code execution on your CI/CD pipeline via pull request from external attackers. While no public exploit has been identified at time of analysis, the vulnerability poses immediate risk given its exploitability and access to sensitive build privileges and secrets. No vendor-released patch is currently available.

Business Impact: Severe
Compensating Controls

Since no vendor-released patch is currently available, immediately disable the PR Branch Checker workflow or restrict execution to maintainer-controlled branches only via GitHub's branch protection rules. Implement mandatory code review and approval gates for all workflow runs. Rotate all GitHub Actions secrets, personal access tokens, and environment variables immediately. Require OIDC token exchange for third-party service authentication instead of long-lived credentials. Monitor GitHub Actions audit logs and webhook events for suspicious pull request activity. Disable all non-essential workflows until the project releases a patched version.

Threat Intelligence Overview

EPSS Score
0.6%
Top 54% exploitable
Prevalence
Low
niche open-source JavaScript recon/SAST tool, small security-researcher user base
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy