Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/40424?format=api",
    "purl": "pkg:pypi/diffoscope@162",
    "type": "pypi",
    "namespace": "",
    "name": "diffoscope",
    "version": "162",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "256",
    "latest_non_vulnerable_version": "256",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/36742?format=api",
            "vulnerability_id": "VCID-c5n9-pffj-dqaj",
            "summary": "diffoscope before 256 allows directory traversal via an embedded filename in a GPG file. Contents of any file, such as ../.ssh/id_rsa, may be disclosed to an attacker. This occurs because the value of the gpg --use-embedded-filenames option is trusted.",
            "references": [
                {
                    "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/diffoscope/PYSEC-2024-41.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pypa/advisory-database/tree/main/vulns/diffoscope/PYSEC-2024-41.yaml"
                },
                {
                    "reference_url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OUNBANAWD6TZH2NRRV4YUIAXEHLUJQ47",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OUNBANAWD6TZH2NRRV4YUIAXEHLUJQ47"
                },
                {
                    "reference_url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OUNBANAWD6TZH2NRRV4YUIAXEHLUJQ47/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OUNBANAWD6TZH2NRRV4YUIAXEHLUJQ47/"
                },
                {
                    "reference_url": "https://salsa.debian.org/reproducible-builds/diffoscope",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://salsa.debian.org/reproducible-builds/diffoscope"
                },
                {
                    "reference_url": "https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/dfed769904c27d66a14a5903823d9c8c5aae860e",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/dfed769904c27d66a14a5903823d9c8c5aae860e"
                },
                {
                    "reference_url": "https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/361",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/361"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2024-25711",
                    "reference_id": "CVE-2024-25711",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-25711"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-33w6-hvmq-gh4x",
                    "reference_id": "GHSA-33w6-hvmq-gh4x",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-33w6-hvmq-gh4x"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/40517?format=api",
                    "purl": "pkg:pypi/diffoscope@256",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/diffoscope@256"
                }
            ],
            "aliases": [
                "CVE-2024-25711",
                "GHSA-33w6-hvmq-gh4x",
                "PYSEC-2024-41"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-c5n9-pffj-dqaj"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/diffoscope@162"
}