Advisory

PYSEC-2026-1250

Also known as: CVE-2025-24372, GHSA-7pq5-qcp6-mcww

Summary

CKAN has an XSS vector in user uploaded images in group/org and user profiles

Details

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 = none

Severity

High 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

Dates

Published
2026-07-07 14:34 UTC
Modified
2026-07-07 17:47 UTC

Affected packages and fixes

ckan

PyPI · All systems

Affected

  • introduced 0, fixed 2.10.7, introduced 2.11.0, fixed 2.11.2 (ecosystem)

Fixed versions

2.10.7, 2.11.2

Fix

  • Fixed version 2.10.7
    pip install --upgrade ckan==2.10.7
  • Fixed version 2.11.2
    pip install --upgrade ckan==2.11.2

Fix 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

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences