Snyk has reported that there have been attempts or successful attacks targeting this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsAvoid using all malicious instances of the @withgoogle/stitch-sdk package.
@withgoogle/stitch-sdk is a malicious package.
Although this package attempts to impersonate Google's Stitch AI design tool, there is no connection between Google and this package. By squatting the @withgoogle npm scope, a malicious actor published @withgoogle/stitch-sdk in an attempt to mimic the legitimate @google/stitch-sdk package. The attacker included deliberately misleading text in the package's README and CLI help menu, falsely positioning this package as the legitimate "new version" of the SDK.
According to the analysis, the payload establishes execution via a preinstall hook and a CLI binary. Once executed, it silently harvests developer credentials, explicitly prioritizing access to AI coding tools such as Claude Code. It then sweeps for credentials across git config, SSH public keys, GitHub CLI, npm configurations, and Docker configurations. The stolen data is then exfiltrated to an attacker-controlled server via HTTPS GET requests.
Notes: