chore: document CVE-2026-31221 pytorch-lightning insecure deserialization (no patch available)#13
Draft
Copilot wants to merge 2 commits into
Draft
chore: document CVE-2026-31221 pytorch-lightning insecure deserialization (no patch available)#13Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
…uirements.txt Agent-Logs-Url: https://github.com/audi/MeshGPT/sessions/521f8027-e15e-4f12-9e75-3ff911f4b03d Co-authored-by: MichaelMorgott <102797275+MichaelMorgott@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix insecure checkpoint deserialization in PyTorch Lightning
chore: document CVE-2026-31221 pytorch-lightning insecure deserialization (no patch available)
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pytorch-lightning==2.0.3is flagged by Dependabot for CVE-2026-31221 / GHSA-75m9-98v2-hjpm:LightningModule.load_from_checkpoint()callstorch.load()withoutweights_only=True, enabling arbitrary pickle deserialization from a malicious checkpoint file. No patched version exists yet.Reachability
Not reachable — high confidence.
load_from_checkpointis never called in this codebase. All checkpoint loading is done manually:trainer.fit(model, ckpt_path=...)uses Lightning's internal_load_checkpointpath, which is distinct from the vulnerableload_from_checkpointAPI.Changes
requirements.txt— added an inline comment on thepytorch-lightningpin referencing the CVE, explaining that no patched version is available and flagging it for update once a fix is released.Version bump was not performed: the advisory's
patched_versionfield is empty, and the dependency graph is tightly pinned — an untargeted major-version upgrade carries meaningful breakage risk with no clear security benefit given the API is unreachable.Original prompt