minigptcore (npm) · Malicious Code
Affects minigptcoreSource GCVE Database
Malicious package : remove minigptcore and rotate any secrets on hosts that installed it.
Data as of 13 Jul 2026, 09:27 UTC
Malicious package
Published to npm · OSV MAL-2026-10417
What to do
Remove minigptcore 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 |
|---|---|---|
| npmminigptcore | 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 minigptcore npm package version 4.0.8 contains malicious code that executes during installation. Its preinstall script runs a Windows command to invoke mshta.exe, which fetches and executes an unverified HTA script from an external HTTP domain. This behavior allows remote code execution with the privileges of the user running npm install. The package metadata is minimal and generic, indicating a likely throwaway malicious upload.