Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/52605?format=api",
    "purl": "pkg:maven/org.apache-extras.beanshell/bsh@2.0b5",
    "type": "maven",
    "namespace": "org.apache-extras.beanshell",
    "name": "bsh",
    "version": "2.0b5",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.0b6",
    "latest_non_vulnerable_version": "2.0b6",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38062?format=api",
            "vulnerability_id": "VCID-k11p-9ja1-nfhp",
            "summary": "Code Injection\nBeanShell when included on the classpath by an application that uses Java serialization or XStream, allows remote attackers to execute arbitrary code via crafted serialized data, related to `XThis.Handler`.",
            "references": [
                {
                    "reference_url": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-2510",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-2510"
                },
                {
                    "reference_url": "https://github.com/beanshell/beanshell/releases/tag/2.0b6",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/beanshell/beanshell/releases/tag/2.0b6"
                },
                {
                    "reference_url": "https://www.rsaconference.com/writable/presentations/file_upload/asd-f03-serial-killer-silently-pwning-your-java-endpoints.pdf",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.rsaconference.com/writable/presentations/file_upload/asd-f03-serial-killer-silently-pwning-your-java-endpoints.pdf"
                },
                {
                    "reference_url": "https://access.redhat.com/security/cve/cve-2016-2510",
                    "reference_id": "CVE-2016-2510",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/security/cve/cve-2016-2510"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52606?format=api",
                    "purl": "pkg:maven/org.apache-extras.beanshell/bsh@2.0b6",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache-extras.beanshell/bsh@2.0b6"
                }
            ],
            "aliases": [
                "CVE-2016-2510"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-k11p-9ja1-nfhp"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache-extras.beanshell/bsh@2.0b5"
}