Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/28790?format=api",
    "purl": "pkg:pypi/ansible-runner@2.0.3",
    "type": "pypi",
    "namespace": "",
    "name": "ansible-runner",
    "version": "2.0.3",
    "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/36166?format=api",
            "vulnerability_id": "VCID-156y-36mu-hbbh",
            "summary": "A race condition flaw was found in ansible-runner, where an attacker could watch for rapid creation and deletion of a temporary directory, substitute their directory at that name, and then have access to ansible-runner's private_data_dir the next time ansible-runner made use of the private_data_dir. The highest Threat out of this flaw is to integrity and confidentiality.",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/security/cve/CVE-2021-3702",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
                        }
                    ],
                    "url": "https://access.redhat.com/security/cve/CVE-2021-3702"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1977965",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
                        }
                    ],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1977965"
                },
                {
                    "reference_url": "https://github.com/ansible/ansible-runner/pull/742/commits",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
                        }
                    ],
                    "url": "https://github.com/ansible/ansible-runner/pull/742/commits"
                }
            ],
            "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-3702",
                "GHSA-772j-xvf9-qpf5",
                "PYSEC-2022-43068"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-156y-36mu-hbbh"
        },
        {
            "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"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/36165?format=api",
            "vulnerability_id": "VCID-ebnj-xar7-fban",
            "summary": "A flaw was found in ansible-runner where the default temporary files configuration in ansible-2.0.0 are written to world R/W locations. This flaw allows an attacker to pre-create the directory, resulting in reading private information or forcing ansible-runner to write files as the legitimate user in a place they did not expect. The highest threat from this vulnerability is to confidentiality and integrity.",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/security/cve/CVE-2021-3701",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.6",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"
                        }
                    ],
                    "url": "https://access.redhat.com/security/cve/CVE-2021-3701"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1977959",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.6",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"
                        }
                    ],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1977959"
                },
                {
                    "reference_url": "https://github.com/ansible/ansible-runner/issues/738",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.6",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"
                        }
                    ],
                    "url": "https://github.com/ansible/ansible-runner/issues/738"
                },
                {
                    "reference_url": "https://github.com/ansible/ansible-runner/pull/742/commits",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.6",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"
                        }
                    ],
                    "url": "https://github.com/ansible/ansible-runner/pull/742/commits"
                }
            ],
            "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-3701",
                "GHSA-wwch-cmqr-hhrm",
                "PYSEC-2022-43067"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ebnj-xar7-fban"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/ansible-runner@2.0.3"
}