Malicious code in uznex (RubyGems)
- GHSA-w2qp-r266-52vp
Description
The gemspec declares `extensions: [extconf.rb]`, so extconf.rb executes automatically during `gem install`. The script collects the hostname, current working directory and username, filters the process environment for credential-shaped variable names (matching TOKEN, KEY, SECRET, AWS, CI, GITHUB, NPM, PASS, GEM), serializes the result as JSON and PUTs it to the hardcoded endpoint https://uznex-front.s3.eu-central-1.amazonaws.com. It then writes a stub Makefile so the build appears to succeed. No native source files are shipped, so the declared extension has no build purpose beyond executing this collection and upload path. CI tokens, cloud access keys and registry publishing credentials present in the build environment are harvested and leave the machine without user interaction. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/8565cd5633cf88edb6e38ca85429c489901b0d67/osv/malicious/rubygems/uznex/MAL-2026-21133.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
uznexRubyGems
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.