gpt-sdk (npm) · Malicious Code
Affects gpt-sdkSource GCVE Database
Malicious package : remove gpt-sdk and rotate any secrets on hosts that installed it.
Data as of 8 Sep 2026, 10:38 UTC
Malicious package
Published to npm · OSV MAL-2026-5612
What to do
Remove gpt-sdk from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmgpt-sdk | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The gpt-sdk npm package contains malicious code that executes during installation. Its postinstall.js script collects extensive reconnaissance data from the host environment, including network and Active Directory details, user profile information, VPN client signals, and CI/CD environment variables. This data is sent unencrypted to a remote server, enabling attackers to map corporate networks and development environments. The package's main module is otherwise empty, and the README falsely claims no data collection occurs. This behavior constitutes a supply-chain reconnaissance threat.
References
- npmjs.com/package/gpt-sdk/v/0.2.1 (opens in a new tab)
- npmjs.com/package/gpt-sdk/v/0.1.2 (opens in a new tab)
- npmjs.com/package/gpt-sdk/v/0.2.0 (opens in a new tab)
- npmjs.com/package/gpt-sdk/v/0.1.0 (opens in a new tab)
- npmjs.com/package/gpt-sdk/v/0.2.4 (opens in a new tab)
- npmjs.com/package/gpt-sdk/v/0.1.1 (opens in a new tab)
- npmjs.com/package/gpt-sdk/v/0.2.2 (opens in a new tab)
- npmjs.com/package/gpt-sdk/v/0.2.3 (opens in a new tab)
- npmjs.com/package/gpt-sdk/v/0.1.3 (opens in a new tab)
- github.com/advisories/GHSA-wrmh-73gr-22fc (opens in a new tab)