Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/23335?format=api",
    "purl": "pkg:pypi/django-widgy@0.8.0",
    "type": "pypi",
    "namespace": "",
    "name": "django-widgy",
    "version": "0.8.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "0.9.0",
    "latest_non_vulnerable_version": "0.9.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35838?format=api",
            "vulnerability_id": "VCID-27c8-vs27-7fdg",
            "summary": "Unrestricted Upload of File with Dangerous Type in Django-Widgy v0.8.4 allows remote attackers to execute arbitrary code via the 'image' widget in the component 'Change Widgy Page'.",
            "references": [
                {
                    "reference_url": "https://github.com/advisories/GHSA-98hv-qff3-8793",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-98hv-qff3-8793"
                },
                {
                    "reference_url": "https://github.com/fusionbox/django-widgy",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/fusionbox/django-widgy"
                },
                {
                    "reference_url": "https://github.com/fusionbox/django-widgy/issues/387",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/fusionbox/django-widgy/issues/387"
                },
                {
                    "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/django-widgy/PYSEC-2021-336.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pypa/advisory-database/tree/main/vulns/django-widgy/PYSEC-2021-336.yaml"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-18704",
                    "reference_id": "CVE-2020-18704",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-18704"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/23340?format=api",
                    "purl": "pkg:pypi/django-widgy@0.9.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/django-widgy@0.9.0"
                }
            ],
            "aliases": [
                "CVE-2020-18704",
                "GHSA-98hv-qff3-8793",
                "PYSEC-2021-336"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-27c8-vs27-7fdg"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/django-widgy@0.8.0"
}