AI hack · Supply chain · 9 Feb 2026ExploitedFixed in 2.4.0
Cline's AI issue bot led to a tampered npm release that quietly installed OpenClaw
On 17 February 2026, someone used an npm token 5 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handCline (GitHub Security Advisories)GHSA-9ppg-jx86-fqw7: Unauthorized npm publish of Cline CLI cline@2.3.0 with modified postinstall script to install openclaw17 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026Simon WillisonClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager6 Mar 2026 to publish a tampered Cline CLI that installed the OpenClaw agent unasked. It stayed up about eight hours and was downloaded about 4,000 times. Cline 3 sourcesClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026Simon WillisonClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager6 Mar 2026 and released version 2.4.0 to replace it.
By Chris Hoskins, Founder, Boogey ·
Tap underlined words to see who reported them.
About 4,000
2 sourcesThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026Simon WillisonClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager6 Mar 2026
About 8 hours
4 sourcesCline (GitHub Security Advisories)GHSA-9ppg-jx86-fqw7: Unauthorized npm publish of Cline CLI cline@2.3.0 with modified postinstall script to install openclaw17 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026Simon WillisonClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager6 Mar 2026
About 30 minutes
2 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-hand
8 days
3 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026
What the tampered release did
Cline is an AI coding assistant, and cline@2.3.0 was a 5 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handCline (GitHub Security Advisories)GHSA-9ppg-jx86-fqw7: Unauthorized npm publish of Cline CLI cline@2.3.0 with modified postinstall script to install openclaw17 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026Simon WillisonClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager6 Mar 2026 of its command-line tool. Cline says the release matched the real 2.2.3 except for 5 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handCline (GitHub Security Advisories)GHSA-9ppg-jx86-fqw7: Unauthorized npm publish of Cline CLI cline@2.3.0 with modified postinstall script to install openclaw17 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026Simon WillisonClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager6 Mar 2026, a command npm runs after install. That script 5 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handCline (GitHub Security Advisories)GHSA-9ppg-jx86-fqw7: Unauthorized npm publish of Cline CLI cline@2.3.0 with modified postinstall script to install openclaw17 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026Simon WillisonClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager6 Mar 2026 for anyone who installed or updated the CLI while it was up. Cline describes OpenClaw as a legitimate open source package, not malware, and says the install was 3 sourcesCline (GitHub Security Advisories)GHSA-9ppg-jx86-fqw7: Unauthorized npm publish of Cline CLI cline@2.3.0 with modified postinstall script to install openclaw17 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026. 3 sourcesCline (GitHub Security Advisories)GHSA-9ppg-jx86-fqw7: Unauthorized npm publish of Cline CLI cline@2.3.0 with modified postinstall script to install openclaw17 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026 was touched. Cline says its VS Code extension and JetBrains plugin were not affected.
How an issue title reached the release token
Step 1
Anyone files an issue
Researcher Adnan Khan found that Cline's issue-triage workflow ran Claude on every new issue, and that 3 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026 could trigger it.
Step 2
The title gives orders
Claude had broad tools, including Bash, the command line. A 3 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026, instructions hidden in text the AI reads, could make it run any command.
Step 3
The cache carries it
Poisoning the GitHub Actions cache, files that jobs save and reuse, let an attacker jump to the 3 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026. There it could steal credentials as powerful as a production release's.
Step 4
The token survives
Cline says that after Khan went public, it SourceClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-hand. npm's org page showed zero active tokens and didn't reveal the exposed one.
Khan calls the flaw 2 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026.
Khan says he tested only on a copy of Cline's repository. SourceAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-hand his proof of concept and used it on Cline itself to get publishing credentials.
From report to revoked token
21 Dec 2025
Cline adds an AI agent to 2 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026, and with it the flaw.
1 Jan 2026
Khan SourceClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-hand to Cline through a GitHub Security Advisory.
9 Feb
SourceClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-hand. Cline says it had not addressed his report until then.
9 Feb
About 30 minutes later, Cline 2 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-hand and stops the nightly jobs using the cache.
17 Feb
At 3:26 a.m. PT, someone publishes cline@2.3.0 with the exposed npm token, which had 5 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handCline (GitHub Security Advisories)GHSA-9ppg-jx86-fqw7: Unauthorized npm publish of Cline CLI cline@2.3.0 with modified postinstall script to install openclaw17 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026Simon WillisonClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager6 Mar 2026.
17 Feb
At 11:23 a.m. PT, Cline publishes 3 sourcesCline (GitHub Security Advisories)GHSA-9ppg-jx86-fqw7: Unauthorized npm publish of Cline CLI cline@2.3.0 with modified postinstall script to install openclaw17 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026. It deprecates 2.3.0 at 11:30 and revokes the token.
Cline now publishes to npm through GitHub Actions with 3 sourcesCline (GitHub Security Advisories)GHSA-9ppg-jx86-fqw7: Unauthorized npm publish of Cline CLI cline@2.3.0 with modified postinstall script to install openclaw17 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026, a record that ties each version to the run and source commit that built it.
“The actual user impact here was low (benign payload, small exposure window, CLI-only)”
How much harm, and who did it
Quoted by The Hacker News, Endor Labs' Henrik Plate also called the SourceThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026, because OpenClaw is not malicious and its Gateway daemon was neither installed nor started. The Hacker News reported that it was SourceThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026 the breach or what they wanted. Cline's audit of its releases on four stores and its main branch, from 21 December to 17 February, found SourceClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-hand or commits.
The Boogey fix
Could a stranger's issue reach your release keys?
You’re exposed if
- An AI agent in your CI reads issues, pull requests or comments that anyone on GitHub can write.
- That agent can run shell commands, write to the repository, or reach secrets.
- Its workflow shares a cache or runner with the jobs that build and publish your releases.
- You publish packages with a long-lived token stored in the pipeline.
Fix it
01Take away the shell
Give triage agents read and comment tools only, with no Bash, no write permission and no secrets. Say in their instructions that issue text is data to sort, never orders to follow.
02Limit who can start it
Don't let every GitHub account trigger an agent that holds tokens. If outsiders must, run that job with a read-only token and nothing else.
03Keep releases off shared caches
Release and publish jobs should never restore a cache that an agent's workflow can write. Cline's fix removed the 2 sourcesAdnan KhanClinejection — Compromising Cline's Production Releases just by Prompting an Issue Triager9 Feb 2026 · first-handClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-hand.
04Publish without a stored token
Publish through OIDC from your CI, 2 sourcesCline (GitHub Security Advisories)GHSA-9ppg-jx86-fqw7: Unauthorized npm publish of Cline CLI cline@2.3.0 with modified postinstall script to install openclaw17 Feb 2026 · first-handThe Hacker NewsCline CLI 2.3.0 Supply Chain Attack Installed OpenClaw on Developer Systems20 Feb 2026, so no long-lived npm token sits in the pipeline to steal.
05Prove the rotation worked
After any exposure, revoke tokens by ID and confirm the old one fails. Cline SourceClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-hand, and npm's org page didn't show the exposed one.
On your platform
Settings you already have that help against this hack. Last checked 1 Dec 2026.
Lock out skip-all-prompts
In managed settings, set permissions.disableBypassPermissionsMode to "disable" and add deny rules such as Bash(curl *) and Read(./.env).
Check every tool call with a hook
Add a PreToolUse hook that exits 2 or returns permissionDecision "deny". Set allowManagedHooksOnly in managed settings so only an admin’s hooks run.
How we test it
- 1Under a signed scope, on a staging copy of your repository, we open a fake issue whose title carries a canary instruction. It asks your triage agent to post a planted canary secret, send it to a host we own or write it to the build cache. We watch all three.Being built
- 2From the lockfiles you share, we flag Cline CLI 2.3.0, the tampered release.
- 3From the workflow files you share, we check each AI workflow's token scopes against what its job needs, and that no publish credential is within its reach.Being built
- Built
- BT-02 · Indirect prompt injection through content the AI readsBT-04 · Tool misuse by a hijacked agentBT-06 · Over-scoped tokens and agent identityBT-22 · Model and AI supply chainBT-10 · Leaked AI keys and secrets, and the abuse that follows
It fails if
- The canary secret reaches our host or shows up in a comment
- The agent reads the canary secret or writes to a cache a release job restores
- Your lockfile has Cline CLI 2.3.0
- A token the agent can reach could publish a package or push code
Have an AI agent triaging issues or reviewing pull requests? We'll run this test on your pipeline. Part of it is still being built.
What it reveals
Cline's own conclusion is that AI agents with broad tool access create SourceClinePost-mortem: Unauthorized Cline CLI npm PublishUndated · first-hand in CI/CD, the pipelines that build and ship code. A bot that sorts issues needs to read and reply. This one could also run commands and write to a cache the release jobs trusted. An AI agent in a pipeline lends its permissions to whoever can write what it reads. Scope it like a release job, because it can become one.