Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/38948?format=api",
    "purl": "pkg:pypi/metagpt@0.6.0",
    "type": "pypi",
    "namespace": "",
    "name": "metagpt",
    "version": "0.6.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "0.6.5",
    "latest_non_vulnerable_version": "0.6.5",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/36689?format=api",
            "vulnerability_id": "VCID-c2rh-muky-nyfb",
            "summary": "MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell metacharacters to subprocess.Popen.",
            "references": [
                {
                    "reference_url": "https://github.com/geekan/MetaGPT/issues/731",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/geekan/MetaGPT/issues/731"
                },
                {
                    "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/metagpt/PYSEC-2024-9.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pypa/advisory-database/tree/main/vulns/metagpt/PYSEC-2024-9.yaml"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2024-23750",
                    "reference_id": "CVE-2024-23750",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-23750"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-g7ph-8423-pf4j",
                    "reference_id": "GHSA-g7ph-8423-pf4j",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-g7ph-8423-pf4j"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/38953?format=api",
                    "purl": "pkg:pypi/metagpt@0.6.5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/metagpt@0.6.5"
                }
            ],
            "aliases": [
                "CVE-2024-23750",
                "GHSA-g7ph-8423-pf4j",
                "PYSEC-2024-9"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-c2rh-muky-nyfb"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/metagpt@0.6.0"
}