Lookup for vulnerable packages by Package URL.

GET /api/packages/50057?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "http://public2.vulnerablecode.io/api/packages/50057?format=api",
    "purl": "pkg:pypi/pillow@12.1.1",
    "type": "pypi",
    "namespace": "",
    "name": "pillow",
    "version": "12.1.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "12.2.0",
    "latest_non_vulnerable_version": "12.2.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37317?format=api",
            "vulnerability_id": "VCID-9hza-srk7-sucy",
            "summary": "Pillow is a Python imaging library. Prior to version 12.2.0, if a font advances for each glyph by an exceeding large amount, when Pillow keeps track of the current position, it may lead to an integer overflow. This issue has been patched in version 12.2.0.",
            "references": [
                {
                    "reference_url": "https://github.com/python-pillow/Pillow/releases/tag/12.2.0",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
                        }
                    ],
                    "url": "https://github.com/python-pillow/Pillow/releases/tag/12.2.0"
                },
                {
                    "reference_url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-wjx4-4jcj-g98j",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
                        }
                    ],
                    "url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-wjx4-4jcj-g98j"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/50058?format=api",
                    "purl": "pkg:pypi/pillow@12.2.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/pillow@12.2.0"
                }
            ],
            "aliases": [
                "CVE-2026-42308",
                "GHSA-wjx4-4jcj-g98j",
                "PYSEC-2026-165"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-9hza-srk7-sucy"
        }
    ],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/50105?format=api",
            "vulnerability_id": "VCID-ekvh-ds1u-3qbk",
            "summary": "Pillow affected by out-of-bounds write when loading PSD images\nAn out-of-bounds write may be triggered when loading a specially crafted PSD image. Pillow >= 10.3.0 users are affected.",
            "references": [
                {
                    "reference_url": "https://github.com/python-pillow/Pillow/commit/54ba4db542ad3c7b918812a4e2d69c27735a3199",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/python-pillow/Pillow/commit/54ba4db542ad3c7b918812a4e2d69c27735a3199"
                },
                {
                    "reference_url": "https://github.com/python-pillow/Pillow/commit/9000313cc5d4a31bdcdd6d7f0781101abab553aa",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/python-pillow/Pillow/commit/9000313cc5d4a31bdcdd6d7f0781101abab553aa"
                },
                {
                    "reference_url": "https://github.com/python-pillow/Pillow/pull/9427",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/python-pillow/Pillow/pull/9427"
                },
                {
                    "reference_url": "https://pillow.readthedocs.io/en/stable/releasenotes/12.1.1.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://pillow.readthedocs.io/en/stable/releasenotes/12.1.1.html"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-25990",
                    "reference_id": "CVE-2026-25990",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-25990"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-cfh3-3jmp-rvhc",
                    "reference_id": "GHSA-cfh3-3jmp-rvhc",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-cfh3-3jmp-rvhc"
                },
                {
                    "reference_url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-cfh3-3jmp-rvhc",
                    "reference_id": "GHSA-cfh3-3jmp-rvhc",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-cfh3-3jmp-rvhc"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/50057?format=api",
                    "purl": "pkg:pypi/pillow@12.1.1",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-9hza-srk7-sucy"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/pillow@12.1.1"
                }
            ],
            "aliases": [
                "CVE-2026-25990",
                "GHSA-cfh3-3jmp-rvhc"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ekvh-ds1u-3qbk"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/pillow@12.1.1"
}