{"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-33977 exists.","fix":"Upgrade kiwitcms to 12.4 or later.","what":"CVE-2023-33977 is a high-severity cross-site scripting vulnerability in kiwitcms Kiwi, published on 6 Jun 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-33977 and fix it if it is affected.\n\nWhat it is: CVE-2023-33977 is a high-severity cross-site scripting vulnerability in kiwitcms Kiwi, published on 6 Jun 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-33977 exists.\n\nAffected packages and fixed versions:\n- kiwitcms (PyPI): affected all versions; fixed in 12.4\n- kiwitcms (PyPI): affected all versions; fixed in 12.4\n- kiwitcms (PyPI): affected all versions; fixed in 12.4\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-33977/ (Markdown: https://insights.sbomify.com/CVE-2023-33977/index.md)","id":"CVE-2023-33977","markdown":"https://insights.sbomify.com/CVE-2023-33977/index.md","name":"CVE-2023-33977","record":{"aliases":["GHSA-2fqm-m4r2-fh98","PYSEC-2026-1495"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"Test management system","requires_auth":"none","summary":"Attackers can upload malicious files to execute arbitrary JavaScript in victim browsers, requiring a reverse proxy configuration to bypass header protections.","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"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2023-06-01","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-06-01T13:10:31Z","kind":"github_poc","ref":"https://github.com/mnqazi/CVE-2023-33977","stars":0,"title":"Read more at Medium"}],"tier":"weaponised"},"has_fix":true,"headline":"Stored cross site scripting (XSS) via unrestricted file upload in Kiwi TCMS","id":"CVE-2023-33977","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2023"},"n_packages":3,"n_references":5,"next":{"headline":"gpt_academic's Configuration File vulnerable to File Information Disclosure","id":"CVE-2023-33979"},"packages":[{"ecosystem":"PyPI","fixed":["12.4"],"introduced":["0"],"last_affected":[],"package":"kiwitcms","purl":null,"source":"GHSA-2fqm-m4r2-fh98"},{"ecosystem":"PyPI","fixed":["12.4"],"introduced":["0"],"last_affected":[],"package":"kiwitcms","purl":"pkg:pypi/kiwitcms","source":"GHSA-2fqm-m4r2-fh98"},{"ecosystem":"PyPI","fixed":["12.4"],"introduced":["0"],"last_affected":[],"package":"kiwitcms","purl":"pkg:pypi/kiwitcms","source":"PYSEC-2026-1495"}],"prev":{"headline":"TensorFlow segfault in array_ops.upper_bound","id":"CVE-2023-33976"},"products":["Kiwi"],"published":"2023-06-06","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":"Kiwi TCMS's misconfigured HTTP headers allow stored XSS execution with Firefox","id":"CVE-2023-36809","kev_date_added":null,"published":"2023-07-05"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-07","vendors":["kiwitcms"]},"summary":"Attackers can upload malicious files to execute arbitrary JavaScript in victim browsers, requiring a reverse proxy configuration to bypass header protections.","url":"https://insights.sbomify.com/CVE-2023-33977/"}