CVE-2021-25967:
Cross-site Scripting in CKAN
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.43188%
CWE
Published
12/3/2021
Updated
9/13/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ckan | pip | >= 2.9.0, < 2.10.0 | 2.10.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from insufficient file type validation during profile picture uploads. The commit patching this vulnerability added a 'verify_type' method to check MIME types and content categories. The original 'upload' function in uploader.py (called during user/group creation in create.py) did not perform these checks in vulnerable versions, allowing SVG files with embedded scripts. The tests added in test_create.py demonstrate that non-image uploads were previously allowed without validation.