AI Toolkit · For engineers

Clinejection: the AI issue bot, a shared cache and Cline’s npm token

In February 2026 an AI issue-triage agent could open a path from any GitHub account to Cline’s release tokens, and an unauthorised npm release followed. What is confirmed, what is Khan’s claim, and a five-point checklist.

Cline is an AI coding assistant that runs inside editors such as VS Code and also as a command-line tool installed from npm, the public package registry for JavaScript. On 17 February 2026 at 3:26 AM Pacific, someone who was not Cline published a new version of that command-line tool, cline@2.3.0, using a publishing token that should have been revokedSource 1. It stayed live until a fixed version replaced it about 8 hours later.

The release did one thing: it added an install step that put another open-source tool, openclaw (an AI agent tool), on every machine that installed it. The advisory says openclaw is not maliciousSource 1. Cline’s post-mortem does not say how the token was takenSource 2. The researcher who found the flaw, Adnan Khan, named a chain of weaknesses Clinejection, starting with a GitHub issue title read by an AI agent. He says whoever published used his proof of concept against Cline, but also writes that it is unclear whether the triage workflow was their first way inSource 3.

Does it affect you? Only if you installed the Cline command-line tool from npm, or had CI that auto-installs the latest version, between 3:26 and 11:30 AM Pacific on 17 February. The editor extensions were not affectedSource 1. Check with cline --version (you want 2.4.0 or later). Our addition: npm ls -g openclaw shows whether openclaw is installed, and the advisory’s removal command is npm uninstall -g openclaw. If you run an AI agent on your own GitHub issues, the rest of this post is your checklist.

§1

An issue title could become instructions for an agent with a shell

On 21 December 2025, Cline added a GitHub Actions workflow (an automated job that runs on GitHub’s servers) to triage new issues. It used claude-code-action with the Bash tool, which lets the agent run shell commands, and any GitHub user could trigger itSource 2.

Khan found that the issue title was placed directly into the agent’s prompt, and that the workflow was open to every GitHub account through its allowed_non_write_users settingSource 3. Text from a stranger therefore reached a model that could execute commands. This is prompt injection: the model cannot reliably tell the instructions it was given from the data it was asked to read. Khan reproduced the first step on a mirror of the repository with his own API key. His write-up shows the technique; this post does not reproduce it.

§2

The shared cache is how Khan says triage reached release

Running code in the triage job should have been a dead end, because that job had little power. Khan’s point is that it was not isolated. The triage and nightly release workflows (the nightly one is a scheduled build that publishes pre-release versions) shared one Actions cache, a store CI jobs use to reuse downloaded dependencies. The nightly job restored cached node_modules folders, and held publishing tokens for the VS Code Marketplace, OpenVSX (the open extension registry) and npmSource 3.

Cache entries cannot be edited, but GitHub evicts old ones once a repository passes 10 GB. Khan describes filling the cache so the real entries are pushed out, then writing poisoned ones under the same keys, so the next nightly build runs the attacker’s code next to the tokens. He adds that the nightly and production CLI shared one npm package, so a nightly token could publish a production releaseSource 3.

Five-step chain Khan described: a GitHub issue title reaches an AI triage agent with a shell; the shared Actions cache is poisoned; the nightly release job exposes npm, VS Code and OpenVSX tokens; the wrong npm token is rotated on 9 February; on 17 February cline@2.3.0 is published, live about 8 hours. No source confirms the token was taken this way.
Image description

Title: Five steps Khan described, and the release that followed. Subtitle: Cline, Cline, December 2025 to February 2026. Step 1, Anyone files an issue: from 21 December 2025 a triage agent reads every issue title, for any GitHub account, with a shell tool. Step 2, Agent runs code: injected text could make the agent run commands on the CI runner. Step 3, highlighted, Cache is shared: triage and nightly release jobs share one cache, so a poisoned entry could run beside the npm, VS Code Marketplace and OpenVSX tokens. Step 4, Wrong token rotated: 9 February 2026, disclosure; Cline deletes the wrong npm token and the exposed one stays valid. Step 5, Release published: 17 February 2026, 3:26 AM Pacific, cline@2.3.0 adds an install step; fixed 2.4.0 at 11:23 AM; about 8 hours live. Note under the strip: no source confirms the token was taken through this chain. Green box, What breaks the chain: Who can trigger the agent: write access only. No shell for it. No cache shared with publishing. No long-lived publish token. Rotation proven by test. Sources: Adnan Khan (9 February 2026); Cline post-mortem (24 February 2026); GitHub advisory GHSA-9ppg-jx86-fqw7 (17 February 2026).

