Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/58660?format=api",
    "purl": "pkg:npm/express-cart@1.1.11",
    "type": "npm",
    "namespace": "",
    "name": "express-cart",
    "version": "1.1.11",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "1.1.6",
    "latest_non_vulnerable_version": "1.1.11",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41302?format=api",
            "vulnerability_id": "VCID-145a-97vu-jyeg",
            "summary": "Cross-Site Request Forgery (CSRF)\nThe express-cart package for Node.js allows CSRF.",
            "references": [
                {
                    "reference_url": "https://hackerone.com/reports/395944",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://hackerone.com/reports/395944"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-22403",
                    "reference_id": "CVE-2020-22403",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-22403"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/58660?format=api",
                    "purl": "pkg:npm/express-cart@1.1.11",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/express-cart@1.1.11"
                }
            ],
            "aliases": [
                "CVE-2020-22403"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-145a-97vu-jyeg"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/express-cart@1.1.11"
}