Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/38968?format=api",
    "purl": "pkg:pypi/llama-index@0.8.2.post1",
    "type": "pypi",
    "namespace": "",
    "name": "llama-index",
    "version": "0.8.2.post1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "0.10.38",
    "latest_non_vulnerable_version": "0.10.38",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/36857?format=api",
            "vulnerability_id": "VCID-7fnz-sag8-nfe6",
            "summary": "An issue was discovered in llama_index before 0.10.38. download/integration.py includes an exec call for import {cls_name}.",
            "references": [
                {
                    "reference_url": "https://github.com/run-llama/llama_index/compare/v0.10.37...v0.10.38",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/run-llama/llama_index/compare/v0.10.37...v0.10.38"
                },
                {
                    "reference_url": "https://github.com/run-llama/llama_index/pull/13523",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/run-llama/llama_index/pull/13523"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/42563?format=api",
                    "purl": "pkg:pypi/llama-index@0.10.38",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/llama-index@0.10.38"
                }
            ],
            "aliases": [
                "CVE-2024-45201",
                "PYSEC-2024-192"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-7fnz-sag8-nfe6"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/36690?format=api",
            "vulnerability_id": "VCID-rfef-698v-juad",
            "summary": "LlamaIndex (aka llama_index) through 0.9.34 allows SQL injection via the Text-to-SQL feature in NLSQLTableQueryEngine, SQLTableRetrieverQueryEngine, NLSQLRetriever, RetrieverQueryEngine, and PGVectorSQLQueryEngine. For example, an attacker might be able to delete this year's student records via \"Drop the Students table\" within English language input.",
            "references": [
                {
                    "reference_url": "https://github.com/run-llama/llama_index/issues/9957",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/run-llama/llama_index/issues/9957"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/39126?format=api",
                    "purl": "pkg:pypi/llama-index@0.9.35",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-7fnz-sag8-nfe6"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/llama-index@0.9.35"
                }
            ],
            "aliases": [
                "CVE-2024-23751",
                "PYSEC-2024-12"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-rfef-698v-juad"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/llama-index@0.8.2.post1"
}