CVE-2025-24372: CKAN has an XSS vector in user uploaded images in group/org and user profiles
Impact Using a specially crafted file, a user could potentially upload a file containing code that when executed could send arbitrary requests to the server. If that file was opened by an administrator, it could lead to escalation of privileges of the original submitter or other malicious actions. Users must have been registered to the site to exploit this vulnerability.
Published Feb 5, 2025
Affected packages
ckan
- Ecosystem
- PyPI
- Affected
- < 2.10.7
- Fixed in
- 2.10.7
- Check
pip show ckan
ckan
- Ecosystem
- PyPI
- Affected
- >= 2.11.0, < 2.11.2
- Fixed in
- 2.11.2
- Check
pip show ckan
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Using a specially crafted file, a user could potentially upload a file containing code that when executed could send arbitrary requests to the server. If that file was opened by an administrator, it could lead to escalation of privileges of the original submitter or other malicious actions. Users must have been registered to the site to exploit this vulnerability.
Patches
This vulnerability has been fixed in CKAN 2.10.7 and 2.11.2
Workarounds
On versions prior to CKAN 2.10.7 and 2.11.2, site maintainers can restrict the file types supported for uploading using the ckan.upload.user.mimetypes / ckan.upload.user.types and ckan.upload.group.mimetypes / ckan.upload.group.types config options. To entirely disable file uploads you can use:
ckan.upload.user.types = noneCredited to m4dn355.
References
- https://github.com/ckan/ckan/security/advisories/GHSA-7pq5-qcp6-mcww
- https://github.com/ckan/ckan/commit/7da6a26c6183e0a97a356d1b1d2407f3ecc7b9c8
- https://github.com/ckan/ckan/commit/a4fc5e06634ed51d653ab819a7efc8e62f816f68
- https://docs.ckan.org/en/latest/maintaining/configuration.html#ckan-upload-group-mimetypes
- https://docs.ckan.org/en/latest/maintaining/configuration.html#ckan-upload-group-types
- https://docs.ckan.org/en/latest/maintaining/configuration.html#ckan-upload-user-mimetypes
- https://docs.ckan.org/en/latest/maintaining/configuration.html#ckan-upload-user-types
- https://nvd.nist.gov/vuln/detail/CVE-2025-24372
- https://github.com/advisories/GHSA-7pq5-qcp6-mcww
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-104773
CKAN: Session Fixation in Registration View
medium6.8Nov 20, 2026CVE-2026-42032
CKAN has Unauthenticated Authorization Bypass in `datastore_search_sql`
medium6.7Apr 30, 2026CVE-2026-41132
CKAN has no certificate validation on STMP connection
medium6.6Apr 29, 2026CVE-2026-41255
CKAN has CSRF exemption primed by anonymous requests
medium6.1Apr 29, 2026CVE-2026-42031
CKAN has Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`
high8.3Apr 29, 2026CVE-2025-54384
CKAN vulnerable to stored XSS in resource description
medium6.3Oct 29, 2025
