Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/46088?format=api",
    "purl": "pkg:pypi/cadwyn@1.0.1",
    "type": "pypi",
    "namespace": "",
    "name": "cadwyn",
    "version": "1.0.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "5.4.3",
    "latest_non_vulnerable_version": "5.4.3",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37095?format=api",
            "vulnerability_id": "VCID-fc98-s2k6-mkgg",
            "summary": "Cadwyn creates production-ready community-driven modern Stripe-like API versioning in FastAPI. In versions before 5.4.3, the version parameter of the \"/docs\" endpoint is vulnerable to a Reflected XSS (Cross-Site Scripting) attack. This XSS would notably allow an attacker to execute JavaScript code on a user's session for any application based on Cadwyn via a one-click attack. The vulnerability has been fixed in version 5.4.3.",
            "references": [
                {
                    "reference_url": "https://github.com/zmievsa/cadwyn/commit/b424ecd57cd8dabbc8fe39b8f8ccafea629c7728",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/zmievsa/cadwyn/commit/b424ecd57cd8dabbc8fe39b8f8ccafea629c7728"
                },
                {
                    "reference_url": "https://github.com/zmievsa/cadwyn/security/advisories/GHSA-2gxp-6r36-m97r",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/zmievsa/cadwyn/security/advisories/GHSA-2gxp-6r36-m97r"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/46201?format=api",
                    "purl": "pkg:pypi/cadwyn@5.4.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/cadwyn@5.4.3"
                }
            ],
            "aliases": [
                "CVE-2025-53528",
                "GHSA-2gxp-6r36-m97r",
                "PYSEC-2025-71"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-fc98-s2k6-mkgg"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/cadwyn@1.0.1"
}