Lookup for vulnerabilities affecting packages.

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

{
    "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()`.",
    "aliases": [
        {
            "alias": "CVE-2022-21647"
        },
        {
            "alias": "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"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53180?format=api",
            "purl": "pkg:composer/codeigniter4/framework@4.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-283r-1kb4-9kew"
                },
                {
                    "vulnerability": "VCID-3jm3-513z-p7ed"
                },
                {
                    "vulnerability": "VCID-fpsw-s5r4-5uhe"
                },
                {
                    "vulnerability": "VCID-pskc-ec8x-wyc2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/codeigniter4/framework@4.0.0"
        }
    ],
    "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"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 1035,
            "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
        },
        {
            "cwe_id": 502,
            "name": "Deserialization of Untrusted Data",
            "description": "The product deserializes untrusted data without sufficiently verifying that the resulting data will be valid."
        },
        {
            "cwe_id": 937,
            "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-3jm3-513z-p7ed"
}