# CVE-2021-25967: Cross-site Scripting in CKAN

Source: https://junglewise.ai/threats/cve-2021-25967-cross-site-scripting-in-ckan  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-12-01  
License: CC BY 4.0 with a link back

CVE-2021-25967 · Severity: low · CVSS 3.1 · Published 2021-12-01

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

Technologies: [ckan (PyPI)](https://junglewise.ai/threats/technologies/pypi-ckan). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2021-25967 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-25967 being exploited in the wild.

**How severe is CVE-2021-25967?** Low severity, with a CVSS score of 3.1, published 1 December 2021.

**Which products and versions are affected?** ckan (PyPI) ECOSYSTEM:introduced=2.9.0,fixed=2.10.0, ECOSYSTEM:introduced=2.9.0,fixed=2.9.4.

**Is there a fix for CVE-2021-25967?** Yes. ckan (PyPI): upgrade to 2.10.0, 2.9.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-25967?** Check whether you run ckan (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- ckan (PyPI): upgrade to 2.10.0, 2.9.4 or later

  ```sh
  pip install "ckan>=2.10.0"
  ```


## Affected products

- ckan (PyPI) ECOSYSTEM:introduced=2.9.0,fixed=2.10.0, ECOSYSTEM:introduced=2.9.0,fixed=2.9.4

## Identifiers

- CVE-2021-25967
- GHSA-6w9p-88qg-p3g3
- PYSEC-2021-841

## Related threats

- [PYSEC-2026-1250 - CKAN has an XSS vector in user uploaded images in group/org and user profiles](https://junglewise.ai/threats/cve-2025-24372-ckan-has-an-xss-vector-in-user-uploaded-images-in-group-org-and)
- [PYSEC-2026-1252 - Potential access to sensitive URLs via CKAN extensions (SSRF)](https://junglewise.ai/threats/cve-2024-43371-potential-access-to-sensitive-urls-via-ckan-extensions-ssrf)
- [PYSEC-2026-1253 - CKAN has Cross-site Scripting vector in the Datatables view plugin](https://junglewise.ai/threats/cve-2024-41675-ckan-has-cross-site-scripting-vector-in-the-datatables-view)
- [PYSEC-2026-1248 - CKAN may leak Solr credentials via error message in package_search action](https://junglewise.ai/threats/cve-2024-41674-ckan-solr-credentials-leak-in-package-search-error-message)
- [PYSEC-2026-1251 - Potential log injection in reset user endpoint in CKAN](https://junglewise.ai/threats/cve-2024-27097-potential-log-injection-in-reset-user-endpoint-in-ckan)
