Skip to main content
MalwarePublished

pylithium (PyPI) · Malicious Code

Affects pylithiumSource GCVE Database

0

Malicious package : remove pylithium and rotate any secrets on hosts that installed it.

Data as of 3 Dec 2026, 01:36 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2026-21001

What to do

Remove pylithium 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
PyPIpylithiumAffected
  • 0.0.1 – 1.0.1
4 affected builds
Fixed in–

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

Description

The pylithium package on PyPI is a malicious package that performs dependency confusion by masquerading as a legitimate library. During installation and import, it executes code that fingerprints the environment and sends basic system data such as IP address and username to a remote Sentry endpoint. The package also abuses Python's .pth file mechanism to run code on Python startup. The collected data does not appear to include highly sensitive information, and the risk is considered limited.

References

Community reviews

Loading reviews…