Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/23417?format=api",
    "purl": "pkg:pypi/pywb@2.4.2",
    "type": "pypi",
    "namespace": "",
    "name": "pywb",
    "version": "2.4.2",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.6.0",
    "latest_non_vulnerable_version": "2.6.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35844?format=api",
            "vulnerability_id": "VCID-ka7a-mwvs-87eb",
            "summary": "Webrecorder pywb before 2.6.0 allows XSS because it does not ensure that Jinja2 templates are autoescaped.",
            "references": [
                {
                    "reference_url": "https://github.com/advisories/GHSA-947x-pv47-pp3q",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-947x-pv47-pp3q"
                },
                {
                    "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/pywb/PYSEC-2021-120.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pypa/advisory-database/tree/main/vulns/pywb/PYSEC-2021-120.yaml"
                },
                {
                    "reference_url": "https://github.com/webrecorder/pywb",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/webrecorder/pywb"
                },
                {
                    "reference_url": "https://github.com/webrecorder/pywb/commit/f7bd84cdacdd665ff73ae8d09a202f60be2ebae9",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/webrecorder/pywb/commit/f7bd84cdacdd665ff73ae8d09a202f60be2ebae9"
                },
                {
                    "reference_url": "https://github.com/webrecorder/pywb/compare/v-2.5.0...v-2.6.0",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/webrecorder/pywb/compare/v-2.5.0...v-2.6.0"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-39286",
                    "reference_id": "CVE-2021-39286",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-39286"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/23424?format=api",
                    "purl": "pkg:pypi/pywb@2.6.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/pywb@2.6.0"
                }
            ],
            "aliases": [
                "CVE-2021-39286",
                "GHSA-947x-pv47-pp3q",
                "PYSEC-2021-120"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ka7a-mwvs-87eb"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/pywb@2.4.2"
}