Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/18472?format=api",
    "purl": "pkg:pypi/djangorestframework@3.1.0",
    "type": "pypi",
    "namespace": "",
    "name": "djangorestframework",
    "version": "3.1.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "3.11.2",
    "latest_non_vulnerable_version": "3.11.2",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35650?format=api",
            "vulnerability_id": "VCID-qtq5-1m6f-f3dw",
            "summary": "A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. When using the browseable API viewer, Django REST Framework fails to properly escape certain strings that can come from user input. This allows a user who can control those strings to inject malicious <script> tags, leading to a cross-site-scripting (XSS) vulnerability.",
            "references": [
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1878635",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1878635"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-fx83-3ph3-9j2q",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-fx83-3ph3-9j2q"
                },
                {
                    "reference_url": "https://security.netapp.com/advisory/ntap-20201016-0003/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://security.netapp.com/advisory/ntap-20201016-0003/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/18526?format=api",
                    "purl": "pkg:pypi/djangorestframework@3.11.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/djangorestframework@3.11.2"
                }
            ],
            "aliases": [
                "CVE-2020-25626",
                "GHSA-fx83-3ph3-9j2q",
                "PYSEC-2020-263"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-qtq5-1m6f-f3dw"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/djangorestframework@3.1.0"
}