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

Medium 5.4 Published Updated

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.

PackageAffectedFixed in
ckan PyPIFrom 2.9.02.10.0
ckan PyPIFrom 2.9.02.10.0
ckan PyPIFrom 2.9.02.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.

Sources

Also known as GHSA-6w9p-88qg-p3g3, PYSEC-2021-841.

Is CVE-2021-25967 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free