CVE-2021-25967 CKAN - Stored Cross-Site Scripting (XSS) via SVG File Upload
Low-privileged users can inject malicious scripts via SVG profile pictures, leading to code execution in victims' browsers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-25967?
CVE-2021-25967 is a medium-severity cross-site scripting vulnerability in ckan, published on 1 Dec 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
In CKAN, versions 2.9.0 to 2.9.3 are affected by a stored XSS vulnerability via SVG file upload of users’ profile picture. This allows low privileged application users to store malicious scripts in their profile picture. These scripts are executed in a victim’s browser when they open the malicious profile picture
Weakness: CWE-79
Which versions are affected by CVE-2021-25967?
3 open source packages ship an affected version, including ckan. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ckan PyPI | From 2.9.0 | 2.10.0 |
ckan PyPI | From 2.9.0 | 2.10.0 |
ckan PyPI | From 2.9.0 | 2.9.4 |
Products include Okfn Ckan.
How do I fix CVE-2021-25967?
Upgrade ckan to a fixed version for your release line: 2.10.0 or 2.9.4.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-25967 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25967 exists.
Other vulnerabilities in ckan
- CVE-2023-32321 CKAN remote code execution and private information access via crafted resource ids
- CVE-2023-32696 Excessive permissions for ckan user
- CVE-2022-43685 CKAN contains Improper Authentication leading to account takeover
- CVE-2023-22746 CKAN is vulnerable to session secret shared across instances using Docker images
- CVE-2026-42031 CKAN: Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`
Sources
Also known as GHSA-6w9p-88qg-p3g3, PYSEC-2021-841.