Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/14968?format=api",
    "purl": "pkg:pypi/webargs@5.2.0",
    "type": "pypi",
    "namespace": "",
    "name": "webargs",
    "version": "5.2.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "5.5.3",
    "latest_non_vulnerable_version": "5.5.3",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35502?format=api",
            "vulnerability_id": "VCID-11rq-guar-cudu",
            "summary": "flaskparser.py in Webargs 5.x through 5.5.2 doesn't check that the Content-Type header is application/json when receiving JSON input. If the request body is valid JSON, it will accept it even if the content type is application/x-www-form-urlencoded. This allows for JSON POST requests to be made across domains, leading to CSRF.",
            "references": [
                {
                    "reference_url": "https://github.com/advisories/GHSA-fjq3-5pxw-4wj4",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-fjq3-5pxw-4wj4"
                },
                {
                    "reference_url": "https://webargs.readthedocs.io/en/latest/changelog.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://webargs.readthedocs.io/en/latest/changelog.html"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/14976?format=api",
                    "purl": "pkg:pypi/webargs@5.5.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/webargs@5.5.3"
                }
            ],
            "aliases": [
                "CVE-2020-7965",
                "GHSA-fjq3-5pxw-4wj4",
                "PYSEC-2020-156"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-11rq-guar-cudu"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/webargs@5.2.0"
}