Malicious code in pylithium (PyPI)
- GHSA-2qrw-fq65-rmgj
Description
Dependency confusion against https://github.com/teslamotors/liblithium disguised as a simple electrical calculator. During installation, import, and start of the Python process (via PTH file) the package fingerprints the environment and reports to a Sentry endpoint. The collected data seems not to contain any highly sensitive information. --- Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities. Campaign: 2026-12-pylithium Reasons (based on the campaign): - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk. - dependency-confusion - abuses-pth - The package overrides the install command in setup.py to execute malicious code during installation. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/92195eb5ad3e316c342bc9b6ce3e441a9561c21e/osv/malicious/pypi/pylithium/MAL-2026-21001.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
pylithiumPyPI
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.