Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/56985?format=api",
    "purl": "pkg:maven/org.apache.spark/spark-core_2.11@1.0.0",
    "type": "maven",
    "namespace": "org.apache.spark",
    "name": "spark-core_2.11",
    "version": "1.0.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.1.2",
    "latest_non_vulnerable_version": "2.3.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40165?format=api",
            "vulnerability_id": "VCID-8fxy-5cvh-vfag",
            "summary": "Improper Authentication\nApache Spark standalone master exposes a REST API for job submission, in addition to the submission mechanism used by spark-submit. In standalone, the config property `spark.authenticate.secret` establishes a shared secret for authenticating requests to submit jobs via spark-submit. However, the REST API does not use this or any other authentication mechanism, and this is not adequately documented. In this case, a user would be able to run a driver program without authenticating, but not launch executors, using the REST API.",
            "references": [
                {
                    "reference_url": "https://lists.apache.org/thread.html/bd8e51314041451a2acd720e9223fc1c15a263ccacb396a75b1fc485@%3Cdev.spark.apache.org%3E",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://lists.apache.org/thread.html/bd8e51314041451a2acd720e9223fc1c15a263ccacb396a75b1fc485@%3Cdev.spark.apache.org%3E"
                },
                {
                    "reference_url": "https://spark.apache.org/security.html#CVE-2018-11770",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://spark.apache.org/security.html#CVE-2018-11770"
                },
                {
                    "reference_url": "http://www.securityfocus.com/bid/105097",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.securityfocus.com/bid/105097"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-11770",
                    "reference_id": "CVE-2018-11770",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-11770"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-w4r4-65mg-45x2",
                    "reference_id": "GHSA-w4r4-65mg-45x2",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-w4r4-65mg-45x2"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "CVE-2018-11770",
                "GHSA-w4r4-65mg-45x2"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-8fxy-5cvh-vfag"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.spark/spark-core_2.11@1.0.0"
}