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

- Severity: Medium 5.4 (CVSS:3.1, scored by Mend) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Published: 2021-12-01T13:40:09.000Z
- Modified: 2026-06-17T03:42:41.713Z
- Also known as: GHSA-6w9p-88qg-p3g3, PYSEC-2021-841
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: Mend

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

(As written by CVE List.)

## Affected

- ckan ckan: from 2.9.0 before unspecified; from unspecified up to 2.9.3
- ckan (PyPI): from 2.9.0 before 2.10.0; from 2.9.0 before 2.9.4
- okfn ckan: from 2.9.0 up to 2.9.3

## Every score

- Mend: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25967> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25967> (advisory)
- <https://github.com/ckan/ckan/pull/6477> (web)
- <https://github.com/ckan/ckan/commit/5a46989c0a4f2c2873ca182c196da83b82babd25> (web)
- <https://github.com/advisories/GHSA-6w9p-88qg-p3g3> (advisory)
- <https://github.com/ckan/ckan> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/ckan/PYSEC-2021-841.yaml> (web)

## Sources

- CVE List: [CVE-2021-25967](https://www.cve.org/CVERecord?id=CVE-2021-25967), CVE Terms of Use, modified 2025-04-30
- GitHub Advisory Database: [GHSA-6w9p-88qg-p3g3](https://github.com/advisories/GHSA-6w9p-88qg-p3g3), CC-BY-4.0, modified 2024-09-13
- NVD: [CVE-2021-25967](https://nvd.nist.gov/vuln/detail/CVE-2021-25967), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-841](https://osv.dev/vulnerability/PYSEC-2021-841), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-25967 · Whole record: https://cve.day/CVE-2021-25967.json · Rebuilt by cve.day 2026-11-25T22:58:05.797Z
