Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/52131?format=api",
    "purl": "pkg:composer/zf-commons/zfc-user@1.2.2",
    "type": "composer",
    "namespace": "zf-commons",
    "name": "zfc-user",
    "version": "1.2.2",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37791?format=api",
            "vulnerability_id": "VCID-6e4x-euhp-s3fs",
            "summary": "Cross-site Scripting\nCross-site scripting (XSS) vulnerability in `user/login.phtml` in ZF-Commons ZfcUser allows remote attackers to inject arbitrary web script or HTML via the redirect parameter.",
            "references": [
                {
                    "reference_url": "https://github.com/ZF-Commons/ZfcUser/issues/550",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/ZF-Commons/ZfcUser/issues/550"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52131?format=api",
                    "purl": "pkg:composer/zf-commons/zfc-user@1.2.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/zf-commons/zfc-user@1.2.2"
                }
            ],
            "aliases": [
                "CVE-2015-1039"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-6e4x-euhp-s3fs"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/zf-commons/zfc-user@1.2.2"
}