Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/56902?format=api",
    "purl": "pkg:maven/org.postgresql/pgjdbc-aggregate@42.2.5",
    "type": "maven",
    "namespace": "org.postgresql",
    "name": "pgjdbc-aggregate",
    "version": "42.2.5",
    "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/40390?format=api",
            "vulnerability_id": "VCID-1vpc-un4w-kyg9",
            "summary": "Improper Validation of Certificate with Host Mismatch\nA weakness was found in postgresql-jdbc before version 42.2.5. It was possible to provide an SSL Factory and not check the host name if a host name verifier was not provided to the driver. This could lead to a condition where a man-in-the-middle attacker could masquerade as a trusted server by providing a certificate for the wrong host, as long as it was signed by a trusted CA.",
            "references": [
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-10936",
                    "reference_id": "CVE-2018-10936",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-10936"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-568q-9fw5-28wf",
                    "reference_id": "GHSA-568q-9fw5-28wf",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-568q-9fw5-28wf"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/56902?format=api",
                    "purl": "pkg:maven/org.postgresql/pgjdbc-aggregate@42.2.5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/pgjdbc-aggregate@42.2.5"
                }
            ],
            "aliases": [
                "CVE-2018-10936",
                "GHSA-568q-9fw5-28wf"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-1vpc-un4w-kyg9"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/pgjdbc-aggregate@42.2.5"
}