Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/46777?format=api",
    "vulnerability_id": "VCID-jhen-vhqx-n7dr",
    "summary": "Improper Privilege Management\nCraft is a content management system. This is a potential moderate impact, low complexity privilege escalation vulnerability in Craft starting in 3.x prior to 3.9.6 and 4.x prior to 4.4.16 with certain user permissions setups. This has been fixed in Craft 4.4.16 and Craft 3.9.6. Users should ensure they are running at least those versions.",
    "aliases": [
        {
            "alias": "CVE-2024-21622"
        },
        {
            "alias": "GHSA-j5g9-j7r4-6qvx"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/68405?format=api",
            "purl": "pkg:composer/craftcms/cms@3.9.6",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/craftcms/cms@3.9.6"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/68406?format=api",
            "purl": "pkg:composer/craftcms/cms@4.5.11",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/craftcms/cms@4.5.11"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/65067?format=api",
            "purl": "pkg:composer/craftcms/cms@3.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-5mnd-qvaq-k3am"
                },
                {
                    "vulnerability": "VCID-6hcd-ayyh-3fdb"
                },
                {
                    "vulnerability": "VCID-ec34-nvn3-qbcb"
                },
                {
                    "vulnerability": "VCID-hm7h-7cu3-8be1"
                },
                {
                    "vulnerability": "VCID-jhen-vhqx-n7dr"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/craftcms/cms@3.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/68403?format=api",
            "purl": "pkg:composer/craftcms/cms@3.9.5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-jhen-vhqx-n7dr"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/craftcms/cms@3.9.5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/65261?format=api",
            "purl": "pkg:composer/craftcms/cms@4.0.0-RC1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1468-4fdx-kbfr"
                },
                {
                    "vulnerability": "VCID-1mb5-28xp-ckd2"
                },
                {
                    "vulnerability": "VCID-2vn9-2cs3-vbg3"
                },
                {
                    "vulnerability": "VCID-7y4f-ef7t-47eb"
                },
                {
                    "vulnerability": "VCID-8u2j-17a4-q7eh"
                },
                {
                    "vulnerability": "VCID-9enr-b6zd-mbh8"
                },
                {
                    "vulnerability": "VCID-akrv-yqnf-1kg8"
                },
                {
                    "vulnerability": "VCID-azr5-12f8-hfbm"
                },
                {
                    "vulnerability": "VCID-cys8-jnmu-77ec"
                },
                {
                    "vulnerability": "VCID-ec34-nvn3-qbcb"
                },
                {
                    "vulnerability": "VCID-f7gc-cgka-tycr"
                },
                {
                    "vulnerability": "VCID-hyct-5gap-7kdu"
                },
                {
                    "vulnerability": "VCID-jeyh-3jxd-z3g6"
                },
                {
                    "vulnerability": "VCID-jhen-vhqx-n7dr"
                },
                {
                    "vulnerability": "VCID-jxz8-g6fq-dubw"
                },
                {
                    "vulnerability": "VCID-kbrc-85av-nfcn"
                },
                {
                    "vulnerability": "VCID-m5rf-usae-yfb7"
                },
                {
                    "vulnerability": "VCID-ppet-ruae-1kav"
                },
                {
                    "vulnerability": "VCID-qwmy-d2e8-5khw"
                },
                {
                    "vulnerability": "VCID-qywv-vf4r-8bh9"
                },
                {
                    "vulnerability": "VCID-twuy-wzb7-k7g3"
                },
                {
                    "vulnerability": "VCID-vasz-rnn1-67ev"
                },
                {
                    "vulnerability": "VCID-w9yn-1573-hyau"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/craftcms/cms@4.0.0-RC1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/68404?format=api",
            "purl": "pkg:composer/craftcms/cms@4.5.10",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-jhen-vhqx-n7dr"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/craftcms/cms@4.5.10"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#4511---2023-11-16",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#4511---2023-11-16"
        },
        {
            "reference_url": "https://github.com/craftcms/cms/blob/v3/CHANGELOG.md#396---2023-11-16",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/craftcms/cms/blob/v3/CHANGELOG.md#396---2023-11-16"
        },
        {
            "reference_url": "https://github.com/craftcms/cms/commit/76caf9af07d9964be0fd362772223be6a5f5b6aa",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/craftcms/cms/commit/76caf9af07d9964be0fd362772223be6a5f5b6aa"
        },
        {
            "reference_url": "https://github.com/craftcms/cms/commit/be81eb653d633833f2ab22510794abb6bb9c0843",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/craftcms/cms/commit/be81eb653d633833f2ab22510794abb6bb9c0843"
        },
        {
            "reference_url": "https://github.com/craftcms/cms/pull/13931",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/craftcms/cms/pull/13931"
        },
        {
            "reference_url": "https://github.com/craftcms/cms/pull/13932",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/craftcms/cms/pull/13932"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21622",
            "reference_id": "CVE-2024-21622",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21622"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-j5g9-j7r4-6qvx",
            "reference_id": "GHSA-j5g9-j7r4-6qvx",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-j5g9-j7r4-6qvx"
        },
        {
            "reference_url": "https://github.com/craftcms/cms/security/advisories/GHSA-j5g9-j7r4-6qvx",
            "reference_id": "GHSA-j5g9-j7r4-6qvx",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/craftcms/cms/security/advisories/GHSA-j5g9-j7r4-6qvx"
        }
    ],
    "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": 269,
            "name": "Improper Privilege Management",
            "description": "The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor."
        },
        {
            "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-jhen-vhqx-n7dr"
}