Skip to main content
MalwarePublished

donjon-ledger (RubyGems) · Malicious Code

Affects donjon-ledgerSource GCVE Database

0

Malicious package : remove donjon-ledger and rotate any secrets on hosts that installed it.

Data as of 8 Nov 2026, 10:51 UTC

Classification

Malicious package

Published to RubyGems · OSV MAL-2026-18765

What to do

Remove donjon-ledger 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

ProductAffectedFixed in
RubyGemsdonjon-ledgerAffected
  • =2.0.2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The donjon-ledger RubyGem version 2.0.2 contains malicious code executed during installation. The gemspec declares a native extension that runs a Ruby script collecting host identifiers and sensitive system files, then exfiltrates this data over a TLS connection to a hardcoded external server. This behavior occurs automatically when the gem is installed, without any legitimate build activity.

References

Community reviews

Loading reviews…