gptmini (npm) · Malicious Code
Affects gptminiSource GCVE Database
Malicious package : remove gptmini and rotate any secrets on hosts that installed it.
Data as of 26 Jun 2026, 22:08 UTC
Malicious package
Published to npm · OSV MAL-2026-6537
What to do
Remove gptmini 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 |
|---|---|---|
| npmgptmini | 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 gptmini npm package versions 4.0.2 and 4.0.6 contain malicious code that executes during installation on Windows systems. Specifically, the package's preinstall script runs a command that downloads and executes an HTML Application from a remote attacker-controlled HTTP server, resulting in remote code execution without user interaction. The package masquerades as a GPT/OpenAI SDK wrapper but has empty author metadata and connects to an unrelated domain, indicating malicious intent.