Skip to content
CriticalVulnerability

MAL-2026-3201: Malicious code in lightning (PyPI)

Published
Record updated
View JSON
Affected
  • lightning = 2.6.2, = 2.6.3
Fixed in
No fixed version was stated when the source was last read.

Summary

Versions 2.6.2 and 2.6.3 of the lightning package on PyPI were compromised with injected code. The code runs automatically on import, downloads a legitimate JavaScript runtime, and executes a bundled JavaScript infostealer that harvests credentials, cryptocurrency data and shell history. It also attempts to spread to other repositories and packages using the credentials it finds.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.