Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/52274?format=api",
    "purl": "pkg:composer/yiisoft/yii2-bootstrap@2.0.4",
    "type": "composer",
    "namespace": "yiisoft",
    "name": "yii2-bootstrap",
    "version": "2.0.4",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "2.0.4",
    "latest_non_vulnerable_version": "2.0.4",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37852?format=api",
            "vulnerability_id": "VCID-hhby-y7fg-tqax",
            "summary": "Cross-site Scripting\nCross-site scripting (XSS) vulnerability in Yii Framework allows remote attackers to inject arbitrary web script or HTML via vectors related to JSON, arrays, and Internet Explorer 6",
            "references": [
                {
                    "reference_url": "https://www.yiiframework.com/news/86/yii-2-0-4-is-released/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.yiiframework.com/news/86/yii-2-0-4-is-released/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52274?format=api",
                    "purl": "pkg:composer/yiisoft/yii2-bootstrap@2.0.4",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/yiisoft/yii2-bootstrap@2.0.4"
                }
            ],
            "aliases": [
                "CVE-2015-3397"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-hhby-y7fg-tqax"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/yiisoft/yii2-bootstrap@2.0.4"
}