trinity-scheme (npm) · Malicious Code
Affects trinity-schemeSource GCVE Database
Malicious package : remove trinity-scheme and rotate any secrets on hosts that installed it.
Data as of 13 Jul 2026, 09:26 UTC
Malicious package
Published to npm · OSV MAL-2026-10425
What to do
Remove trinity-scheme 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 |
|---|---|---|
| npmtrinity-scheme | 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 trinity-scheme npm package version 20.0.0 contains malicious code that executes a hidden shell command during installation. This command collects system information such as the current user, working directory, and hostname, then sends this data to a hardcoded external endpoint. The malicious payload is hex-encoded to evade detection by plain-text scanning tools. The package does not provide legitimate functionality consistent with its declared purpose.