Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/64723?format=api",
    "purl": "pkg:maven/org.apache.spark/spark-core@3.4.0",
    "type": "maven",
    "namespace": "org.apache.spark",
    "name": "spark-core",
    "version": "3.4.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/36419?format=api",
            "vulnerability_id": "VCID-adsy-uby8-gkc9",
            "summary": "In Apache Spark versions prior to 3.4.0, applications using spark-submit can specify a 'proxy-user' to run as, limiting privileges. The application can execute code with the privileges of the submitting user, however, by providing malicious configuration-related classes on the classpath. This affects architectures relying on proxy-user, for example those using Apache Livy to manage submitted applications.\n\nUpdate to Apache Spark 3.4.0 or later, and ensure that \nspark.submit.proxyUser.allowCustomClasspathInClusterMode is set to its \ndefault of \"false\", and is not overridden by submitted applications.",
            "references": [
                {
                    "reference_url": "https://github.com/apache/spark",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/apache/spark"
                },
                {
                    "reference_url": "https://github.com/apache/spark/commit/909da96e1471886a01a9e1def93630c4fd40e74a",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/apache/spark/commit/909da96e1471886a01a9e1def93630c4fd40e74a"
                },
                {
                    "reference_url": "https://github.com/apache/spark/pull/39474",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/apache/spark/pull/39474"
                },
                {
                    "reference_url": "https://github.com/apache/spark/pull/41428",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/apache/spark/pull/41428"
                },
                {
                    "reference_url": "https://github.com/degant/spark/commit/bfba57724d2520e0fcaa7990f7257c21d11cd75a",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/degant/spark/commit/bfba57724d2520e0fcaa7990f7257c21d11cd75a"
                },
                {
                    "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-44.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-44.yaml"
                },
                {
                    "reference_url": "https://issues.apache.org/jira/browse/SPARK-41958",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://issues.apache.org/jira/browse/SPARK-41958"
                },
                {
                    "reference_url": "https://lists.apache.org/thread/yllfl25xh5tbotjmg93zrq4bzwhqc0gv",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://lists.apache.org/thread/yllfl25xh5tbotjmg93zrq4bzwhqc0gv"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22946",
                    "reference_id": "CVE-2023-22946",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22946"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-329j-jfvr-rhr6",
                    "reference_id": "GHSA-329j-jfvr-rhr6",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-329j-jfvr-rhr6"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/64723?format=api",
                    "purl": "pkg:maven/org.apache.spark/spark-core@3.4.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.spark/spark-core@3.4.0"
                }
            ],
            "aliases": [
                "CVE-2023-22946",
                "GHSA-329j-jfvr-rhr6",
                "PYSEC-2023-44"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-adsy-uby8-gkc9"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.spark/spark-core@3.4.0"
}