{"id":"MAL-2026-1380","summary":"Malicious code in cline (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (38d7531f4d4af07fee607e1d2985d0ea5b41dbf28cca5bc16c8457934e372f86)\nThe package cline was found to contain malicious code.\n\n## Source: ghsa-malware (3c16746b2d863d4c24bbc2297611c642a02942b47d12b675c4a3120911c72eec)\n### Description\nOn February 17, 2026 at 3:26 AM PT, an unauthorized party used a compromised npm publish token to publish an update to Cline CLI on the NPM registry: cline@2.3.0. The published package contains a modified package.json with an added postinstall script:\n`\"postinstall\": \"npm install -g openclaw@latest\"`\nThis causes openclaw (an unrelated, non-malicious open source package) to be globally installed when cline@2.3.0 is installed. No other files were modified -- the CLI binary (dist/cli.mjs) and all other package contents are identical to the legitimate cline@2.2.3 release.\nA corrected version (2.4.0) was published at 11:23 AM PT and 2.3.0 was deprecated at 11:30 AM PT. The compromised token has been revoked and npm publishing now uses OIDC provenance via GitHub Actions.\n\n### Impact\nUsers who installed Cline CLI cline@2.3.0 during the approximately 8-hour window between 3:26 AM PT and 11:30 AM PT on February 17 will have openclaw globally installed. The openclaw package is a legitimate open source project and is not malicious, but its installation was not authorized or intended.\n\nThe Cline VS Code extension and JetBrains plugin were not affected. This advisory applies only to the Cline CLI package published on npm.\n\n### Patches\nVersions 2.4.0 and higher are fixed\n\n### Workarounds\nIf you installed Cline CLI cline@2.3.0:\n1. Update to the latest version of the Cline CLI\n`cline update` or `npm installl -g cline@latest`\n2. Verify that you have a fixed version (2.4.0 or higher)\n`cline --version`\n3. Review your environment for any unexpected installation of OpenClaw and remove it if not intended\n`npm uninstall -g openclaw`\n\n## Source: google-open-source-security (ba9952611b2aa348b1b5cc0349d7b905e32d34effa53081994388c37d0d3462a)\nAn unauthorized party used a compromised npm publish token to publish v2.3.0\nof the Cline CLI on the NPM. The compromise added a postinstall script that\nglobally installed openclaw.\n","aliases":["GHSA-9ppg-jx86-fqw7"],"modified":"2026-09-07T02:15:13.175523968Z","published":"2026-02-19T15:17:10Z","database_specific":{"malicious-packages-origins":[{"source":"google-open-source-security","versions":["2.3.0"],"import_time":"2026-03-12T22:34:51.899506Z","modified_time":"2026-03-12T22:33:41Z","sha256":"ba9952611b2aa348b1b5cc0349d7b905e32d34effa53081994388c37d0d3462a"},{"source":"amazon-inspector","versions":["2.3.0"],"import_time":"2026-03-23T05:13:58.413853945Z","modified_time":"2026-03-23T05:11:41Z","sha256":"38d7531f4d4af07fee607e1d2985d0ea5b41dbf28cca5bc16c8457934e372f86"},{"id":"GHSA-9ppg-jx86-fqw7","import_time":"2026-09-07T01:51:49.562552Z","modified_time":"2026-09-04T07:20:42Z","ranges":[{"events":[{"introduced":"2.3.0"},{"fixed":"2.4.0"}],"type":"SEMVER"}],"sha256":"3c16746b2d863d4c24bbc2297611c642a02942b47d12b675c4a3120911c72eec","source":"ghsa-malware"}]},"references":[{"type":"REPORT","url":"https://github.com/advisories/GHSA-9ppg-jx86-fqw7"},{"type":"WEB","url":"https://github.com/cline/cline/security/advisories/GHSA-9ppg-jx86-fqw7"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9ppg-jx86-fqw7"}],"affected":[{"package":{"name":"cline","ecosystem":"npm","purl":"pkg:npm/cline"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.3.0"},{"fixed":"2.4.0"}]}],"versions":["2.3.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cline/MAL-2026-1380.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"}]}