Fig. 1 — The chain Khan described, and the release that followed it. No source confirms the 17 February token was taken this way. Sources: Adnan Khan, 9 Feb 2026; Cline post-mortem, 24 Feb 2026; GitHub advisory GHSA-9ppg-jx86-fqw7.
§3

Five weeks of silence, then a wrong token

Khan reported the flaw privately on 1 January 2026, then chased it by email and social media until 7 February with no substantive reply. He published on 9 FebruarySource 3. He also says the nightly and npm publish workflows showed suspicious failures between 31 January and 3 February that looked like cache tampering; he does not know who caused themSource 3.

Cline says the workflows were gone within 30 minutes of disclosure (Khan puts the fix at under an hour) and rotation began. But the npm token it deleted was the wrong one, so the exposed one stayed validSource 2. The post-mortem says the check relied on npm’s organisation-level token page, which did not show the exposed token. On 10 February Khan received an email from an anonymous sender claiming valid npm and OpenVSX credentials, and passed it on to Cline; this is an unverified claimSource 3. Eight days after disclosure, on 17 February, cline@2.3.0 appeared, with a version number and a postinstall script as its only changeSource 1.

Khan says a different actor found his proof of concept on a test mirror and used it against Cline, and that he did not test on Cline’s repositorySource 3. Cline’s post-mortem gives no download count for 2.3.0 and does not say how the token was takenSource 2. We found no primary source for either.

§4

What the incident proves and what it does not

It shows that an agent reading public text and holding a shell is a way into a pipeline. It does not prove a mass compromise: the binary matched 2.2.3, the advisory rates it Low, and Cline says audits of all four distribution channels from 21 December to 17 February found no other unauthorised releasesSource 2. That audit is self-reported, and Cline also told Khan on 11 February that an earlier audit had found nothing, six days before this publishSource 3.

The harmless result is a property of what this publisher chose to do, not of the pipeline. The same token could have shipped anything. Cline’s own post-mortem blames the agent’s shell; we would add that removing the agent alone leaves the shared cache and the long-lived token for the next foothold. Reasonable people weigh the agent more heavily.

§5

How to check your own repositories today

Search your workflows for any AI action or script. For each one, ask these questions. Cline’s own fixes answer most of themSource 2.

  • Who can trigger it? Look for settings that let any account run it, such as allowed_non_write_users, and for issues or pull_request_target triggers. Limit to people with write access.
  • What tools does the agent have? Remove Bash, Write and Edit from jobs that read untrusted text. Cline now says future automation will be read-only with no shellSource 2.
  • Does it share a cache with anything that publishes? Stop restoring caches in jobs that hold publish secrets, as Cline did, and give nightly builds their own credentials and package namesSource 3.
  • Is there a long-lived publish token? Publish with npm trusted publishing (OIDC, short-lived identity from your CI) so no long-lived token exists. Cline says it now does, with provenance attestations on each versionSource 2.
  • Did the rotation work? Test that the old credential now fails, instead of trusting a dashboard.

For people who install tools rather than publish them, Khan’s advice at the time was to pin a known-good version and avoid updating the CLI until Cline confirmed a fixSource 3. The 8-hour window shows why.

  1. Installed the Cline CLI on 17 February? Run cline --version (2.4.0 or later) and npm ls -g openclaw.
  2. Agents that read public text get no shell Read-only tools, and only people with write access can trigger them.
  3. No shared cache with publish jobs Nightly and production use separate credentials.
  4. No long-lived publish tokens Use npm trusted publishing (OIDC) where the registry supports it.
  5. Prove a rotation worked Attempt to use the old credential and confirm it fails.
  6. Pin tool versions, disable auto-update for CLIs

Sources

  1. GitHub advisory GHSA-9ppg-jx86-fqw7: unauthorized npm publish of cline@2.3.0 (17 Feb 2026). Retrieved . ↩ ↩ ↩ ↩
  2. Cline: Post-mortem, unauthorized Cline CLI npm publish (24 Feb 2026). Retrieved . ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩
  3. Adnan Khan: Clinejection, Compromising Cline’s Production Releases just by Prompting an Issue Triager (9 Feb 2026, updated 18 Feb). Retrieved . ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩

Published · Updated Report an error (support@agentum.cloud)