Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/15?format=api",
    "purl": "pkg:nuget/Microsoft.AspNetCore.Mvc.Core@1.0.2",
    "type": "nuget",
    "namespace": "",
    "name": "Microsoft.AspNetCore.Mvc.Core",
    "version": "1.0.2",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.0.6",
    "latest_non_vulnerable_version": "1.1.5",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/4?format=api",
            "vulnerability_id": "VCID-ju3g-r5sj-4ueq",
            "summary": "Microsoft Security Advisory CVE-2017-8700: CORS bypass can enable Information Disclosure",
            "references": [
                {
                    "reference_url": "https://github.com/aspnet/Announcements/issues/279",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/aspnet/Announcements/issues/279"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/13?format=api",
                    "purl": "pkg:nuget/Microsoft.AspNetCore.Mvc.Core@1.0.6",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/Microsoft.AspNetCore.Mvc.Core@1.0.6"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/20?format=api",
                    "purl": "pkg:nuget/Microsoft.AspNetCore.Mvc.Core@1.1.5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/Microsoft.AspNetCore.Mvc.Core@1.1.5"
                }
            ],
            "aliases": [
                "CVE-2017-8700"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ju3g-r5sj-4ueq"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/Microsoft.AspNetCore.Mvc.Core@1.0.2"
}