rails_structured_logging (RubyGems) · Malicious Code
Affects rails_structured_loggingSource GCVE Database
Malicious package : remove rails_structured_logging and rotate any secrets on hosts that installed it.
Data as of 12 Sep 2026, 11:02 UTC
Malicious package
Published to RubyGems · OSV MAL-2026-1920
What to do
Remove rails_structured_logging 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 |
|---|---|---|
RubyGemsrails_structured_loggingpkg:gem/rails_structured_loggingOther threats | 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 rails_structured_logging RubyGems package contains malicious code in specific versions. This vulnerability affects versions 0.0.4, 0.1.1, 0.1.2, and 0.2.1 of the package. The presence of malicious code in these versions poses a high security risk to users who install or use these versions.