cvelo
P2 · HighMalware

Malicious code in pylithium (PyPI)

  • MAL-2026-21001

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.

Text from the OSV record.

Affected

  • pylithiumPyPI

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.