Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/21997?format=api",
    "purl": "pkg:pypi/zope@4.0b7",
    "type": "pypi",
    "namespace": "",
    "name": "zope",
    "version": "4.0b7",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "4.8.11",
    "latest_non_vulnerable_version": "5.8.6",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35799?format=api",
            "vulnerability_id": "VCID-1f3t-a46p-13ca",
            "summary": "Zope is an open-source web application server. In Zope versions prior to 4.6 and 5.2, users can access untrusted modules indirectly through Python modules that are available for direct use. By default, only users with the Manager role can add or edit Zope Page Templates through the web, but sites that allow untrusted users to add/edit Zope Page Templates through the web are at risk from this vulnerability. The problem has been fixed in Zope 5.2 and 4.6. As a workaround, a site administrator can restrict adding/editing Zope Page Templates through the web using the standard Zope user/role permission mechanisms. Untrusted users should not be assigned the Zope Manager role and adding/editing Zope Page Templates through the web should be restricted to trusted users only.",
            "references": [
                {
                    "reference_url": "https://github.com/advisories/GHSA-5vq5-pg3r-9ph3",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-5vq5-pg3r-9ph3"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-962m-m8jw-8wrr",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-962m-m8jw-8wrr"
                },
                {
                    "reference_url": "https://github.com/zopefoundation/Zope/commit/1d897910139e2c0b11984fc9b78c1da1365bec21",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/zopefoundation/Zope/commit/1d897910139e2c0b11984fc9b78c1da1365bec21"
                },
                {
                    "reference_url": "https://github.com/zopefoundation/Zope/commit/1f8456bf1f908ea46012537d52bd7e752a532c91",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/zopefoundation/Zope/commit/1f8456bf1f908ea46012537d52bd7e752a532c91"
                },
                {
                    "reference_url": "https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36"
                },
                {
                    "reference_url": "https://github.com/zopefoundation/Zope/security/advisories/GHSA-rpcg-f9q6-2mq6",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/zopefoundation/Zope/security/advisories/GHSA-rpcg-f9q6-2mq6"
                },
                {
                    "reference_url": "https://pypi.org/project/Zope/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://pypi.org/project/Zope/"
                },
                {
                    "reference_url": "http://www.openwall.com/lists/oss-security/2021/05/21/1",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.openwall.com/lists/oss-security/2021/05/21/1"
                },
                {
                    "reference_url": "http://www.openwall.com/lists/oss-security/2021/05/22/1",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.openwall.com/lists/oss-security/2021/05/22/1"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/22024?format=api",
                    "purl": "pkg:pypi/zope@4.6",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-1f3t-a46p-13ca"
                        },
                        {
                            "vulnerability": "VCID-1psc-rasd-h7hr"
                        },
                        {
                            "vulnerability": "VCID-f1nm-2rc7-eqee"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/zope@4.6"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/22505?format=api",
                    "purl": "pkg:pypi/zope@4.6.1",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-1psc-rasd-h7hr"
                        },
                        {
                            "vulnerability": "VCID-f1nm-2rc7-eqee"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/zope@4.6.1"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/22025?format=api",
                    "purl": "pkg:pypi/zope@5.2",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-1f3t-a46p-13ca"
                        },
                        {
                            "vulnerability": "VCID-1psc-rasd-h7hr"
                        },
                        {
                            "vulnerability": "VCID-f1nm-2rc7-eqee"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/zope@5.2"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/22504?format=api",
                    "purl": "pkg:pypi/zope@5.2.1",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-1psc-rasd-h7hr"
                        },
                        {
                            "vulnerability": "VCID-f1nm-2rc7-eqee"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/zope@5.2.1"
                }
            ],
            "aliases": [
                "CVE-2021-32633",
                "CVE-2021-32674",
                "GHSA-5pr9-v234-jw36",
                "GHSA-5vq5-pg3r-9ph3",
                "GHSA-962m-m8jw-8wrr",
                "GHSA-rpcg-f9q6-2mq6",
                "PYSEC-2021-104",
                "PYSEC-2021-88"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-1f3t-a46p-13ca"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/zope@4.0b7"
}