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.

Public GitHub issueCline GitHub Actionsnpm registryStayed safePoisoned issue titlePrompt injection payloadClaude triage workflowRan shell & poisoned cacheNightly release jobLeaked NPM_RELEASE_TOKENcline@2.3.0 on npmGlobal openclaw installVS Code & JetBrainsdist/cli.mjs unchanged123
1Feb 9–17, 2026

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.

ConfirmedWhere to stop it: sandbox AI CI bots
  1. Feb 9–17, 2026

    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 titletoClaude triage workflow
  2. Feb 17, 2026

    Shell 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 workflowtoNightly release job
  3. Feb 17, 03:26–11:30 PT

    Between 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 jobtocline@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.sh

Check 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.0

Appendix

Evidence log: what’s confirmed and what’s withheld3 claims
ClaimStatusSource
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_TOKENConfirmedAdnan 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)ConfirmedCline 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 unaffectedConfirmedCline Security Advisory GHSA-9ppg-jx86-fqw7, Feb 17, 2026
Indicators of compromise2 indicators
  • cline@2.3.0 (npm)

  • "postinstall": "npm install -g openclaw@latest"

Reproduction labShell audit snippet, MIT license

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.

Safety note: Read-only inspection of global npm packages and workflow YAML.

bash remediate-cline-230.sh
grep -rnE "issues:|issue_comment:" .github/workflows/ || true
Cline ("Clinejection"): a GitHub issue prompt injection stole NPM_RELEASE_TOKEN and shipped cline@2.3.0 | breachidents