Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/12222?format=api",
    "purl": "pkg:pypi/privacyidea@2.16",
    "type": "pypi",
    "namespace": "",
    "name": "privacyidea",
    "version": "2.16",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.23.2",
    "latest_non_vulnerable_version": "2.23.2",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35271?format=api",
            "vulnerability_id": "VCID-tusy-zs8z-bfgm",
            "summary": "privacyIDEA version 2.23.1 and earlier contains a Improper Input Validation vulnerability in token validation api that can result in Denial-of-Service. This attack appear to be exploitable via http request with user=<space>&pass= to /validate/check url. This vulnerability appears to have been fixed in 2.23.2.",
            "references": [
                {
                    "reference_url": "https://github.com/advisories/GHSA-7qqv-r2q4-jxhm",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-7qqv-r2q4-jxhm"
                },
                {
                    "reference_url": "https://github.com/privacyidea/privacyidea",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/privacyidea/privacyidea"
                },
                {
                    "reference_url": "https://github.com/privacyidea/privacyidea/commit/a3edc09beffa2104f357fe24971ea3211ce40751",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/privacyidea/privacyidea/commit/a3edc09beffa2104f357fe24971ea3211ce40751"
                },
                {
                    "reference_url": "https://github.com/privacyidea/privacyidea/issues/1227",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/privacyidea/privacyidea/issues/1227"
                },
                {
                    "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/privacyidea/PYSEC-2018-20.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pypa/advisory-database/tree/main/vulns/privacyidea/PYSEC-2018-20.yaml"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-1000809",
                    "reference_id": "CVE-2018-1000809",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-1000809"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/12268?format=api",
                    "purl": "pkg:pypi/privacyidea@2.23.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/privacyidea@2.23.2"
                }
            ],
            "aliases": [
                "CVE-2018-1000809",
                "GHSA-7qqv-r2q4-jxhm",
                "PYSEC-2018-20"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-tusy-zs8z-bfgm"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/privacyidea@2.16"
}