Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/54852?format=api",
    "purl": "pkg:npm/libp2p-secio@0.9.0",
    "type": "npm",
    "namespace": "",
    "name": "libp2p-secio",
    "version": "0.9.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "0.9.0",
    "latest_non_vulnerable_version": "0.9.0",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39309?format=api",
            "vulnerability_id": "VCID-bebz-99kg-ffam",
            "summary": "Identity Spoofing\nlibp2p-secio is not correctly checking the that the PeerId of the DstPeer matched the PeerId that the peer learns through the Crypto Handshake creating a high severity vulnerability as the purpose of SECIO is to authenticate the other Peer.",
            "references": [
                {
                    "reference_url": "https://github.com/libp2p/js-libp2p-secio/pull/95",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/libp2p/js-libp2p-secio/pull/95"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54852?format=api",
                    "purl": "pkg:npm/libp2p-secio@0.9.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/libp2p-secio@0.9.0"
                }
            ],
            "aliases": [
                "GMS-2018-2"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-bebz-99kg-ffam"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/libp2p-secio@0.9.0"
}