Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/19856?format=api",
    "purl": "pkg:pypi/oncall@1.2.3",
    "type": "pypi",
    "namespace": "",
    "name": "oncall",
    "version": "1.2.3",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.4.1",
    "latest_non_vulnerable_version": "1.4.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35718?format=api",
            "vulnerability_id": "VCID-5tjf-k7wj-dfbb",
            "summary": "LinkedIn Oncall through 1.4.0 allows reflected XSS via /query because of mishandling of the \"No results found for\" message in the search bar.",
            "references": [
                {
                    "reference_url": "https://github.com/advisories/GHSA-rfw2-x9f8-2f6m",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-rfw2-x9f8-2f6m"
                },
                {
                    "reference_url": "https://github.com/linkedin/oncall/issues/341",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/linkedin/oncall/issues/341"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/19865?format=api",
                    "purl": "pkg:pypi/oncall@1.4.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/oncall@1.4.1"
                }
            ],
            "aliases": [
                "CVE-2021-26722",
                "GHSA-rfw2-x9f8-2f6m",
                "PYSEC-2021-33"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-5tjf-k7wj-dfbb"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/oncall@1.2.3"
}