Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/1069686?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/1069686?format=api", "purl": "pkg:pypi/pytorch-lightning@2.5.0rc0", "type": "pypi", "namespace": "", "name": "pytorch-lightning", "version": "2.5.0rc0", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "2.6.1", "latest_non_vulnerable_version": "2.6.1", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/71504?format=api", "vulnerability_id": "VCID-dpzd-6sun-a7av", "summary": "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 states, internally calls torch.load() without setting the security-restrictive weights_only=True parameter. This default behavior allows the deserialization of arbitrary Python objects via the Pickle module. A remote attacker can exploit this by providing a maliciously crafted checkpoint file, leading to arbitrary code execution on the victim's system when the file is loaded.", "references": [ { "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2026-31221", "reference_id": "", "reference_type": "", "scores": [ { "value": "0.00191", "scoring_system": "epss", "scoring_elements": "0.41049", "published_at": "2026-06-12T12:55:00Z" }, { "value": "0.00191", "scoring_system": "epss", "scoring_elements": "0.40883", "published_at": "2026-06-11T12:55:00Z" }, { "value": "0.00206", "scoring_system": "epss", "scoring_elements": "0.43093", "published_at": "2026-06-14T12:55:00Z" }, { "value": "0.00206", "scoring_system": "epss", "scoring_elements": "0.43102", "published_at": "2026-06-13T12:55:00Z" } ], "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-31221" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31221", "reference_id": "", "reference_type": "", "scores": [ { "value": "7.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31221" }, { "reference_url": "https://www.notion.so/CVE-2026-31221-35d1e1393188815f8db7c4fd08076639", "reference_id": "CVE-2026-31221-35d1e1393188815f8db7c4fd08076639", "reference_type": "", "scores": [ { "value": "7.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" }, { "value": "8.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" }, { "value": "Track", "scoring_system": "ssvc", "scoring_elements": "SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-05-15T18:02:25Z/" } ], "url": "https://www.notion.so/CVE-2026-31221-35d1e1393188815f8db7c4fd08076639" }, { "reference_url": "https://github.com/advisories/GHSA-75m9-98v2-hjpm", "reference_id": "GHSA-75m9-98v2-hjpm", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" } ], "url": "https://github.com/advisories/GHSA-75m9-98v2-hjpm" }, { "reference_url": "https://github.com/Lightning-AI/pytorch-lightning", "reference_id": "pytorch-lightning", "reference_type": "", "scores": [ { "value": "7.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" }, { "value": "8.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" }, { "value": "Track", "scoring_system": "ssvc", "scoring_elements": "SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-05-15T18:02:25Z/" } ], "url": "https://github.com/Lightning-AI/pytorch-lightning" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/1069701?format=api", "purl": "pkg:pypi/pytorch-lightning@2.6.1", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/pytorch-lightning@2.6.1" } ], "aliases": [ "CVE-2026-31221", "GHSA-75m9-98v2-hjpm" ], "risk_score": 4.0, "exploitability": "0.5", "weighted_severity": "8.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-dpzd-6sun-a7av" } ], "fixing_vulnerabilities": [], "risk_score": "4.0", "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/pytorch-lightning@2.5.0rc0" }