Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/28716?format=api",
    "purl": "pkg:pypi/ckan@2.9.7",
    "type": "pypi",
    "namespace": "",
    "name": "ckan",
    "version": "2.9.7",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "2.9.9",
    "latest_non_vulnerable_version": "2.11.4",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/8618?format=api",
            "vulnerability_id": "VCID-w6cg-ubux-qbfg",
            "summary": "CKAN through 2.9.6 account takeovers by unauthenticated users when an existing user id is sent via an HTTP POST request. This allows a user to take over an existing account including superuser accounts.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2022-43685",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00864",
                            "scoring_system": "epss",
                            "scoring_elements": "0.75405",
                            "published_at": "2026-05-30T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-43685"
                },
                {
                    "reference_url": "https://ckan.org",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://ckan.org"
                },
                {
                    "reference_url": "https://ckan.org/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://ckan.org/"
                },
                {
                    "reference_url": "https://ckan.org/blog/get-latest-patch-releases-your-ckan-site-october-2022",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://ckan.org/blog/get-latest-patch-releases-your-ckan-site-october-2022"
                },
                {
                    "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/ckan/PYSEC-2022-42987.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pypa/advisory-database/tree/main/vulns/ckan/PYSEC-2022-42987.yaml"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-43685",
                    "reference_id": "CVE-2022-43685",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-43685"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-m2xp-jxfg-qq6g",
                    "reference_id": "GHSA-m2xp-jxfg-qq6g",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-m2xp-jxfg-qq6g"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/28716?format=api",
                    "purl": "pkg:pypi/ckan@2.9.7",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/ckan@2.9.7"
                }
            ],
            "aliases": [
                "CVE-2022-43685",
                "GHSA-m2xp-jxfg-qq6g",
                "PYSEC-2022-42987"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-w6cg-ubux-qbfg"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/16790?format=api",
            "vulnerability_id": "VCID-zqyk-rq9a-eked",
            "summary": "Use of Insufficiently Random Values\nCKAN is an open-source DMS (data management system) for powering data hubs and data portals. When creating a new container based on one of the Docker images listed below, the same secret key was being used by default. If the users didn't set a custom value via environment variables in the `.env` file, that key was shared across different CKAN instances, making it easy to forge authentication requests. Users overriding the default secret key in their own `.env` file are not affected by this issue. Note that the legacy images (ckan/ckan) located in the main CKAN repo are not affected by this issue. The affected images are ckan/ckan-docker, (ckan/ckan-base images), okfn/docker-ckan (openknowledge/ckan-base and openknowledge/ckan-dev images) keitaroinc/docker-ckan (keitaro/ckan images).",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2023-22746",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00374",
                            "scoring_system": "epss",
                            "scoring_elements": "0.5933",
                            "published_at": "2026-05-30T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2023-22746"
                },
                {
                    "reference_url": "https://github.com/ckan/ckan/commit/44af0f0a148fcc0e0fbcf02fe69b7db13459a84b",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/ckan/ckan/commit/44af0f0a148fcc0e0fbcf02fe69b7db13459a84b"
                },
                {
                    "reference_url": "https://github.com/ckan/ckan/commit/4c22c135fa486afa13855d1cdb9765eaf418d2aa",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/ckan/ckan/commit/4c22c135fa486afa13855d1cdb9765eaf418d2aa"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22746",
                    "reference_id": "CVE-2023-22746",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22746"
                },
                {
                    "reference_url": "https://github.com/ckan/ckan/security/advisories/GHSA-pr8j-v4c8-h62x",
                    "reference_id": "GHSA-pr8j-v4c8-h62x",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/ckan/ckan/security/advisories/GHSA-pr8j-v4c8-h62x"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/28710?format=api",
                    "purl": "pkg:pypi/ckan@2.8.12",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-w6cg-ubux-qbfg"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/ckan@2.8.12"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/28716?format=api",
                    "purl": "pkg:pypi/ckan@2.9.7",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/ckan@2.9.7"
                }
            ],
            "aliases": [
                "CVE-2023-22746",
                "GHSA-pr8j-v4c8-h62x"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-zqyk-rq9a-eked"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/ckan@2.9.7"
}