Dev.to
7/19/2026

Cline supply chain attack: prompt injection via GitHub issue title led to malicious npm package distribution
Original: Clinejection: How a GitHub Issue Title Compromised an AI Coding Assistant Used by 5M Developers
Short summary
A detailed postmortem of a four-hop supply chain attack on Cline, an AI coding assistant with 5M+ users. An unsanitized GitHub issue title reached Claude with shell command permissions, enabling prompt injection that poisoned CI cache, exfiltrated three publish tokens, and shipped a malicious npm package that silently installed a second AI agent on user machines. The writeup includes confirmed artifacts from Cline's advisory, GHSA, and independent postmortems, plus actionable security checklist questions.
- •Prompt injection via unsanitized GitHub issue title exploited Cline's AI triage agent (Claude) with broad tool permissions and open trigger conditions
- •Four-hop chain: injection → cache poisoning → token exfiltration → malicious npm package shipping a second AI agent with no user consent
- •Root cause: unauthenticated trigger input + unsanitized strings reaching model with tool access; same failure class as tj-actions/changed-files compromise
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



