Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/22087?format=api",
    "purl": "pkg:pypi/ansible@2.10.6",
    "type": "pypi",
    "namespace": "",
    "name": "ansible",
    "version": "2.10.6",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "3.0.0",
    "latest_non_vulnerable_version": "12.0.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/7307?format=api",
            "vulnerability_id": "VCID-hjc4-jcfm-7be5",
            "summary": "information disclosure",
            "references": [
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1956477",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1956477"
                },
                {
                    "reference_url": "https://security.archlinux.org/AVG-2056",
                    "reference_id": "AVG-2056",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "Medium",
                            "scoring_system": "archlinux",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://security.archlinux.org/AVG-2056"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/22508?format=api",
                    "purl": "pkg:pypi/ansible@3.0.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/ansible@3.0.0"
                }
            ],
            "aliases": [
                "CVE-2021-3533",
                "PYSEC-2021-126"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-hjc4-jcfm-7be5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35809?format=api",
            "vulnerability_id": "VCID-p4p5-29r5-8qh9",
            "summary": "A flaw was found in ansible. Credentials, such as secrets, are being disclosed in console log by default and not protected by no_log feature when using those modules. An attacker can take advantage of this information to steal those credentials. The highest threat from this vulnerability is to data confidentiality. Versions before ansible 2.9.18 are affected.",
            "references": [
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1916813",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1916813"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-8f4m-hccc-8qph",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-8f4m-hccc-8qph"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/22088?format=api",
                    "purl": "pkg:pypi/ansible@2.10.7",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-hjc4-jcfm-7be5"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/ansible@2.10.7"
                }
            ],
            "aliases": [
                "CVE-2021-20191",
                "GHSA-8f4m-hccc-8qph",
                "PYSEC-2021-124"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-p4p5-29r5-8qh9"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/ansible@2.10.6"
}