Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/622142?format=api",
    "purl": "pkg:pypi/apache-airflow-providers-apache-pig@2.0.2rc1",
    "type": "pypi",
    "namespace": "",
    "name": "apache-airflow-providers-apache-pig",
    "version": "2.0.2rc1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "4.0.0",
    "latest_non_vulnerable_version": "4.0.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/110310?format=api",
            "vulnerability_id": "VCID-tcvd-eys5-1qhf",
            "summary": "OS Command Injection in Apache Airflow\nImproper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airflow Pig Provider, Apache Airflow allows an attacker to control commands executed in the task execution context, without write access to DAG files. This issue affects Pig Provider versions prior to 4.0.0. It also impacts any Apache Airflow versions prior to 2.3.0 in case Pig Provider is installed (Pig Provider 4.0.0 can only be installed for Airflow 2.3.0+). Note that you need to manually install the Pig Provider version 4.0.0 in order to get rid of the vulnerability on top of Airflow 2.3.0+ version.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2022-40189",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.15925",
                            "scoring_system": "epss",
                            "scoring_elements": "0.94881",
                            "published_at": "2026-06-04T12:55:00Z"
                        },
                        {
                            "value": "0.15925",
                            "scoring_system": "epss",
                            "scoring_elements": "0.94891",
                            "published_at": "2026-06-08T12:55:00Z"
                        },
                        {
                            "value": "0.15925",
                            "scoring_system": "epss",
                            "scoring_elements": "0.9489",
                            "published_at": "2026-06-06T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-40189"
                },
                {
                    "reference_url": "https://github.com/apache/airflow",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/apache/airflow"
                },
                {
                    "reference_url": "https://github.com/apache/airflow/pull/27644",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:N/A:Y/T:T/P:M/B:A/M:M/D:T/2025-04-29T04:24:47Z/"
                        }
                    ],
                    "url": "https://github.com/apache/airflow/pull/27644"
                },
                {
                    "reference_url": "https://lists.apache.org/thread/yxnfzfw2w9pj5s785k3rlyly4y44sd15",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:N/A:Y/T:T/P:M/B:A/M:M/D:T/2025-04-29T04:24:47Z/"
                        }
                    ],
                    "url": "https://lists.apache.org/thread/yxnfzfw2w9pj5s785k3rlyly4y44sd15"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-40189",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-40189"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-rmf2-pwfq-h75j",
                    "reference_id": "GHSA-rmf2-pwfq-h75j",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "CRITICAL",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-rmf2-pwfq-h75j"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/504766?format=api",
                    "purl": "pkg:pypi/apache-airflow-providers-apache-pig@4.0.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/apache-airflow-providers-apache-pig@4.0.0"
                }
            ],
            "aliases": [
                "CVE-2022-40189",
                "GHSA-rmf2-pwfq-h75j"
            ],
            "risk_score": 4.5,
            "exploitability": "0.5",
            "weighted_severity": "9.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-tcvd-eys5-1qhf"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.5",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/apache-airflow-providers-apache-pig@2.0.2rc1"
}