Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/55244?format=api",
    "purl": "pkg:composer/yiisoft/yii2-elasticsearch@2.0.5",
    "type": "composer",
    "namespace": "yiisoft",
    "name": "yii2-elasticsearch",
    "version": "2.0.5",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "2.0.5",
    "latest_non_vulnerable_version": "2.0.5",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39516?format=api",
            "vulnerability_id": "VCID-vhy5-48ge-vyat",
            "summary": "Code Injection\nYii allows remote attackers to inject unintended search conditions.",
            "references": [
                {
                    "reference_url": "https://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-8074",
                    "reference_id": "CVE-2018-8074",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-8074"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/55244?format=api",
                    "purl": "pkg:composer/yiisoft/yii2-elasticsearch@2.0.5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/yiisoft/yii2-elasticsearch@2.0.5"
                }
            ],
            "aliases": [
                "CVE-2018-8074"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-vhy5-48ge-vyat"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/yiisoft/yii2-elasticsearch@2.0.5"
}