Malicious code in uznex-api-doc (RubyGems)
- GHSA-gw28-f83m-9j3w
Description
The gemspec declares extconf.rb in its `extensions:` list, so the script runs automatically during `gem install`. The script collects the hostname, current working directory and username, and builds a filtered dump of environment variables whose names match TOKEN, KEY, SECRET, AWS, CI, GITHUB, NPM, PASS or GEM patterns, then PUTs the result as JSON to the hardcoded bucket https://uznex-front.s3.eu-central-1.amazonaws.com. It subsequently writes a stub Makefile so the native build appears to succeed without compiling anything, and no real native source tree is built. Developer and CI environments routinely hold cloud, registry and VCS tokens in these variables, so installing the gem discloses credential-grade secrets and host identifiers to a third-party destination with no opt-in and no relation to any declared build requirement. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/8565cd5633cf88edb6e38ca85429c489901b0d67/osv/malicious/rubygems/uznex-api-doc/MAL-2026-21134.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
uznex-api-docRubyGems
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.