Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/55470?format=api",
    "purl": "pkg:maven/com.liulishuo.filedownloader/library@1.7.3",
    "type": "maven",
    "namespace": "com.liulishuo.filedownloader",
    "name": "library",
    "version": "1.7.3",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.7.4",
    "latest_non_vulnerable_version": "1.7.4",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39636?format=api",
            "vulnerability_id": "VCID-navf-kn8x-tbbw",
            "summary": "Path Traversal\n`util/FileDownloadUtils.java` in `FileDownloader` does not check an attachment name. If an attacker places `../` in the file name, the file can be stored in an unintended directory because of Directory Traversal.",
            "references": [
                {
                    "reference_url": "https://github.com/lingochamp/FileDownloader/issues/1028",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/lingochamp/FileDownloader/issues/1028"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-11248",
                    "reference_id": "CVE-2018-11248",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-11248"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/55471?format=api",
                    "purl": "pkg:maven/com.liulishuo.filedownloader/library@1.7.4",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.liulishuo.filedownloader/library@1.7.4"
                }
            ],
            "aliases": [
                "CVE-2018-11248"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-navf-kn8x-tbbw"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.liulishuo.filedownloader/library@1.7.3"
}