CVE-2023-36809 Kiwi TCMS's misconfigured HTTP headers allow stored XSS execution with Firefox

High 8.1 Published Updated

Attackers can execute stored XSS via uploaded attachments due to misconfigured HTTP headers and insufficient validation 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-36809?

CVE-2023-36809 is a high-severity cross-site scripting vulnerability in kiwitcms Kiwi, published on 5 Jul 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, an open source test management system allows users to upload attachments to test plans, test cases, etc. Versions of Kiwi TCMS prior to 12.5 had introduced changes which were meant to serve all uploaded files as plain text in order to prevent browsers from executing potentially dangerous files when such files are accessed directly. The previous Nginx configuration was incorrect allowing certain browsers like Firefox to ignore the `Content-Type: text/plain` header on some occasions thus allowing potentially dangerous scripts to be executed. Additionally, file upload validators and parts of the HTML rendering code had been found to require additional sanitation and improvements. Version 12.5 fixes this vulnerability with updated Nginx content type configuration, improved file upload validation code to prevent more potentially dangerous uploads, and Sanitization of test plan names used in the `tree_view_html()` function.

Weakness: CWE-79, CWE-434

Which versions are affected by CVE-2023-36809?

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

PackageAffectedFixed in
kiwitcms PyPIAll versions12.5
kiwitcms PyPIAll versions12.5
kiwitcms PyPIAll versions12.5

Products include Kiwitcms Kiwi Tcms.

How do I fix CVE-2023-36809?

Upgrade kiwitcms to 12.5 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-36809 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-36809 exists.

Sources

Also known as GHSA-jpgw-2r9m-8qfw, PYSEC-2026-1499.

Is CVE-2023-36809 in your software?

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

Check your SBOMs for free