{"incident":{"slug":"cline-feb-2026-clinejection-npm","caseId":"BI-2026-027","organization":"Cline","title":"Cline (\"Clinejection\"): a GitHub issue prompt injection stole NPM_RELEASE_TOKEN and shipped cline@2.3.0","shortSummary":"An attacker copied a public prompt-injection PoC against Cline’s Claude issue-triage workflow, poisoned the GitHub Actions cache, stole NPM_RELEASE_TOKEN, and published cline@2.3.0 installing openclaw globally.","lede":"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.","incidentDate":"Feb 17, 2026","incidentDateIso":"2026-02-17","disclosedDate":"Feb 17, 2026","sourceUrl":"https://github.com/cline/cline/security/advisories/GHSA-9ppg-jx86-fqw7","sourceAuthor":"Cline Security Advisory (GHSA-9ppg-jx86-fqw7) and Adnan Khan","vectorFilter":"CI supply chain","timeToDetect":"~8 hours (03:26 AM to 11:30 AM PT, Feb 17, 2026)","detectedBy":"Community developers spotting unauthorized postinstall in cline@2.3.0","initialAccess":{"label":"AI issue-triager prompt injection & cache poison","detail":"Malicious GitHub issue title hijacked Cline’s Claude triage workflow, poisoned Actions cache, and leaked NPM_RELEASE_TOKEN during nightly release","evidence":"confirmed"},"blastRadius":"~4,000 installs of cline@2.3.0 installing openclaw globally","whatItReachedShort":"Cline GitHub Actions cache, nightly release NPM_RELEASE_TOKEN, and cline@2.3.0 on npm (adding postinstall \"npm install -g openclaw@latest\" while leaving dist/cli.mjs unchanged)","whatHeldShort":"Cline VS Code extension, JetBrains plugin, dist/cli.mjs CLI binary, and user source code (no exfiltration payload found in openclaw)","revisions":[{"id":"Rev A","date":"Feb 17, 2026","note":"Published from Cline’s official advisory GHSA-9ppg-jx86-fqw7 and researcher Adnan Khan’s Clinejection technical write-up."}],"bodyMarkdown":"## How they got in\n\n\"Clinejection\" was the first real-world software supply-chain compromise kicked off by prompt-injecting an AI agent running inside CI.\n\nOn 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.\n\nBefore 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`.\n\n## What it reached\n\nAt 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.\n\nOnce 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.\n\n## What held\n\nThe 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.\n\n> **Why this matters for defenders**\n>\n> An LLM reading public GitHub issues is an untrusted parser, not a trusted maintainer. Giving an issue-triage bot shell access on the same repository cache that feeds nightly release workflows turns any public GitHub issue title into a supply-chain exploit.","narrative":{"howTheyGotIn":["\"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`."],"whatItReached":["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."],"whatHeld":["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."],"sideNoteTitle":"Why this matters for defenders","sideNoteParagraphs":["An LLM reading public GitHub issues is an untrusted parser, not a trusted maintainer. Giving an issue-triage bot shell access on the same repository cache that feeds nightly release workflows turns any public GitHub issue title into a supply-chain exploit."]},"claims":[{"group":"How they got in","claim":"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","evidence":"confirmed","source":"Adnan Khan Clinejection postmortem and Cline response"},{"group":"What it reached","claim":"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)","evidence":"confirmed","source":"Cline Security Advisory GHSA-9ppg-jx86-fqw7, Feb 17, 2026"},{"group":"What held","claim":"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","evidence":"confirmed","source":"Cline Security Advisory GHSA-9ppg-jx86-fqw7, Feb 17, 2026"}],"diagram":{"label":"How a prompt injection in a GitHub issue poisoned Cline’s Actions cache and stole NPM_RELEASE_TOKEN","zones":[{"id":"ext","label":"Public GitHub issue","kind":"boundary","lane":0},{"id":"ci","label":"Cline GitHub Actions","kind":"boundary","lane":1},{"id":"reg","label":"npm registry","kind":"boundary","lane":2},{"id":"safe","label":"IDE marketplaces","kind":"isolated","lane":2}],"nodes":[{"id":"cl-iss","zone":"ext","name":"Poisoned issue title","detail":"Prompt injection payload","kind":"attacker","ev":"confirmed","at":0,"when":"Feb 2026","steps":[1],"ctl":["cl-k1"],"story":"Copying researcher Adnan Khan’s mirror PoC (\"Clinejection\"), a separate actor opened a GitHub issue on cline/cline whose title contained prompt-injection instructions."},{"id":"cl-bot","zone":"ci","name":"Claude triage workflow","detail":"Ran shell & poisoned cache","kind":"compromised","ev":"confirmed","at":1,"when":"Feb 2026","steps":[1,2],"ctl":["cl-k2"],"story":"Cline’s automated Claude issue-triage bot processed the untrusted title with shell-capable tools, executing attacker commands that poisoned the shared GitHub Actions cache."},{"id":"cl-rel","zone":"ci","name":"Nightly release job","detail":"Leaked NPM_RELEASE_TOKEN","kind":"compromised","ev":"confirmed","at":2,"when":"Feb 17, 2026","steps":[2,3],"ctl":["cl-k3"],"story":"When Cline’s privileged nightly release workflow restored the poisoned Actions cache, the injected payload exfiltrated the static NPM_RELEASE_TOKEN secret."},{"id":"cl-npm","zone":"reg","name":"cline@2.3.0 on npm","detail":"Global openclaw install","kind":"compromised","ev":"confirmed","at":3,"when":"Feb 17, 03:26–11:30 PT","steps":[3],"story":"At 03:26 AM PT on Feb 17, the attacker published cline@2.3.0 adding a postinstall hook to run npm install -g openclaw@latest (~4,000 downloads before deprecation at 11:30 AM PT)."},{"id":"cl-safe","zone":"safe","name":"VS Code & JetBrains","detail":"dist/cli.mjs unchanged","kind":"isolated","ev":"confirmed","at":0,"when":"Not reached","story":"Cline’s VS Code and JetBrains extensions were distributed through separate marketplace pipelines and remained untouched, and dist/cli.mjs inside 2.3.0 matched clean 2.2.3."}],"edges":[{"id":"cle1","from":"cl-iss","to":"cl-bot","kind":"attack","step":1},{"id":"cle2","from":"cl-bot","to":"cl-rel","kind":"attack","step":2},{"id":"cle3","from":"cl-rel","to":"cl-npm","kind":"attack","step":3}],"steps":[{"n":1,"time":"Feb 9–17, 2026","short":"Issue prompt inject","text":"Untrusted GitHub issue title hijacks Claude triage bot in GitHub Actions","say":"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."},{"n":2,"time":"Feb 17, 2026","short":"Cache -> token","text":"Compromised triage job poisons Actions cache read by nightly release workflow","say":"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."},{"n":3,"time":"Feb 17, 03:26–11:30 PT","short":"8h npm window","text":"Unauthorized cline@2.3.0 installs openclaw globally before v2.4.0 and OIDC fix","say":"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."}],"controls":[{"id":"cl-k1","step":1,"kind":"control","nodeId":"cl-iss","name":"Sandbox AI CI bots","tag":"Stops step 1","long":"Never grant shell execution, file writes, or cache-write access to LLM workflows that read untrusted GitHub issues, comments, or PR titles."},{"id":"cl-k2","step":2,"kind":"control","nodeId":"cl-bot","name":"Isolate release caches","tag":"Stops step 2","long":"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."},{"id":"cl-k3","step":3,"kind":"control","nodeId":"cl-rel","name":"Use npm OIDC provenance","tag":"Stops step 3","long":"Replace static NPM_RELEASE_TOKEN secrets with short-lived GitHub Actions OIDC Trusted Publishing gated by protected release environments."}],"detectedAt":{"time":"Feb 17, 2026 (11:23 AM PT clean v2.4.0; 11:30 AM PT deprecated)","short":"Feb 17 (8h)","text":"Community reports flagged the unexpected openclaw postinstall; Cline shipped clean v2.4.0 at 11:23 AM PT, deprecated 2.3.0 at 11:30 AM PT, and migrated publishing to GitHub Actions OIDC."}},"plate":{"W":784,"H":380,"label":"How a prompt injection in a GitHub issue poisoned Cline’s Actions cache and stole NPM_RELEASE_TOKEN","zones":[{"id":"ext","label":"Public GitHub issue","kind":"boundary","x":8,"y":16,"w":227,"h":110},{"id":"ci","label":"Cline GitHub Actions","kind":"boundary","x":273,"y":16,"w":247,"h":212},{"id":"reg","label":"npm registry","kind":"boundary","x":558,"y":16,"w":218,"h":110},{"id":"safe","label":"IDE marketplaces","kind":"isolated","x":558,"y":146,"w":218,"h":110}],"nodes":[{"id":"cl-iss","name":"Poisoned issue title","detail":"Prompt injection payload","kind":"attacker","ev":"confirmed","x":20,"y":52,"w":203,"at":0,"story":"Copying researcher Adnan Khan’s mirror PoC (\"Clinejection\"), a separate actor opened a GitHub issue on cline/cline whose title contained prompt-injection instructions.","when":"Feb 2026","steps":[1],"ctl":["cl-k1"]},{"id":"cl-bot","name":"Claude triage workflow","detail":"Ran shell & poisoned cache","kind":"compromised","ev":"confirmed","x":285,"y":52,"w":223,"at":1,"story":"Cline’s automated Claude issue-triage bot processed the untrusted title with shell-capable tools, executing attacker commands that poisoned the shared GitHub Actions cache.","when":"Feb 2026","steps":[1,2],"ctl":["cl-k2"]},{"id":"cl-rel","name":"Nightly release job","detail":"Leaked NPM_RELEASE_TOKEN","kind":"compromised","ev":"confirmed","x":285,"y":154,"w":223,"at":2,"story":"When Cline’s privileged nightly release workflow restored the poisoned Actions cache, the injected payload exfiltrated the static NPM_RELEASE_TOKEN secret.","when":"Feb 17, 2026","steps":[2,3],"ctl":["cl-k3"]},{"id":"cl-npm","name":"cline@2.3.0 on npm","detail":"Global openclaw install","kind":"compromised","ev":"confirmed","x":571,"y":52,"w":191,"at":3,"story":"At 03:26 AM PT on Feb 17, the attacker published cline@2.3.0 adding a postinstall hook to run npm install -g openclaw@latest (~4,000 downloads before deprecation at 11:30 AM PT).","when":"Feb 17, 03:26–11:30 PT","steps":[3]},{"id":"cl-safe","name":"VS Code & JetBrains","detail":"dist/cli.mjs unchanged","kind":"isolated","ev":"confirmed","x":570,"y":182,"w":194,"at":0,"story":"Cline’s VS Code and JetBrains extensions were distributed through separate marketplace pipelines and remained untouched, and dist/cli.mjs inside 2.3.0 matched clean 2.2.3.","when":"Not reached"}],"edges":[{"id":"cle1","kind":"attack","step":1,"pts":[[223,81],[285,81]]},{"id":"cle2","kind":"attack","step":2,"pts":[[397,110],[397,154]]},{"id":"cle3","kind":"attack","step":3,"pts":[[508,183],[540,183],[540,81],[571,81]]}],"balloons":{"1":[254,81],"2":[397,132],"3":[540,132]},"noroute":[{"x1":520,"x2":558,"y":188,"label":"No route"}],"bps":[{"id":"cl-k1","step":1,"kind":"control","at":[254,81],"name":"Sandbox AI CI bots","tag":"Stops step 1","lead":[[254,70],[254,53],[266,53]],"lx":272,"ly":57,"anchor":"start","long":"Never grant shell execution, file writes, or cache-write access to LLM workflows that read untrusted GitHub issues, comments, or PR titles.","nodeId":"cl-iss"},{"id":"cl-k2","step":2,"kind":"control","at":[397,132],"name":"Isolate release caches","tag":"Stops step 2","lead":[[397,143],[397,154],[409,154]],"lx":415,"ly":158,"anchor":"start","long":"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.","nodeId":"cl-bot"},{"id":"cl-k3","step":3,"kind":"control","at":[540,132],"name":"Use npm OIDC provenance","tag":"Stops step 3","lead":[[540,121],[540,104],[528,104]],"lx":522,"ly":108,"anchor":"end","long":"Replace static NPM_RELEASE_TOKEN secrets with short-lived GitHub Actions OIDC Trusted Publishing gated by protected release environments.","nodeId":"cl-rel"}],"steps":[{"n":1,"time":"Feb 9–17, 2026","short":"Issue prompt inject","text":"Untrusted GitHub issue title hijacks Claude triage bot in GitHub Actions","say":"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."},{"n":2,"time":"Feb 17, 2026","short":"Cache -> token","text":"Compromised triage job poisons Actions cache read by nightly release workflow","say":"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."},{"n":3,"time":"Feb 17, 03:26–11:30 PT","short":"8h npm window","text":"Unauthorized cline@2.3.0 installs openclaw globally before v2.4.0 and OIDC fix","say":"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."}],"stripRows":[{"id":"sr-cl-iss","nodeId":"cl-iss","lineStyle":"solid"},{"id":"sr-step-1","nodeId":"cl-bot","step":1,"lineStyle":"solid","bpIds":["cl-k1"]},{"id":"sr-step-2","nodeId":"cl-rel","step":2,"lineStyle":"solid","bpIds":["cl-k2"]},{"id":"sr-step-3","nodeId":"cl-npm","step":3,"lineStyle":"none","bpIds":["cl-k3"]}],"detectedAt":{"time":"Feb 17, 2026 (11:23 AM PT clean v2.4.0; 11:30 AM PT deprecated)","short":"Feb 17 (8h)","text":"Community reports flagged the unexpected openclaw postinstall; Cline shipped clean v2.4.0 at 11:23 AM PT, deprecated 2.3.0 at 11:30 AM PT, and migrated publishing to GitHub Actions OIDC."}},"codeArtifacts":[{"id":"cl-cleanup","filename":"remediate-cline-230.sh","language":"sh","description":"Check installed Cline CLI version and remove unintended global openclaw installations.","code":"#!/usr/bin/env bash\nset -euo pipefail\nnpm list -g cline openclaw --depth=0 || true\n# If cline@2.3.0 was installed on Feb 17, 2026:\n# npm install -g cline@latest && npm uninstall -g openclaw\n# cline --version  # verify >= 2.4.0\n"}],"reproductionLab":{"title":"AI workflow & cache-isolation check","summary":"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.","bundleMeta":"Shell audit snippet, MIT license","safetyNote":"Read-only inspection of global npm packages and workflow YAML.","commands":"bash remediate-cline-230.sh\ngrep -rnE \"issues:|issue_comment:\" .github/workflows/ || true\n"},"iocs":[{"type":"Package","value":"cline@2.3.0 (npm)","note":"Unauthorized publish live Feb 17, 2026 from 03:26 AM to 11:30 AM PT","evidence":"confirmed"},{"type":"Script","value":"\"postinstall\": \"npm install -g openclaw@latest\"","note":"Unauthorized lifecycle hook added to package.json inside cline@2.3.0","evidence":"confirmed"}],"publishedAt":"2026-02-17T22:00:00Z","origin":"editorial"}}