MAL-2026-21134: Malicious code in uznex-api-doc (RubyGems)

Published Dec 4, 2026
·
Updated

--- -= Per source details. Do not edit below this line.=-

Source: amazon-inspector (d4acfad299a2c9f1296dc21382f99c6a4be5bec735f83b37789436ba5f42c315) 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.

Affected Software

1 affected component
rubygems/uznex-api-doc=99.0.1, =99.0.0

Event History

Dec 4, 2026
Advisory Published
via OSV·11:57 AM
Data Sourced
via OSV·11:57 AM
DescriptionAffected Software

Frequently Asked Questions

1

What must happen for the data collection to run?

The extconf.rb script is declared as a gem extension and runs automatically during gem install. No separate execution of the gem or opt-in is required.

2

Which environments are most exposed?

Developer and CI environments are especially exposed because the script filters environment variables for names containing TOKEN, KEY, SECRET, AWS, CI, GITHUB, NPM, PASS, or GEM. It also collects the hostname, current working directory, and username.

3

What information is sent off-host?

The script sends a JSON payload containing the collected host details and matching environment variables to a hardcoded Amazon S3 bucket at uznex-front.s3.eu-central-1.amazonaws.com.

4

How can I determine whether this package was installed?

Check whether uznex-api-doc versions 99.0.0 or 99.0.1 were installed in the affected RubyGems environment. An installation of either version would have automatically run the extension script.

5

What should be done if one of these versions was installed?

Treat matching environment variables available during installation as potentially disclosed, particularly cloud, registry, and version-control credentials. The provided data does not identify a safe replacement version or mitigation beyond avoiding installation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203