UTC

lightning

5 published advisories; version 2.6.6 or later fixes all of them.

Compromised releases

2.6.2, 2.6.3 were published with malicious code. If any of them was installed, remove it, rotate every credential the environment could read, and pin dependencies by hash.

Hit by a supply-chain campaign: PyTorch Lightning PyPI compromise.

Registry
PyPI
Advisories
5
Latest fix
2.6.6
Exploited in the wild
None listed

Check your projects

shieldpi agent-config checks agent and MCP packages from npm and PyPI, not lightning. Any scanner that reads the OSV database finds it in your lockfiles, for example Google's open-source OSV-Scanner.

osv-scanner scan source -r .

Or check a lockfile against ShieldMap in your browser.

Provenance

Source: github.com/lightning-ai/lightning, named in the package metadata (not verified)

3 of the last 10 releases of lightning were published with build provenance: a signed record of the repository and commit each was built from, which the registry checks before it accepts the release.

  • 2.6.6
  • 2.6.5
  • 2.6.4
  • 2.6.1
  • 2.6.0
  • 2.5.6
  • 2.5.5
  • 2.5.4
  • 2.5.3
  • 2.5.2

Green: published with provenance. Grey: without.

OpenSSF Scorecard has not scored this repository.

Provenance from deps.dev (CC BY 4.0); Scorecard from OpenSSF (CDLA-Permissive-2.0). As of 2026-11-18.

Advisories
AdvisorySeverityAffectedFixed inPublished
Malicious code in lightning (PyPI)GHSA-g4wr-mm54-799xCritical2.6.2Any other release2026-07-21
Malicious code in lightning (PyPI)GHSA-g4wr-mm54-799xCritical2.6.3Any other release2026-07-21
PyTorch Lightning allows arbitrary code execution through checkpoint _instantiator hyperparametersCVE-2026-58659High< 2.6.62.6.62026-07-15
PyTorch Lightning path traversal vulnerabilityCVE-2024-8019Critical< 2.4.02.4.02025-03-20
pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpointCVE-2024-5980Critical< 2.3.32.3.32024-06-27
Remote code execution in pytorch lightningCVE-2024-5452Critical< 2.3.32.3.32024-06-06

Sources: GitHub Advisory Database, reviewed and malware advisories (CC BY 4.0, https://github.com/advisories); advisories published by Cursor (https://github.com/cursor/cursor/security/advisories); advisories published by OpenClaw (https://github.com/openclaw/openclaw/security/advisories); advisories published by vLLM (https://github.com/vllm-project/vllm/security/advisories); advisories published by Open WebUI (https://github.com/open-webui/open-webui/security/advisories); advisories published by n8n (https://github.com/n8n-io/n8n/security/advisories); advisories published by Flowise (https://github.com/FlowiseAI/Flowise/security/advisories); advisories published by Langflow (https://github.com/langflow-ai/langflow/security/advisories); advisories published by the MCP Python SDK project (https://github.com/modelcontextprotocol/python-sdk/security/advisories); advisories published by MLflow (https://github.com/mlflow/mlflow/security/advisories); CISA Known Exploited Vulnerabilities catalog (CC0). Data as of 2026-11-22. ShieldMap describes how each problem works and how to fix it; it does not publish exploit code. Report a correction to [email protected].