# CVE-2023-33977: Stored cross site scripting (XSS) via unrestricted file upload in Kiwi TCMS

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.08% (percentile 65, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-2fqm-m4r2-fh98, PYSEC-2026-1495
- **Published:** 2023-06-06T16:46:16.000Z
- **Modified:** 2026-09-10T03:50:02.113Z

## Who should check

- Projects that depend on PyPI package kiwitcms (\< 12.4)
- Anyone running kiwitcms Kiwi \< 12.4

## 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 and Content-Security-Policy definition to prevent cross-site-scripting attacks. The upload validation checks were not 100% robust which left the possibility to circumvent them and upload a potentially dangerous file which allows execution of arbitrary JavaScript in the browser. Additionally we've discovered that Nginx's \`proxy\_pass\` directive will strip some headers negating protections built into Kiwi TCMS when served behind a reverse proxy. This issue has been addressed in version 12.4. Users are advised to upgrade. Users unable to upgrade who are serving Kiwi TCMS behind a reverse proxy should make sure that additional header values are still passed to the client browser. If they aren't redefining them inside the proxy configuration.

## Affected and fixed versions

- PyPI `kiwitcms`: affected \< 12.4; fixed 12.4 (osv)
- kiwitcms Kiwi: \< 12.4 (cvelist)

## Mitigation

- Upgrade kiwitcms to 12.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-33977. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-33977.md
Affected: kiwitcms < 12.4
Fixed in: 12.4

Steps:
1. Search this machine and project for kiwitcms (PyPI), kiwitcms Kiwi: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-33977 being exploited?

There is no confirmed exploitation: CVE-2023-33977 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.08% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-33977?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-33977?

kiwitcms \< 12.4.

### Is there a fix for CVE-2023-33977?

Yes. Fixed in 12.4. Upgrade kiwitcms to 12.4 or later.

### How do I check if I'm affected by CVE-2023-33977?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-2fqm-m4r2-fh98>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-33977>
- vendor: <https://github.com/advisories/GHSA-2fqm-m4r2-fh98>
- patch: <https://github.com/kiwitcms/Kiwi/commit/d789f4b51025de4f8c747c037d02e1b0da80b034>
- patch: <https://github.com/kiwitcms/kiwi/commit/d789f4b51025de4f8c747c037d02e1b0da80b034>
- exploit: <https://huntr.dev/bounties/6aea9a26-e29a-467b-aa5a-f767f0c2ec96/>
- other: <https://github.com/kiwitcms/Kiwi/blob/master/etc/nginx.conf#L66-L68>
- other: <https://github.com/kiwitcms/Kiwi/blob/master/etc/nginx.conf#L87>
- other: <https://github.com/kiwitcms/Kiwi>
- other: <https://huntr.dev/bounties/6aea9a26-e29a-467b-aa5a-f767f0c2ec96>
- other: <https://kiwitcms.org/blog/kiwi-tcms-team/2023/06/06/kiwi-tcms-124>
- other: <https://pypi.org/project/kiwitcms>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-33977>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2fqm-m4r2-fh98> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1495> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-33977> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-33977>
