Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/28824?format=api",
    "purl": "pkg:pypi/ansible-runner@2.0.0.0b1",
    "type": "pypi",
    "namespace": "",
    "name": "ansible-runner",
    "version": "2.0.0.0b1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.1.0",
    "latest_non_vulnerable_version": "2.1.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/36167?format=api",
            "vulnerability_id": "VCID-2exn-ce4a-tkbs",
            "summary": "A flaw was found in ansible-runner. An improper escaping of the shell command, while calling the ansible_runner.interface.run_command, can lead to parameters getting executed as host's shell command. A developer could unintentionally write code that gets executed in the host rather than the virtual environment.",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/security/cve/CVE-2021-4041",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/security/cve/CVE-2021-4041"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=2028074",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2028074"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-6j58-grhv-2769",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-6j58-grhv-2769"
                },
                {
                    "reference_url": "https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/28795?format=api",
                    "purl": "pkg:pypi/ansible-runner@2.1.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/ansible-runner@2.1.0"
                }
            ],
            "aliases": [
                "CVE-2021-4041",
                "GHSA-6j58-grhv-2769",
                "PYSEC-2022-253"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-2exn-ce4a-tkbs"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/ansible-runner@2.0.0.0b1"
}