Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/11534?format=api",
    "purl": "pkg:pypi/websockets@5.0",
    "type": "pypi",
    "namespace": "",
    "name": "websockets",
    "version": "5.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/7319?format=api",
            "vulnerability_id": "VCID-66rg-p1q7-hken",
            "summary": "private key recovery",
            "references": [
                {
                    "reference_url": "https://github.com/aaugustin/websockets/commit/547a26b685d08cac0aa64e5e65f7867ac0ea9bc0",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/aaugustin/websockets/commit/547a26b685d08cac0aa64e5e65f7867ac0ea9bc0"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-8ch4-58qp-g3mp",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-8ch4-58qp-g3mp"
                },
                {
                    "reference_url": "https://security.archlinux.org/ASA-202106-26",
                    "reference_id": "ASA-202106-26",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://security.archlinux.org/ASA-202106-26"
                },
                {
                    "reference_url": "https://security.archlinux.org/AVG-2040",
                    "reference_id": "AVG-2040",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "Medium",
                            "scoring_system": "archlinux",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://security.archlinux.org/AVG-2040"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/22152?format=api",
                    "purl": "pkg:pypi/websockets@9.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/websockets@9.1"
                }
            ],
            "aliases": [
                "CVE-2021-33880",
                "GHSA-8ch4-58qp-g3mp",
                "PYSEC-2021-95"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-66rg-p1q7-hken"
        }
    ],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35222?format=api",
            "vulnerability_id": "VCID-jgps-sj55-xyfj",
            "summary": "aaugustin websockets version 4 contains a CWE-409: Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in Servers and clients, unless configured with compression=None that can result in Denial of Service by memory exhaustion. This attack appear to be exploitable via Sending a specially crafted frame on an established connection. This vulnerability appears to have been fixed in 5.",
            "references": [
                {
                    "reference_url": "https://github.com/aaugustin/websockets",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/aaugustin/websockets"
                },
                {
                    "reference_url": "https://github.com/aaugustin/websockets/pull/407",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/aaugustin/websockets/pull/407"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-6g87-ff9q-v847",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-6g87-ff9q-v847"
                },
                {
                    "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/websockets/PYSEC-2018-79.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pypa/advisory-database/tree/main/vulns/websockets/PYSEC-2018-79.yaml"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-1000518",
                    "reference_id": "CVE-2018-1000518",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-1000518"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/11534?format=api",
                    "purl": "pkg:pypi/websockets@5.0",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-66rg-p1q7-hken"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/websockets@5.0"
                }
            ],
            "aliases": [
                "CVE-2018-1000518",
                "GHSA-6g87-ff9q-v847",
                "PYSEC-2018-79"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-jgps-sj55-xyfj"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/websockets@5.0"
}