Deserialization in Lightningai Pytorch_lightning

CVE-2026-31221

PyTorch-Lightning versions 2.6.0 and earlier contain an insecure deserialization vulnerability (CWE-502) in the checkpoint loading mechanism. The LightningModule.load_from_checkpoint() method, which is commonly used to load saved model sta…

Vulnerability class: Insecure Deserialization

EPSS: 0.002 (40.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-31221?
CVE-2026-31221 is a high-severity vulnerability in Lightningai Pytorch_lightning, classified under Deserialization of Untrusted Data. CVSS score: 7.8/10. Published 2026-05-12.
How severe is CVE-2026-31221?
High severity. CVSS v3 base score is 7.8 out of 10.