Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/77246?format=api",
    "purl": "pkg:pypi/redis@2.10.0",
    "type": "pypi",
    "namespace": "",
    "name": "redis",
    "version": "2.10.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "6.2.0",
    "latest_non_vulnerable_version": "6.2.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/218337?format=api",
            "vulnerability_id": "VCID-tuk1-7q8x-bqfm",
            "summary": "Redis before 6cbea7d allows a replica to cause an assertion failure in a primary server by sending a non-administrative command (specifically, a SET command). NOTE: this was fixed for Redis 6.2.x and 7.x in 2021. Versions before 6.2 were not intended to have safety guarantees related to this.",
            "references": [],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/77334?format=api",
                    "purl": "pkg:pypi/redis@6.2.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/redis@6.2.0"
                }
            ],
            "aliases": [
                "PYSEC-2023-312"
            ],
            "risk_score": 2.6,
            "exploitability": "0.5",
            "weighted_severity": "5.3",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-tuk1-7q8x-bqfm"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "2.6",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/redis@2.10.0"
}