# CVE-2023-27489: PYSEC-2026-1496 - Kiwi TCMS Stored Cross-site Scripting via SVG file

Source: https://junglewise.ai/threats/cve-2023-27489-kiwi-tcms-stored-cross-site-scripting-via-svg-file-upload  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2023-27489 · Severity: low · CVSS 3.1 · Published 2026-07-07

Kiwi TCMS is a test case and test result management system. The application accepts SVG file uploads from users without properly sanitizing them, allowing attackers with user accounts to embed malicious JavaScript code in SVG files. When other users view these files directly, the embedded JavaScript executes in their browsers, potentially allowing attackers to steal session credentials, modify test data, or perform other actions on behalf of victims.

Technologies: [Kiwi TCMS](https://junglewise.ai/threats/technologies/kiwi-tcms), [kiwitcms (PyPI)](https://junglewise.ai/threats/technologies/kiwitcms). Vendors: [Kiwi TCMS](https://junglewise.ai/threats/vendors/kiwi-tcms), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2023-27489 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-27489 being exploited in the wild.

**How severe is CVE-2023-27489?** Low severity, with a CVSS score of 3.1, published 7 July 2026.

**Which products and versions are affected?** Kiwi TCMS All versions up to and including 12.0; kiwitcms (PyPI) ECOSYSTEM:introduced=0,fixed=12.1.

**Is there a fix for CVE-2023-27489?** Yes. kiwitcms (PyPI): upgrade to 12.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2023-27489 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2023-27489?** Check whether you run Kiwi TCMS or kiwitcms (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- kiwitcms (PyPI): upgrade to 12.1 or later

  ```sh
  pip install "kiwitcms>=12.1"
  ```


## Technical details

This is a stored cross-site scripting (XSS) vulnerability in Kiwi TCMS's file upload functionality. The root cause is insufficient sanitization of user-uploaded SVG files, which can contain embedded JavaScript code. An attacker with user privileges can upload a malicious SVG containing inline JavaScript; when other users view the file directly (not embedded in an HTML page), the JavaScript executes with the victim's privileges. The vulnerability requires both user authentication and user interaction (clicking/viewing the malicious file). Kiwi TCMS fixed this by serving responses with the Content-Security-Policy HTTP header to block inline JavaScript in modern browsers. All versions up to 12.0 are affected; the patch was released in version 12.1.

## Affected products

- Kiwi TCMS Kiwi TCMS All versions up to and including 12.0

## Identifiers

- CVE-2023-27489
- GHSA-2wcr-87wf-cf9j
- PYSEC-2026-1496

## Timeline

- 2023-03-29: disclosed: Vulnerability independently disclosed by Antonio Spataro and @1d8
- 2023-03-30: advisory: GitHub advisory GHSA-2wcr-87wf-cf9j published
- 2023: patched: Fixed in version 12.1 with Content-Security-Policy header configuration

## References

- [https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-2wcr-87wf-cf9j](https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-2wcr-87wf-cf9j)

## Related threats

- [Kiwi TCMS account confirmation open redirect via protocol-relative URLs](https://junglewise.ai/threats/cve-2026-77433-kiwi-tcms-account-confirmation-open-redirect-through-protocol)
- [Kiwi TCMS missing authorization in database initialization page](https://junglewise.ai/threats/cve-2026-49292-kiwi-tcms-missing-authorization-in-database-initialization-page)
- [Kiwi TCMS stored XSS in TestPlan and TestCase extra_link fields](https://junglewise.ai/threats/cve-2026-55630-kiwi-tcms-stored-xss-in-testplan-and-testcase-extra-link-fields)
- [Kiwi TCMS open redirect in account confirmation endpoint](https://junglewise.ai/threats/cve-2026-54724-kiwi-tcms-open-redirect-in-account-confirmation-endpoint)
- [PYSEC-2026-1499 - Kiwi TCMS's misconfigured HTTP headers allow stored XSS execution with Firefox](https://junglewise.ai/threats/cve-2023-36809-kiwi-tcms-s-misconfigured-http-headers-allow-stored-xss-execution)
