Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/59387?format=api",
    "purl": "pkg:nuget/Piranha@9.1.1",
    "type": "nuget",
    "namespace": "",
    "name": "Piranha",
    "version": "9.1.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41630?format=api",
            "vulnerability_id": "VCID-trm2-j4j9-jbfb",
            "summary": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\nIn PiranhaCMS to are vulnerable to stored XSS due to the page title improperly sanitized. By creating a page with a specially crafted page title, a low privileged user can trigger arbitrary JavaScript execution.",
            "references": [
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-25977",
                    "reference_id": "CVE-2021-25977",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-25977"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/59388?format=api",
                    "purl": "pkg:nuget/Piranha@9.2.0",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-db47-d6yu-rbcs"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/Piranha@9.2.0"
                }
            ],
            "aliases": [
                "CVE-2021-25977"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-trm2-j4j9-jbfb"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/Piranha@9.1.1"
}