Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/35298?format=api",
    "purl": "pkg:pypi/json2xml@1.2.3",
    "type": "pypi",
    "namespace": "",
    "name": "json2xml",
    "version": "1.2.3",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "3.14.0",
    "latest_non_vulnerable_version": "3.14.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/36523?format=api",
            "vulnerability_id": "VCID-19j9-sj91-tudz",
            "summary": "The json2xml package through 3.12.0 for Python allows an error in typecode decoding enabling a remote attack that can lead to an exception, causing a denial of service.",
            "references": [
                {
                    "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/json2xml/PYSEC-2023-149.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pypa/advisory-database/tree/main/vulns/json2xml/PYSEC-2023-149.yaml"
                },
                {
                    "reference_url": "https://github.com/vinitkumar/json2xml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/vinitkumar/json2xml"
                },
                {
                    "reference_url": "https://github.com/vinitkumar/json2xml/commit/a9cd75b61329801b47a8fba7473bce6c85a38b9b",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/vinitkumar/json2xml/commit/a9cd75b61329801b47a8fba7473bce6c85a38b9b"
                },
                {
                    "reference_url": "https://github.com/vinitkumar/json2xml/issues/106",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/vinitkumar/json2xml/issues/106"
                },
                {
                    "reference_url": "https://github.com/vinitkumar/json2xml/pull/107",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/vinitkumar/json2xml/pull/107"
                },
                {
                    "reference_url": "https://github.com/vinitkumar/json2xml/pull/107/files",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/vinitkumar/json2xml/pull/107/files"
                },
                {
                    "reference_url": "https://packaging.python.org/en/latest/guides/analyzing-pypi-package-downloads",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://packaging.python.org/en/latest/guides/analyzing-pypi-package-downloads"
                },
                {
                    "reference_url": "https://packaging.python.org/en/latest/guides/analyzing-pypi-package-downloads/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://packaging.python.org/en/latest/guides/analyzing-pypi-package-downloads/"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25024",
                    "reference_id": "CVE-2022-25024",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25024"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-8rj5-2857-877j",
                    "reference_id": "GHSA-8rj5-2857-877j",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-8rj5-2857-877j"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/35330?format=api",
                    "purl": "pkg:pypi/json2xml@3.14.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/json2xml@3.14.0"
                }
            ],
            "aliases": [
                "CVE-2022-25024",
                "GHSA-8rj5-2857-877j",
                "PYSEC-2023-149"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-19j9-sj91-tudz"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/json2xml@1.2.3"
}