ckan
Affected
- introduced
0, fixed2.10.7, introduced2.11.0, fixed2.11.2(ecosystem)
Fixed versions
2.10.7, 2.11.2
Fix
- Fixed version
2.10.7pip install --upgrade ckan==2.10.7 - Fixed version
2.11.2pip install --upgrade ckan==2.11.2
Advisory
Also known as: CVE-2025-24372, GHSA-7pq5-qcp6-mcww
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.
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 = noneHigh Basis: CVSS v3 score 7.3, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
0, fixed 2.10.7, introduced 2.11.0, fixed 2.11.2 (ecosystem)2.10.7, 2.11.2
2.10.7pip install --upgrade ckan==2.10.72.11.2pip install --upgrade ckan==2.11.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0