Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/60266?format=api",
    "purl": "pkg:maven/org.apache.shenyu/shenyu@2.4.0",
    "type": "maven",
    "namespace": "org.apache.shenyu",
    "name": "shenyu",
    "version": "2.4.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.4.2",
    "latest_non_vulnerable_version": "2.6.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/42175?format=api",
            "vulnerability_id": "VCID-jwcu-3aje-mqfb",
            "summary": "Improper Control of Generation of Code ('Code Injection')\nShenyu is vulnerable to Groovy Code Injection & SpEL Injection which can lead to Remote Code Execution.",
            "references": [
                {
                    "reference_url": "https://lists.apache.org/thread/3zzmwvg3012tg306x8o893fvdcssx639",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://lists.apache.org/thread/3zzmwvg3012tg306x8o893fvdcssx639"
                },
                {
                    "reference_url": "http://www.openwall.com/lists/oss-security/2022/01/25/8",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.openwall.com/lists/oss-security/2022/01/25/8"
                },
                {
                    "reference_url": "http://www.openwall.com/lists/oss-security/2022/01/26/1",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.openwall.com/lists/oss-security/2022/01/26/1"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-45029",
                    "reference_id": "CVE-2021-45029",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-45029"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-gh38-x2wm-xmc8",
                    "reference_id": "GHSA-gh38-x2wm-xmc8",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-gh38-x2wm-xmc8"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/60268?format=api",
                    "purl": "pkg:maven/org.apache.shenyu/shenyu@2.4.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.shenyu/shenyu@2.4.2"
                }
            ],
            "aliases": [
                "CVE-2021-45029",
                "GHSA-gh38-x2wm-xmc8"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-jwcu-3aje-mqfb"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.shenyu/shenyu@2.4.0"
}