Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/42541?format=api",
    "vulnerability_id": "VCID-283r-1kb4-9kew",
    "summary": "Improper Input Validation\nCodeIgniter4 is the 4.x branch of CodeIgniter, a PHP full-stack web framework. Prior to version 4.1.9, an improper input validation vulnerability allows attackers to execute CLI routes via HTTP request. Version 4.1.9 contains a patch. There are currently no known workarounds for this vulnerability.",
    "aliases": [
        {
            "alias": "CVE-2022-24711"
        },
        {
            "alias": "GHSA-xjp4-6w75-qrj7"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/60818?format=api",
            "purl": "pkg:composer/codeigniter4/framework@4.1.9",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/codeigniter4/framework@4.1.9"
        }
    ],
    "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/202f41ad522ba1d414b9d9c35aba1cb0c156b781",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/codeigniter4/CodeIgniter4/commit/202f41ad522ba1d414b9d9c35aba1cb0c156b781"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-24711",
            "reference_id": "CVE-2022-24711",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-24711"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-xjp4-6w75-qrj7",
            "reference_id": "GHSA-xjp4-6w75-qrj7",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-xjp4-6w75-qrj7"
        },
        {
            "reference_url": "https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-xjp4-6w75-qrj7",
            "reference_id": "GHSA-xjp4-6w75-qrj7",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-xjp4-6w75-qrj7"
        }
    ],
    "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": 20,
            "name": "Improper Input Validation",
            "description": "The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly."
        },
        {
            "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-283r-1kb4-9kew"
}