Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/56665?format=api",
    "purl": "pkg:nuget/System.ServiceModel.Security@4.1.1",
    "type": "nuget",
    "namespace": "",
    "name": "System.ServiceModel.Security",
    "version": "4.1.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "4.0.4",
    "latest_non_vulnerable_version": "4.5.3",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40291?format=api",
            "vulnerability_id": "VCID-ptfq-6gtz-rqgc",
            "summary": "Improper Certificate Validation\nMicrosoft .NET Framework 2.0 SP2, 3.0 SP2, 3.5, 3.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, .NET Core 1.0 and 2.0, and PowerShell Core 6.0.0 allow a security feature bypass vulnerability due to the way certificates are validated, aka \".NET Security Feature Bypass Vulnerability.\"",
            "references": [
                {
                    "reference_url": "https://github.com/dotnet/announcements/issues/51",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/dotnet/announcements/issues/51"
                },
                {
                    "reference_url": "https://github.com/github/advisory-database/issues/302",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/github/advisory-database/issues/302"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-0786",
                    "reference_id": "CVE-2018-0786",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-0786"
                },
                {
                    "reference_url": "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-0786",
                    "reference_id": "CVE-2018-0786",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-0786"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-jc8g-xhw5-6x46",
                    "reference_id": "GHSA-jc8g-xhw5-6x46",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-jc8g-xhw5-6x46"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/56665?format=api",
                    "purl": "pkg:nuget/System.ServiceModel.Security@4.1.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/System.ServiceModel.Security@4.1.1"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/241?format=api",
                    "purl": "pkg:nuget/System.ServiceModel.Security@4.4.1",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-q249-gkbg-b3bs"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/System.ServiceModel.Security@4.4.1"
                }
            ],
            "aliases": [
                "CVE-2018-0786",
                "GHSA-jc8g-xhw5-6x46"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ptfq-6gtz-rqgc"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/System.ServiceModel.Security@4.1.1"
}