Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/59945?format=api",
    "purl": "pkg:composer/codeigniter4/framework@4.1.6",
    "type": "composer",
    "namespace": "codeigniter4",
    "name": "framework",
    "version": "4.1.6",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "4.1.8",
    "latest_non_vulnerable_version": "4.4.7",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41947?format=api",
            "vulnerability_id": "VCID-3jm3-513z-p7ed",
            "summary": "CodeIgniter is an open source PHP full-stack web framework. Deserialization of Untrusted Data was found in the `old()` function in CodeIgniter4. Remote attackers may inject auto-loadable arbitrary objects with this vulnerability, and possibly execute existing PHP code on the server. We are aware of a working exploit, which can lead to SQL injection. Users are advised to upgrade to v4.1.6 or later. Users unable to upgrade as advised to not use the `old()` function and form_helper nor `RedirectResponse::withInput()` and `redirect()->withInput()`.",
            "references": [
                {
                    "reference_url": "https://github.com/codeigniter4/CodeIgniter4/commit/ce95ed5765256e2f09f3513e7d42790e0d6948f5",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/codeigniter4/CodeIgniter4/commit/ce95ed5765256e2f09f3513e7d42790e0d6948f5"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-21647",
                    "reference_id": "CVE-2022-21647",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-21647"
                },
                {
                    "reference_url": "https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-w6jr-wj64-mc9x",
                    "reference_id": "GHSA-w6jr-wj64-mc9x",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-w6jr-wj64-mc9x"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/59945?format=api",
                    "purl": "pkg:composer/codeigniter4/framework@4.1.6",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/codeigniter4/framework@4.1.6"
                }
            ],
            "aliases": [
                "CVE-2022-21647",
                "GHSA-w6jr-wj64-mc9x"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-3jm3-513z-p7ed"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/codeigniter4/framework@4.1.6"
}