Cline ("Clinejection"): a GitHub issue prompt injection stole NPM_RELEASE_TOKEN and shipped cline@2.3.0
On February 17, 2026, an unauthorized party published cline@2.3.0 to npm with a single added postinstall line that globally installed openclaw@latest for roughly eight hours (~4,000 downloads). Researcher Adnan Khan had demonstrated the root cause ("Clinejection") days earlier on a mirror repo: prompt-injecting Cline’s automated Claude GitHub issue triager let an attacker poison the Actions cache read by the nightly release workflow and steal NPM_RELEASE_TOKEN. Cline’s VS Code and JetBrains extensions were untouched.
How they got in
"Clinejection" was the first real-world software supply-chain compromise kicked off by prompt-injecting an AI agent running inside CI.
On February 9, 2026, security researcher Adnan Khan published a proof-of-concept he had tested strictly on a mirror of the Cline repository. Cline ran an automated GitHub Actions workflow that fed incoming GitHub issues to Claude for triage, with shell-capable tooling enabled. An attacker could slip prompt-injection instructions into an ordinary GitHub issue title, trick the AI triage bot into executing commands, and poison the GitHub Actions cache.
Before the pipeline was fully locked down, a separate, opportunistic actor found Khan's public PoC on his test repository and fired it directly at cline/cline. When Cline's privileged nightly release workflow later ran and restored the poisoned cache, it leaked NPM_RELEASE_TOKEN.
An opportunistic actor replicates the Clinejection PoC on cline/cline, feeding a prompt injection inside a GitHub issue title to the automated Claude triage workflow.
Poisoned issue titleClaude triage workflowShell commands run by the hijacked AI triage bot poison the shared GitHub Actions cache; the subsequent nightly release workflow loads it and leaks NPM_RELEASE_TOKEN.
Claude triage workflowNightly release jobBetween 03:26 AM and 11:30 AM PT, cline@2.3.0 triggers npm install -g openclaw@latest on roughly 4,000 machines until Cline revokes the token, ships v2.4.0, and enables OIDC.
Nightly release jobcline@2.3.0 on npm
Figure 1. How the attack unfolded, and what stayed isolated. Select any step or box for details.
What they took
At 03:26 AM PT on February 17, 2026, the attacker used the stolen token to publish cline@2.3.0 to npm. Only one file differed from clean cline@2.2.3: package.json now carried "postinstall": "npm install -g openclaw@latest", silently installing an unrelated open-source AI agent framework globally on roughly 4,000 developer machines during an eight-hour window.
Once community developers spotted the unauthorized hook, Cline revoked the leaked token, published clean cline@2.4.0 at 11:23 AM PT, deprecated 2.3.0 at 11:30 AM PT, removed the vulnerable AI triage workflows, and moved npm publishing to GitHub Actions OIDC provenance.
What stayed safe
The blast stopped at the npm CLI wrapper. Cline confirmed dist/cli.mjs inside 2.3.0 was byte-for-byte identical to 2.2.3, no user source code was exfiltrated, and Cline's flagship VS Code extension and JetBrains plugin were published through completely separate channels and stayed clean.
How to defend against this
Sandbox AI CI bots
Never grant shell execution, file writes, or cache-write access to LLM workflows that read untrusted GitHub issues, comments, or PR titles.
Isolate release caches
Keep release and publish workflows strictly separated from PR or issue-triage caches so a low-trust automation job can never poison a privileged release build.
Use npm OIDC provenance
Replace static NPM_RELEASE_TOKEN secrets with short-lived GitHub Actions OIDC Trusted Publishing gated by protected release environments.
remediate-cline-230.shCheck installed Cline CLI version and remove unintended global openclaw installations.
#!/usr/bin/env bashset -euo pipefailnpm list -g cline openclaw --depth=0 || true# If cline@2.3.0 was installed on Feb 17, 2026:# npm install -g cline@latest && npm uninstall -g openclaw# cline --version # verify >= 2.4.0Appendix
Evidence log: what’s confirmed and what’s withheld
| Claim | Status | Source |
|---|---|---|
| Researcher Adnan Khan demonstrated prompt injection against Cline’s Claude issue-triage workflow on a private mirror (Feb 9); a separate actor copied the PoC against cline/cline to poison the Actions cache and steal NPM_RELEASE_TOKEN | Confirmed | Adnan Khan Clinejection postmortem and Cline response |
| At 03:26 AM PT on February 17, 2026, an unauthorized party published cline@2.3.0 adding "postinstall": "npm install -g openclaw@latest", live until deprecation at 11:30 AM PT (~4,000 downloads) | Confirmed | Cline Security Advisory GHSA-9ppg-jx86-fqw7, Feb 17, 2026 |
| The CLI binary dist/cli.mjs was identical to clean v2.2.3, openclaw itself is an unrelated legitimate open-source package, and Cline’s VS Code and JetBrains extensions were unaffected | Confirmed | Cline Security Advisory GHSA-9ppg-jx86-fqw7, Feb 17, 2026 |
Indicators of compromise
cline@2.3.0 (npm)"postinstall": "npm install -g openclaw@latest"
Reproduction lab
Audit every GitHub Actions workflow triggered by issues or issue_comment to verify no AI agent has bash tools or write access to caches shared with release jobs.
bash remediate-cline-230.sh
grep -rnE "issues:|issue_comment:" .github/workflows/ || true