Vulnerabilities in pkg:pypi/ckan
PACKAGECVE-2026-42032 is a MODERATE ckan has unauthenticated authorization bypass vulnerability (CWE-863: Incorrect Authorization) affecting Ckan libraries in the PyPI ecosystem. The issue involves ckan has unauthenticated authorization bypass in `datastore_search_sql`. Remediation is available by upgrading affected packages to version 2.10.10, 2.11.5.
pkg:pypi/ckan
Vulnerability advisories affecting package pkg:pypi/ckan. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-cg4x-64p3-x59h | CVE-2026-42032 | MODERATE | CKAN has Unauthenticated Authorization Bypass in `datastore_search_sql` |
| GHSA-h7j7-3rx6-xvcg | CVE-2026-42031 | HIGH | CKAN has Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql` |
| GHSA-mcvf-jxcw-vj73 | CVE-2026-41255 | MODERATE | CKAN has CSRF exemption primed by anonymous requests |
| GHSA-mpfm-fpgx-647q | CVE-2026-41132 | MODERATE | CKAN has no certificate validation on STMP connection |
| GHSA-2hvh-cw5c-8q8q | CVE-2025-64100 | MODERATE | CKAN vulnerable to fixed session IDs |
| GHSA-2r4h-8jxv-w2j8 | CVE-2025-54384 | MODERATE | CKAN vulnerable to stored XSS in resource description |
| GHSA-m2xp-jxfg-qq6g | CVE-2022-43685 | HIGH | CKAN contains Improper Authentication leading to account takeover |
| GHSA-7pq5-qcp6-mcww | CVE-2025-24372 | HIGH | CKAN has an XSS vector in user uploaded images in group/org and user profiles |
| GHSA-6w9p-88qg-p3g3 | CVE-2021-25967 | MODERATE | Cross-site Scripting in CKAN |
| GHSA-g9ph-j5vj-f8wm | CVE-2024-43371 | MODERATE | Potential access to sensitive URLs via CKAN extensions (SSRF) |
| GHSA-r3jc-vhf4-6v32 | CVE-2024-41675 | MODERATE | CKAN has Cross-site Scripting vector in the Datatables view plugin |
| GHSA-2rqw-cfhc-35fh | CVE-2024-41674 | MODERATE | CKAN may leak Solr credentials via error message in package_search action |
| GHSA-8g38-3m6v-232j | CVE-2024-27097 | MODERATE | Potential log injection in reset user endpoint in CKAN |
| GHSA-7fgc-89cx-w8j5 | CVE-2023-50248 | MODERATE | Out of memory error when submitting the dataset form with a specially-crafted field |
| GHSA-446m-hmmm-hm8m | CVE-2023-32321 | CRITICAL | Ckan remote code execution and private information access via crafted resource ids |
CVE-2026-42032 at a Glance
How to Fix CVE-2026-42032
To remediate this vulnerability, upgrade all affected Ckan dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install ckan>=2.10.10
pip install ckan>=2.11.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show ckan
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-42032, inspect your installed packages using pip:
pip show ckan
Analyze the terminal output to locate any version of Ckan in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.10.10), your application is affected.
Note: The pip show ckan command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Ckan, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42032 Affected Ckan Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2026-42032?
Which Ckan versions are affected?
What version fixes CVE-2026-42032?
Is ckan affected?
What CWE is associated with CVE-2026-42032?
How can I check PyPI dependencies for CVE-2026-42032?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cg4x-64p3-x59h",
"modified" : "2026-05-14T20:39:49Z",
"published" : "2026-04-30T17:34:44Z",
"aliases" : [ "CVE-2026-42032" ],
"summary" : "CKAN has Unauthenticated Authorization Bypass in `datastore_search_sql`",
"details" : "### Impact\n\nA vulnerability in `datastore_search_sql` allowed attackers to bypass authorization in order to gain access to private resources and PostgreSQL system information\n\n### Patches\nThe issue has been patched in CKAN 2.10.10 and CKAN 2.11.5\n\n### Workarounds\nDisable the DataStore SQL search (`ckan.datastore.sqlsearch.enabled = false`). Note that the SQL search is disabled by default.\n\n### More information\n\nAs stated in the [documentation](https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-datastore-sqlsearch-enabled), this action function has protections that offer some safety but are not designed to prevent all types of abuse. Depending on the sensitivity of private data in your DataStore and the likelihood of abuse of your site, you may choose to disable this action function or restrict its use with a [`IAuthFunctions`](https://docs.ckan.org/en/2.11/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IAuthFunctions) plugin.\n\n### Credits\n\n* Reported by Arvin Shivram of Brutecat Security",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "ckan"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.10.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "ckan"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.11.0"
}, {
"fixed" : "2.11.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.11.4"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ckan/ckan/security/advisories/GHSA-cg4x-64p3-x59h"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42032"
}, {
"type" : "WEB",
"url" : "https://docs.ckan.org/en/2.10/changelog.html#v-2-10-10-2026-04-29"
}, {
"type" : "WEB",
"url" : "https://docs.ckan.org/en/2.11/changelog.html#v-2-11-5-2026-04-29"
}, {
"type" : "WEB",
"url" : "https://docs.ckan.org/en/2.11/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IAuthFunctions"
}, {
"type" : "WEB",
"url" : "https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-datastore-sqlsearch-enabled"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ckan/ckan"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-30T17:34:44Z",
"nvd_published_at" : "2026-05-13T19:17:22Z"
}
}