Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/42124?format=api",
    "purl": "pkg:pypi/twisted@24.3.0",
    "type": "pypi",
    "namespace": "",
    "name": "twisted",
    "version": "24.3.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "26.4.0",
    "latest_non_vulnerable_version": "26.4.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37338?format=api",
            "vulnerability_id": "VCID-ap46-rugq-uucz",
            "summary": "Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to 26.4.0rc2, the twisted.names module is vulnerable to a Denial of Service (DoS) attack via resource exhaustion during DNS name decompression. A remote, unauthenticated attacker can exploit this by sending a crafted TCP DNS packet containing deeply chained compression pointers. This flaw bypasses previous loop-prevention logic, causing the single-threaded Twisted reactor to hang while processing millions of recursive lookups, effectively freezing the server. This vulnerability is fixed in 26.4.0rc2.",
            "references": [
                {
                    "reference_url": "https://github.com/twisted/twisted/security/advisories/GHSA-grgv-6hw6-v9g4",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                        }
                    ],
                    "url": "https://github.com/twisted/twisted/security/advisories/GHSA-grgv-6hw6-v9g4"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/50448?format=api",
                    "purl": "pkg:pypi/twisted@26.4.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/twisted@26.4.0"
                }
            ],
            "aliases": [
                "CVE-2026-42304",
                "GHSA-grgv-6hw6-v9g4",
                "PYSEC-2026-160"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ap46-rugq-uucz"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/36844?format=api",
            "vulnerability_id": "VCID-kadj-7rha-tuc1",
            "summary": "Twisted is an event-based framework for internet applications, supporting Python 3.6+. The `twisted.web.util.redirectTo` function contains an HTML injection vulnerability. If application code allows an attacker to control the redirect URL this vulnerability may result in Reflected Cross-Site Scripting (XSS) in the redirect response HTML body. This vulnerability is fixed in 24.7.0rc1.",
            "references": [
                {
                    "reference_url": "https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.1",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
                        }
                    ],
                    "url": "https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33"
                },
                {
                    "reference_url": "https://github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.1",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
                        }
                    ],
                    "url": "https://github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/42125?format=api",
                    "purl": "pkg:pypi/twisted@24.7.0rc1",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-ap46-rugq-uucz"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/twisted@24.7.0rc1"
                }
            ],
            "aliases": [
                "CVE-2024-41810",
                "GHSA-cf56-g6w6-pqq2",
                "PYSEC-2024-75"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-kadj-7rha-tuc1"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/twisted@24.3.0"
}