Skip to content

Pin lightning==2.6.1 to avoid compromised 2.6.2/2.6.3#229

Closed
imbgar-roboflow wants to merge 142 commits into
mainfrom
security/pin-lightning-2.6.1-cve-ghsa-w37p-236h-pfx3
Closed

Pin lightning==2.6.1 to avoid compromised 2.6.2/2.6.3#229
imbgar-roboflow wants to merge 142 commits into
mainfrom
security/pin-lightning-2.6.1-cve-ghsa-w37p-236h-pfx3

Conversation

@imbgar-roboflow
Copy link
Copy Markdown
Contributor

Summary

  • Pin lightning to ==2.6.1 (was >=2.4.0) so a fresh install does not resolve to the malicious wheels on PyPI.

Why

Lightning AI advisory GHSA-w37p-236h-pfx3 (published 2026-04-30) confirms that lightning / pytorch-lightning 2.6.2 and 2.6.3 on PyPI were compromised. The wheels include a hidden _runtime/ directory with a start.py downloader and an ~11 MB obfuscated router_runtime.js payload that auto-executes on import lightning, harvests credentials (GitHub/npm/PyPI tokens, cloud creds, env vars, SSH keys), and attempts to commit encoded data back to victim repos. See Socket's writeup: https://socket.dev/blog/lightning-pypi-package-compromised.

2.6.1 (published 2026-01-30) is the last known clean release. The current spec lightning>=2.4.0 is unbounded and would resolve to 2.6.3 on a fresh install — this PR forces resolvers to skip the malicious versions until upstream ships a clean replacement.

Notes

  • Hard pin is intentionally narrow until Lightning AI publishes a confirmed-clean 2.6.4+. Once that lands we can relax to a >= range again.
  • maestro has no lockfile, so no uv lock / poetry lock regeneration is needed — the pyproject.toml change is sufficient.

Test plan

  • Confirm pip install -e . still resolves successfully
  • Confirm CI passes

Matvezy and others added 30 commits February 4, 2025 20:56
…ection

add Florence-2 object detection cookbook
Updates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.11.2...v1.15.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…and-lt-1.16.0

⬆️ Update mypy requirement from <1.15.0,>=1.11.2 to >=1.11.2,<1.16.0
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
ci(docs): 👷 update docs ci with mkdocs-insiders and use uv
… [ wrong

Update index.md

Update florence_2.md

Update paligemma_2.md

Update qwen_2_5_vl.md - add quotes to fix pip instruction for Mac

Update qwen_2_5_vl.md, quote around package

Update paligemma_2.md quote around package for Mac

Update qwen_2_5_vl.md

add quotes to all pip command for consistency
Updates the requirements on [transformers](https://github.com/huggingface/transformers) to permit the latest version.
- [Release notes](https://github.com/huggingface/transformers/releases)
- [Commits](huggingface/transformers@v4.43.0...v4.48.3)

---
updated-dependencies:
- dependency-name: transformers
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…4.49.0

⬆️ Update transformers requirement from <4.48.0 to <4.49.0
docs:  📝 enable comments on documentation pages and add comment section template
…atest (#155)

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
- update contributor guidelines
- update README.md
- add `open in colab` and `roboflow dataset` buttons in cookbooks
…o_latest

set version of maestro to latest in cookbooks
…Transformers

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
…for clarity

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
…mple usage

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
feat(logging): 🔊 add logging configuration for PyTorch Lightning and Transformers
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.6](astral-sh/ruff-pre-commit@v0.9.4...v0.9.6)
- [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.15.0](pre-commit/mirrors-mypy@v1.14.1...v1.15.0)
chore(pre_commit): ⬆ pre_commit autoupdate
pre-commit-ci Bot and others added 26 commits April 7, 2025 17:34
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.2 → v0.11.4](astral-sh/ruff-pre-commit@v0.11.2...v0.11.4)
chore(pre_commit): ⬆ pre_commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.4 → v0.11.5](astral-sh/ruff-pre-commit@v0.11.4...v0.11.5)
chore(pre_commit): ⬆ pre_commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.5 → v0.11.6](astral-sh/ruff-pre-commit@v0.11.5...v0.11.6)
chore(pre_commit): ⬆ pre_commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.6 → v0.11.7](astral-sh/ruff-pre-commit@v0.11.6...v0.11.7)
chore(pre_commit): ⬆ pre_commit autoupdate
Updates the requirements on [tox](https://github.com/tox-dev/tox) to permit the latest version.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst)
- [Commits](tox-dev/tox@4.18.1...4.26.0)

---
updated-dependencies:
- dependency-name: tox
  dependency-version: 4.26.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.11.2...v1.16.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 1.16.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.7 → v0.11.12](astral-sh/ruff-pre-commit@v0.11.7...v0.11.12)
- [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.16.0](pre-commit/mirrors-mypy@v1.15.0...v1.16.0)
Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@8.3.2...8.4.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 8.4.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…-and-lt-8.5.0

⬆️ Update pytest requirement from ~=8.3.2 to >=8.3.2,<8.5.0
…and-lt-1.17.0

⬆️ Update mypy requirement from <1.16.0,>=1.11.2 to >=1.11.2,<1.17.0
…nd-lt-4.27.0

⬆️ Update tox requirement from <4.26.0,>=4.18.1 to >=4.18.1,<4.27.0
chore(pre_commit): ⬆ pre_commit autoupdate
updates:
- [github.com/PyCQA/bandit: 1.8.3 → 1.8.5](PyCQA/bandit@1.8.3...1.8.5)
- [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.12.1](astral-sh/ruff-pre-commit@v0.11.12...v0.12.1)
- [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.16.1](pre-commit/mirrors-mypy@v1.16.0...v1.16.1)
chore(pre_commit): ⬆ pre_commit autoupdate
Lightning AI advisory GHSA-w37p-236h-pfx3 reports the lightning /
pytorch-lightning 2.6.2 and 2.6.3 wheels on PyPI contain a
credential-harvesting payload that auto-executes on import. 2.6.1 is
the last known clean release.

The previous spec 'lightning>=2.4.0' would resolve to 2.6.3 on a fresh
install. Pinning to 2.6.1 forces resolvers to skip the malicious
versions until upstream publishes a clean replacement.

Refs: GHSA-w37p-236h-pfx3
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 1, 2026

CLA assistant check
All committers have signed the CLA.

@imbgar-roboflow
Copy link
Copy Markdown
Contributor Author

Closing — accidentally targeted main instead of the default branch develop. Reopening against develop.

@imbgar-roboflow imbgar-roboflow deleted the security/pin-lightning-2.6.1-cve-ghsa-w37p-236h-pfx3 branch May 1, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants