uznex (RubyGems) · Malicious Code
Affects uznexSource GCVE Database
Malicious package : remove uznex and rotate any secrets on hosts that installed it.
Data as of 4 Dec 2026, 14:15 UTC
Malicious package
Published to RubyGems · OSV MAL-2026-21133
What to do
Remove uznex 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 |
|---|---|---|
| RubyGemsuznex | 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 RubyGem 'uznex' version 99.0.0 contains malicious code that executes automatically during installation. It collects sensitive environment information including hostname, current directory, username, and environment variables that resemble credentials (e.g., tokens, keys, secrets). This data is serialized and sent to a hardcoded external endpoint, potentially exposing CI tokens, cloud keys, and publishing credentials without user interaction.