{"id":"CVE-2021-25967","published":"2021-12-01T13:40:09Z","modified":"2025-04-30T15:44:12Z","title":"CKAN - Stored Cross-Site Scripting (XSS) via SVG File Upload","vendor":"ckan","product":"ckan","tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00509,"percentile":0.44381,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25967","tags":["x_refsource_MISC"]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":8.88},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"ckan","affectedVersions":[{"vendor":"ckan","product":"ckan","versions":[">= 2.9.0, < unspecified",">= unspecified, <= 2.9.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-30T15:27:35.209364Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"ckan","vulnerableRanges":[">=2.9.0, <2.10.0",">=2.9.0, <2.9.4"],"patched":["2.10.0","2.9.4"],"from":["GHSA-6w9p-88qg-p3g3","PYSEC-2021-841"],"provenance":"source"}],"summary":{"text":"The stored cross-site scripting flaw in CKAN versions 2.9.0 through 2.9.3 lies in the handling of SVG files uploaded as user profile pictures. An attacker with a low-privileged application account can store malicious script inside an SVG profile picture, which then executes in a victim's browser when the victim opens that picture, requiring network access and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:43Z"},"euvd":{"id":"EUVD-2021-0042","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ckan-cve-2021-25967","children":[{"from":"CVE-2021-25967","to":"CVE-2023-22746","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ckan/logic/action/create.py"],"commits":["https://github.com/ckan/ckan/commit/5a46989c0a4f2c2873ca182c196da83b82babd25","https://github.com/ckan/ckan/commit/44af0f0a148fcc0e0fbcf02fe69b7db13459a84b","https://github.com/ckan/ckan/commit/4c22c135fa486afa13855d1cdb9765eaf418d2aa"],"basis":"shared function","functions":["user_create"]}]},{"from":"CVE-2021-25967","to":"CVE-2025-24372","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ckan/lib/uploader.py"],"commits":["https://github.com/ckan/ckan/commit/5a46989c0a4f2c2873ca182c196da83b82babd25","https://github.com/ckan/ckan/commit/7da6a26c6183e0a97a356d1b1d2407f3ecc7b9c8","https://github.com/ckan/ckan/commit/a4fc5e06634ed51d653ab819a7efc8e62f816f68"],"basis":"shared function","functions":["upload"]}]}],"packageHistory":[{"cve":"CVE-2022-43685","published":"2022-11-22","fixed":"2.9.7","kev":false,"link":{"from":"CVE-2021-25967","to":"CVE-2022-43685","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ckan","fromFixed":"2.9.4","toFixed":"2.9.7","daysApart":356}]}},{"cve":"CVE-2021-25967","published":"2021-12-01","fixed":"2.10.0","kev":false},{"cve":"CVE-2023-32321","published":"2023-05-26","fixed":"2.10.1","kev":false,"link":{"from":"CVE-2021-25967","to":"CVE-2023-32321","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ckan","fromFixed":"2.10.0","toFixed":"2.10.1","daysApart":541}]}},{"cve":"CVE-2023-50248","published":"2023-12-13","fixed":"2.10.3","kev":false},{"cve":"CVE-2024-27097","published":"2024-03-13","fixed":"2.10.4","kev":false}],"package":"PyPI:ckan"}}