Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessFork repo and craft branch/fork name with shell metacharacters
-
DeliveryOpen pull request against target
-
ExploitWorkflow interpolates name into gh shell command
-
ExecutionCommand injection executes on Actions runner
-
ImpactAbuse 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-67859
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB