Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/54921?format=api",
    "purl": "pkg:maven/org.apache.hadoop/hadoop-kms@2.7.3",
    "type": "maven",
    "namespace": "org.apache.hadoop",
    "name": "hadoop-kms",
    "version": "2.7.3",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.7.7",
    "latest_non_vulnerable_version": "2.9.2",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39339?format=api",
            "vulnerability_id": "VCID-db4t-grfx-eqc6",
            "summary": "Information Exposure\nThe YARN NodeManager in Apache Hadoop can leak the password for credential store provider used by the NodeManager to YARN Applications.",
            "references": [
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-15718",
                    "reference_id": "CVE-2017-15718",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-15718"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54923?format=api",
                    "purl": "pkg:maven/org.apache.hadoop/hadoop-kms@2.7.5",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-371e-cg9e-tydr"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.hadoop/hadoop-kms@2.7.5"
                }
            ],
            "aliases": [
                "CVE-2017-15718"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-db4t-grfx-eqc6"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.hadoop/hadoop-kms@2.7.3"
}