Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/206277?format=api",
    "purl": "pkg:composer/piwik/piwik@2.11.1",
    "type": "composer",
    "namespace": "piwik",
    "name": "piwik",
    "version": "2.11.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.16.1",
    "latest_non_vulnerable_version": "2.16.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38251?format=api",
            "vulnerability_id": "VCID-rsw1-fxn2-6fa8",
            "summary": "PHP Object Injection Vulnerability\nThere's a PHP Object Injection vulnerability that can be triggered through the `saveLayout()` method defined into the `/plugins/Dashboard/Controller.php` script. Since Piwik is not using \"utf8mb4\" collations for its database, this can be exploited in combination with a MySQL UTF8 truncation issue in order to corrupt the session array, allowing unauthenticated attackers to inject arbitrary PHP objects into the application scope and carry out Server-Side Request Forgery (SSRF) attacks, delete arbitrary files, execute arbitrary PHP code, and possibly other attacks.",
            "references": [
                {
                    "reference_url": "http://karmainsecurity.com/KIS-2016-13",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://karmainsecurity.com/KIS-2016-13"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52968?format=api",
                    "purl": "pkg:composer/piwik/piwik@2.16.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/piwik/piwik@2.16.1"
                }
            ],
            "aliases": [
                "GMS-2016-85"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-rsw1-fxn2-6fa8"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/piwik/piwik@2.11.1"
}