CVE-2023-27489 Stored cross site scripting via SVG file upload in Kiwi TCMS

High 7.6 Published Updated

Attackers can execute arbitrary JavaScript via uploaded SVG files in Kiwi TCMS, potentially compromising user sessions.

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-2023-27489?

CVE-2023-27489 is a high-severity cross-site scripting vulnerability in kiwitcms Kiwi, published on 29 Mar 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Kiwi TCMS is an open source test management system for both manual and automated testing. Kiwi TCMS accepts SVG files uploaded by users which could potentially contain JavaScript code. If SVG images are viewed directly, i.e. not rendered in an HTML page, this JavaScript code could execute. This vulnerability has been fixed by configuring Kiwi TCMS to serve with the Content-Security-Policy HTTP header which blocks inline JavaScript in all modern browsers. This configuration change is provided in version 12.1 and users are advised to upgrade. Users unable to upgrade may set their Content-Security-Policy HTTP header manually.

Weakness: CWE-79

Which versions are affected by CVE-2023-27489?

3 open source packages ship an affected version, including kiwitcms. It affects 1 product.

PackageAffectedFixed in
kiwitcms PyPIAll versions12.1
kiwitcms PyPIAll versions12.1
kiwitcms PyPIAll versions12.1

Products include Kiwitcms Kiwi Tcms.

How do I fix CVE-2023-27489?

Upgrade kiwitcms to 12.1 or later.

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-2023-27489 being exploited?

There is no known exploitation of CVE-2023-27489 in the wild and no public exploit code.

Sources

Also known as GHSA-2wcr-87wf-cf9j, PYSEC-2026-1496.

Is CVE-2023-27489 in your software?

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

Check your SBOMs for free