{"answers":{"affected":"3 open source packages ship an affected version, including kiwitcms. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-36809 exists.","fix":"Upgrade kiwitcms to 12.5 or later.","what":"CVE-2023-36809 is a high-severity cross-site scripting vulnerability in kiwitcms Kiwi, published on 5 Jul 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-36809 and fix it if it is affected.\n\nWhat it is: CVE-2023-36809 is a high-severity cross-site scripting vulnerability in kiwitcms Kiwi, published on 5 Jul 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-36809 exists.\n\nAffected packages and fixed versions:\n- kiwitcms (PyPI): affected all versions; fixed in 12.5\n- kiwitcms (PyPI): affected all versions; fixed in 12.5\n- kiwitcms (PyPI): affected all versions; fixed in 12.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-36809/ (Markdown: https://insights.sbomify.com/CVE-2023-36809/index.md)","id":"CVE-2023-36809","markdown":"https://insights.sbomify.com/CVE-2023-36809/index.md","name":"CVE-2023-36809","record":{"aliases":["GHSA-jpgw-2r9m-8qfw","PYSEC-2026-1499"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Test management system","requires_auth":"none","summary":"Attackers can execute stored XSS via uploaded attachments due to misconfigured HTTP headers and insufficient validation in Kiwi TCMS.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"kiwi_tcms","vendor":"kiwitcms"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Kiwi TCMS's misconfigured HTTP headers allow stored XSS execution with Firefox","id":"CVE-2023-36809","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2023"},"n_packages":3,"n_references":6,"next":{"headline":"Quadratic runtime with malformed PDF missing xref marker in pypdf","id":"CVE-2023-36810"},"packages":[{"ecosystem":"PyPI","fixed":["12.5"],"introduced":["0"],"last_affected":[],"package":"kiwitcms","purl":null,"source":"GHSA-jpgw-2r9m-8qfw"},{"ecosystem":"PyPI","fixed":["12.5"],"introduced":["0"],"last_affected":[],"package":"kiwitcms","purl":"pkg:pypi/kiwitcms","source":"GHSA-jpgw-2r9m-8qfw"},{"ecosystem":"PyPI","fixed":["12.5"],"introduced":["0"],"last_affected":[],"package":"kiwitcms","purl":"pkg:pypi/kiwitcms","source":"PYSEC-2026-1499"}],"prev":{"headline":"GLPI vulnerable to SQL injection through Computer Virtual Machine information","id":"CVE-2023-36808"},"products":["Kiwi"],"published":"2023-07-05","related":[{"cvss_score":8.8,"headline":"Kiwi TCMS has command injection vulnerability in changelog.yml CI workflow","id":"CVE-2023-30628","kev_date_added":null,"published":"2023-04-24"},{"cvss_score":8.1,"headline":"Stored cross site scripting (XSS) via unrestricted file upload in Kiwi TCMS","id":"CVE-2023-33977","kev_date_added":null,"published":"2023-06-06"},{"cvss_score":8.1,"headline":"kiwitcms vulnerable to stored XSS via unrestricted files upload","id":"CVE-2023-32686","kev_date_added":null,"published":"2023-05-27"},{"cvss_score":8.1,"headline":"Kiwi TCMS unrestricted file upload vulnerability","id":"CVE-2023-30613","kev_date_added":null,"published":"2023-04-24"},{"cvss_score":7.6,"headline":"Stored cross site scripting via SVG file upload in Kiwi TCMS","id":"CVE-2023-27489","kev_date_added":null,"published":"2023-03-29"},{"cvss_score":7.5,"headline":"Kiwi TCMS has no protection against brute-force attacks on login page","id":"CVE-2023-25156","kev_date_added":null,"published":"2023-02-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-24","vendors":["kiwitcms"]},"summary":"Attackers can execute stored XSS via uploaded attachments due to misconfigured HTTP headers and insufficient validation in Kiwi TCMS.","url":"https://insights.sbomify.com/CVE-2023-36809/"}