gptcore (npm) · Malicious Code
Affects gptcoreSource GCVE Database
Malicious package : remove gptcore and rotate any secrets on hosts that installed it.
Data as of 13 Jul 2026, 09:57 UTC
Malicious package
Published to npm · OSV MAL-2026-10204
What to do
Remove gptcore 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 |
|---|---|---|
| npmgptcore | 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 gptcore npm package versions 4.0.6, 4.0.7, and 4.0.8 include a malicious preinstall script that executes a Windows command to launch mshta.exe and fetch code from an untrusted remote HTTP URL. This causes arbitrary HTA/JScript content from the remote host to run on the installer's machine during npm install. The remote content is unrelated to the package's documented purpose and is fetched without integrity verification or publisher trust.