Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/557773?format=api",
    "purl": "pkg:pypi/sanic@20.9.1",
    "type": "pypi",
    "namespace": "",
    "name": "sanic",
    "version": "20.9.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "20.12.7",
    "latest_non_vulnerable_version": "22.6.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/42443?format=api",
            "vulnerability_id": "VCID-abfm-w8sr-5qh6",
            "summary": "Server crash if running Python 3.10 w/ Sanic 20.12\nSanic officially supports Python versions 3.6, 3.7, 3.8, and 3.9. However, if you accidentally run it with version 3.10 (which is not supported by Sanic), your server is prone to crashing on an incoming web request.",
            "references": [
                {
                    "reference_url": "https://github.com/sanic-org/sanic",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/sanic-org/sanic"
                },
                {
                    "reference_url": "https://github.com/sanic-org/sanic/releases/tag/v20.12.6",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/sanic-org/sanic/releases/tag/v20.12.6"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-7p79-6x2v-5h88",
                    "reference_id": "GHSA-7p79-6x2v-5h88",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-7p79-6x2v-5h88"
                },
                {
                    "reference_url": "https://github.com/sanic-org/sanic/security/advisories/GHSA-7p79-6x2v-5h88",
                    "reference_id": "GHSA-7p79-6x2v-5h88",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/sanic-org/sanic/security/advisories/GHSA-7p79-6x2v-5h88"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/60706?format=api",
                    "purl": "pkg:pypi/sanic@20.12.6",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-pqam-8fkw-1bfc"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/sanic@20.12.6"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/557780?format=api",
                    "purl": "pkg:pypi/sanic@21.3.0",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-pqam-8fkw-1bfc"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/sanic@21.3.0"
                }
            ],
            "aliases": [
                "GHSA-7p79-6x2v-5h88",
                "GMS-2022-79"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-abfm-w8sr-5qh6"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/110036?format=api",
            "vulnerability_id": "VCID-pqam-8fkw-1bfc",
            "summary": "sanic vulnerable to Path Traversal when using `app.static` if using encoded `%2F` URLs\n### Impact\nAccess to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted.\n\n### Patches\n- v20.12.7 (LTS)\n- v21.12.2 (LTS)\n- v22.6.1\n\n### References\nhttps://github.com/sanic-org/sanic/issues/2478\nhttps://github.com/sanic-org/sanic/pull/2495\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [the community forums](https://community.sanicframework.org/)\n* Ping us on [the Discord server](https://discord.gg/FARQzAEMAA)",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2022-35920",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.0075",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73514",
                            "published_at": "2026-06-08T12:55:00Z"
                        },
                        {
                            "value": "0.0075",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73499",
                            "published_at": "2026-06-04T12:55:00Z"
                        },
                        {
                            "value": "0.0075",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73535",
                            "published_at": "2026-06-05T12:55:00Z"
                        },
                        {
                            "value": "0.0075",
                            "scoring_system": "epss",
                            "scoring_elements": "0.7354",
                            "published_at": "2026-06-06T12:55:00Z"
                        },
                        {
                            "value": "0.0075",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73527",
                            "published_at": "2026-06-07T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-35920"
                },
                {
                    "reference_url": "https://github.com/sanic-org/sanic",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/sanic-org/sanic"
                },
                {
                    "reference_url": "https://github.com/sanic-org/sanic/issues/2478",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:40:06Z/"
                        }
                    ],
                    "url": "https://github.com/sanic-org/sanic/issues/2478"
                },
                {
                    "reference_url": "https://github.com/sanic-org/sanic/pull/2495",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:40:06Z/"
                        }
                    ],
                    "url": "https://github.com/sanic-org/sanic/pull/2495"
                },
                {
                    "reference_url": "https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:40:06Z/"
                        }
                    ],
                    "url": "https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-35920",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-35920"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-8cw9-5hmv-77w6",
                    "reference_id": "GHSA-8cw9-5hmv-77w6",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-8cw9-5hmv-77w6"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/148276?format=api",
                    "purl": "pkg:pypi/sanic@20.12.7",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/sanic@20.12.7"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/148274?format=api",
                    "purl": "pkg:pypi/sanic@21.12.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/sanic@21.12.2"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/148272?format=api",
                    "purl": "pkg:pypi/sanic@22.6.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/sanic@22.6.1"
                }
            ],
            "aliases": [
                "CVE-2022-35920",
                "GHSA-8cw9-5hmv-77w6"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-pqam-8fkw-1bfc"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/sanic@20.9.1"
}