{"id":"CVE-2023-32686","aliases":["EUVD-2023-1647","GHSA-x7c2-7wvg-jpx7","PYSEC-2026-1500"],"status":"published","title":"kiwitcms vulnerable to stored XSS via unrestricted files upload","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. The upload validation checks were not robust enough which left the possibility of an attacker to circumvent them and upload a potentially dangerous file. Exploiting this flaw, a combination of files could be uploaded so that they work together to circumvent the existing Content-Security-Policy and allow execution of arbitrary JavaScript in the browser. This issue has been patched in version 12.3.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00431,"percentile":0.37617,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-434","CWE-79"],"published":"2023-05-22T19:39:46Z","modified":"2026-10-28T02:31:08Z","fixes":[{"ecosystem":"PyPI","package":"kiwitcms","fixed_in":["12.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"kiwitcms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.3"}]}]},{"source":"osv","ecosystem":"PyPI","package":"kiwitcms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.3"}]}],"versions":["10.0","10.1","10.2","10.3","10.3.999","10.4","10.5","11.0","11.1","11.3","11.4","11.5","11.6","11.7","12.0","12.1","12.2","6.10","6.11","6.2.1","6.3","6.4","6.5","6.5.3","6.6","6.7","6.8","6.9","7.0","7.1","7.2","7.2.1","7.3","8.0","8.1","8.1.99","8.2","8.3","8.4","8.5","8.6","8.6.1","8.7","8.8","8.9","9.0","9.999"]},{"source":"osv","ecosystem":"PyPI","package":"kiwitcms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.3"}]}],"versions":["10.0","10.1","10.2","10.3","10.3.999","10.4","10.5","11.0","11.1","11.3","11.4","11.5","11.6","11.7","12.0","12.1","12.2","6.10","6.11","6.2.1","6.3","6.4","6.5","6.5.3","6.6","6.7","6.8","6.9","7.0","7.1","7.2","7.2.1","7.3","8.0","8.1","8.1.99","8.2","8.3","8.4","8.5","8.6","8.6.1","8.7","8.8","8.9","9.0","9.999"]}],"products":[{"vendor":"kiwitcms","product":"kiwi"},{"vendor":"kiwitcms","product":"kiwi_tcms"},{"vendor":"wpkube","product":"kiwi"}],"references":[{"url":"https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-x7c2-7wvg-jpx7","tags":["x_refsource_CONFIRM","x_transferred","Mailing List","Vendor Advisory","advisory","web"]},{"url":"https://kiwitcms.org/blog/kiwi-tcms-team/2023/05/22/kiwi-tcms-123/","tags":["x_refsource_MISC","x_transferred","Release Notes","article"]},{"url":"https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-2wcr-87wf-cf9j","tags":["web"]},{"url":"https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-fwcf-753v-fgcj","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32686","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-x7c2-7wvg-jpx7","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/32xxx/CVE-2023-32686.json","tags":["advisory"]},{"url":"https://github.com/kiwitcms/Kiwi","tags":["package"]},{"url":"https://kiwitcms.org/blog/kiwi-tcms-team/2023/05/22/kiwi-tcms-123","tags":["web"]},{"url":"https://pypi.org/project/kiwitcms","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2023-32686","title":"kiwitcms vulnerable to stored XSS via unrestricted files upload","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. The upload validation checks were not robust enough which left the possibility of an attacker to circumvent them and upload a potentially dangerous file. Exploiting this flaw, a combination of files could be uploaded so that they work together to circumvent the existing Content-Security-Policy and allow execution of arbitrary JavaScript in the browser. This issue has been patched in version 12.3.","status":"published","published":"2023-05-27T03:58:10.152Z","modified":"2025-01-14T18:20:14.319Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-79","CWE-434"],"updated_at":"2026-11-02T14:35:29.381004Z"}],"euvd":[{"id":"EUVD-2023-1647","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. The upload validation checks were not robust enough which left the possibility of an attacker to circumvent them and upload a potentially dangerous file. Exploiting this flaw, a combination of files could be uploaded so that they work together to circumvent the existing Content-Security-Policy and allow execution of arbitrary JavaScript in the browser. This issue has been patched in version 12.3.","status":"published","published":"2023-05-27T03:58:10Z","modified":"2025-01-14T18:20:14Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-11-03T00:04:19.424496Z"}],"ghsa":[{"id":"GHSA-x7c2-7wvg-jpx7","title":"kiwitcms vulnerable to stored XSS via unrestricted files upload","description":"### Impact\nKiwi 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, see [GHSA-fwcf-753v-fgcj](https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-fwcf-753v-fgcj) and Content-Security-Policy definition to prevent cross-site-scripting attacks, see [GHSA-2wcr-87wf-cf9j](https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-2wcr-87wf-cf9j).\n\nThe upload validation checks were not robust enough which left the possibility of an attacker to circumvent them and upload a potentially dangerous file. Exploting this flaw a combination of files could be uploaded so that they work together to circumvent the existing Content-Security-Policy and allow execution of arbitrary JavaScript in the browser.\n\n### Patches\n- File upload validation code has been improved\n- Kiwi TCMS will now force `Content-Type: text/plain`  when serving uploaded files\n\n### Workarounds\n\n1) Force the Content-Type header via a custom Django middleware, see `ExtraHeadersMiddleware` in https://github.com/kiwitcms/Kiwi/blob/master/tcms/core/middleware.py#L23 and/or\n2) Force the Content-Type header via Nginx overrides, see `location /uploads/` in https://github.com/kiwitcms/Kiwi/blob/master/etc/nginx.conf\n\n### References\nDisclosed by [Antonio Spataro](https://huntr.dev/bounties/db75275f-8bcd-482b-ae12-feff660d4794) and [ek1ng](https://huntr.dev/bounties/46d5b535-bdff-4b98-8691-a907591fcf10/). Additional credits to [Ahmed Rabeaa Mosa](https://huntr.dev/bounties/cbc2676a-90ff-457f-9cdc-2a7981f960f3/).\n","status":"published","published":"2023-05-22T19:39:46Z","modified":"2023-11-07T05:05:31Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79","CWE-434"],"updated_at":"2026-11-02T14:37:15.931647Z"}],"nvd":[{"id":"CVE-2023-32686","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. The upload validation checks were not robust enough which left the possibility of an attacker to circumvent them and upload a potentially dangerous file. Exploiting this flaw, a combination of files could be uploaded so that they work together to circumvent the existing Content-Security-Policy and allow execution of arbitrary JavaScript in the browser. This issue has been patched in version 12.3.","status":"published","published":"2023-05-27T04:15:25.347Z","modified":"2026-06-17T05:59:23.373Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79","CWE-434"],"updated_at":"2026-11-02T14:08:03.200773Z"}],"osv":[{"id":"CVE-2023-32686","title":"kiwitcms vulnerable to stored XSS via unrestricted files upload","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. The upload validation checks were not robust enough which left the possibility of an attacker to circumvent them and upload a potentially dangerous file. Exploiting this flaw, a combination of files could be uploaded so that they work together to circumvent the existing Content-Security-Policy and allow execution of arbitrary JavaScript in the browser. This issue has been patched in version 12.3.","status":"published","published":"2023-05-27T03:58:10.152Z","modified":"2026-10-28T02:31:08.008460979Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-434","CWE-79"],"updated_at":"2026-11-02T15:44:32.116263Z"},{"id":"GHSA-x7c2-7wvg-jpx7","title":"kiwitcms vulnerable to stored XSS via unrestricted files upload","description":"### Impact\nKiwi 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, see [GHSA-fwcf-753v-fgcj](https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-fwcf-753v-fgcj) and Content-Security-Policy definition to prevent cross-site-scripting attacks, see [GHSA-2wcr-87wf-cf9j](https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-2wcr-87wf-cf9j).\n\nThe upload validation checks were not robust enough which left the possibility of an attacker to circumvent them and upload a potentially dangerous file. Exploting this flaw a combination of files could be uploaded so that they work together to circumvent the existing Content-Security-Policy and allow execution of arbitrary JavaScript in the browser.\n\n### Patches\n- File upload validation code has been improved\n- Kiwi TCMS will now force `Content-Type: text/plain`  when serving uploaded files\n\n### Workarounds\n\n1) Force the Content-Type header via a custom Django middleware, see `ExtraHeadersMiddleware` in https://github.com/kiwitcms/Kiwi/blob/master/tcms/core/middleware.py#L23 and/or\n2) Force the Content-Type header via Nginx overrides, see `location /uploads/` in https://github.com/kiwitcms/Kiwi/blob/master/etc/nginx.conf\n\n### References\nDisclosed by [Antonio Spataro](https://huntr.dev/bounties/db75275f-8bcd-482b-ae12-feff660d4794) and [ek1ng](https://huntr.dev/bounties/46d5b535-bdff-4b98-8691-a907591fcf10/). Additional credits to [Ahmed Rabeaa Mosa](https://huntr.dev/bounties/cbc2676a-90ff-457f-9cdc-2a7981f960f3/).\n","status":"published","published":"2023-05-22T19:39:46Z","modified":"2026-09-10T03:50:01.766513034Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-434","CWE-79"],"updated_at":"2026-11-02T15:46:59.484835Z"},{"id":"PYSEC-2026-1500","title":"kiwitcms vulnerable to stored XSS via unrestricted files upload","description":"### Impact\nKiwi 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, see [GHSA-fwcf-753v-fgcj](https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-fwcf-753v-fgcj) and Content-Security-Policy definition to prevent cross-site-scripting attacks, see [GHSA-2wcr-87wf-cf9j](https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-2wcr-87wf-cf9j).\n\nThe upload validation checks were not robust enough which left the possibility of an attacker to circumvent them and upload a potentially dangerous file. Exploting this flaw a combination of files could be uploaded so that they work together to circumvent the existing Content-Security-Policy and allow execution of arbitrary JavaScript in the browser.\n\n### Patches\n- File upload validation code has been improved\n- Kiwi TCMS will now force `Content-Type: text/plain`  when serving uploaded files\n\n### Workarounds\n\n1) Force the Content-Type header via a custom Django middleware, see `ExtraHeadersMiddleware` in https://github.com/kiwitcms/Kiwi/blob/master/tcms/core/middleware.py#L23 and/or\n2) Force the Content-Type header via Nginx overrides, see `location /uploads/` in https://github.com/kiwitcms/Kiwi/blob/master/etc/nginx.conf\n\n### References\nDisclosed by [Antonio Spataro](https://huntr.dev/bounties/db75275f-8bcd-482b-ae12-feff660d4794) and [ek1ng](https://huntr.dev/bounties/46d5b535-bdff-4b98-8691-a907591fcf10/). Additional credits to [Ahmed Rabeaa Mosa](https://huntr.dev/bounties/cbc2676a-90ff-457f-9cdc-2a7981f960f3/).\n","status":"published","published":"2026-07-07T11:45:19.015059Z","modified":"2026-07-07T17:47:14.685606317Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:55.06457Z"}]}}
