Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/51920?format=api",
    "purl": "pkg:npm/sanitize-html@1.2.3",
    "type": "npm",
    "namespace": "",
    "name": "sanitize-html",
    "version": "1.2.3",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "1.4.3",
    "latest_non_vulnerable_version": "2.12.1",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39765?format=api",
            "vulnerability_id": "VCID-cccv-dkqw-xyhu",
            "summary": "Cross-site Scripting\nsanitize-html has a cross site scripting vulnerability.",
            "references": [
                {
                    "reference_url": "https://github.com/punkave/sanitize-html/pull/20",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/punkave/sanitize-html/pull/20"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16017",
                    "reference_id": "CVE-2017-16017",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16017"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/51920?format=api",
                    "purl": "pkg:npm/sanitize-html@1.2.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/sanitize-html@1.2.3"
                }
            ],
            "aliases": [
                "CVE-2017-16017"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-cccv-dkqw-xyhu"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37725?format=api",
            "vulnerability_id": "VCID-xpd8-acbr-ffab",
            "summary": "Cross Site Scripting\nsanitize-html will merge an incomplete attribute like `SRC=` with the next attribute. While the result is not valid HTML it may be misinterpreted by the browser.",
            "references": [
                {
                    "reference_url": "https://github.com/punkave/sanitize-html/issues/19",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/punkave/sanitize-html/issues/19"
                },
                {
                    "reference_url": "https://github.com/punkave/sanitize-html/pull/20",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/punkave/sanitize-html/pull/20"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/51920?format=api",
                    "purl": "pkg:npm/sanitize-html@1.2.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/sanitize-html@1.2.3"
                }
            ],
            "aliases": [
                "GMS-2014-17"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-xpd8-acbr-ffab"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/sanitize-html@1.2.3"
}