CVE-2023-32686 kiwitcms vulnerable to stored XSS via unrestricted files upload

High 8.1 Published Updated

Attackers can upload malicious files to bypass CSP and execute arbitrary JavaScript in users' browsers via stored XSS in Kiwi TCMS.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-32686?

CVE-2023-32686 is a high-severity cross-site scripting vulnerability in kiwitcms Kiwi, published on 27 May 2023. An attacker can exploit it over the internet without logging in, 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 allows users to upload attachments to test plans, test cases, etc. Earlier versions of Kiwi TCMS had introduced upload validators in order to prevent potentially dangerous files from being uploaded. The upload validation checks were not robust enough which left the possibility of an attacker to circumvent them and upload a potentially dangerous file. Exploiting this flaw, a combination of files could be uploaded so that they work together to circumvent the existing Content-Security-Policy and allow execution of arbitrary JavaScript in the browser. This issue has been patched in version 12.3.

Weakness: CWE-79, CWE-434

Which versions are affected by CVE-2023-32686?

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

PackageAffectedFixed in
kiwitcms PyPIAll versions12.3
kiwitcms PyPIAll versions12.3
kiwitcms PyPIAll versions12.3

Products include Kiwitcms Kiwi Tcms.

How do I fix CVE-2023-32686?

Upgrade kiwitcms to 12.3 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-32686 being exploited?

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

Sources

Also known as GHSA-x7c2-7wvg-jpx7, PYSEC-2026-1500.

Is CVE-2023-32686 in your software?

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

Check your SBOMs for free