Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/55247?format=api",
    "purl": "pkg:nuget/identityserver4@2.0.0",
    "type": "nuget",
    "namespace": "",
    "name": "identityserver4",
    "version": "2.0.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.5.3",
    "latest_non_vulnerable_version": "2.1.3",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39517?format=api",
            "vulnerability_id": "VCID-xjk1-bb1k-g7fv",
            "summary": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\nIdentityServer IdentityServer4 does not encode the redirect URI on the authorization response page, which might lead to XSS in some configurations.",
            "references": [
                {
                    "reference_url": "https://github.com/IdentityServer/IdentityServer4/commit/21d0da227f50ac102de469a13bc5a15d2cc0f895",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/IdentityServer/IdentityServer4/commit/21d0da227f50ac102de469a13bc5a15d2cc0f895"
                },
                {
                    "reference_url": "https://github.com/IdentityServer/IdentityServer4/issues/2164",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/IdentityServer/IdentityServer4/issues/2164"
                },
                {
                    "reference_url": "https://github.com/IdentityServer/IdentityServer4/releases/tag/1.5.3",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/IdentityServer/IdentityServer4/releases/tag/1.5.3"
                },
                {
                    "reference_url": "https://github.com/IdentityServer/IdentityServer4/releases/tag/2.1.3",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/IdentityServer/IdentityServer4/releases/tag/2.1.3"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-8899",
                    "reference_id": "CVE-2018-8899",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-8899"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/55250?format=api",
                    "purl": "pkg:nuget/identityserver4@2.1.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/identityserver4@2.1.3"
                }
            ],
            "aliases": [
                "CVE-2018-8899"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-xjk1-bb1k-g7fv"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/identityserver4@2.0.0"
}