{"answers":{"affected":"3 open source packages ship an affected version, including twisted. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-41810 exists.","fix":"Upgrade twisted to 24.7.0rc1 or later.","what":"CVE-2024-41810 is a medium-severity cross-site scripting vulnerability in twisted, published on 29 Jul 2024. 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-2024-41810 and fix it if it is affected.\n\nWhat it is: CVE-2024-41810 is a medium-severity cross-site scripting vulnerability in twisted, published on 29 Jul 2024. 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-2024-41810 exists.\n\nAffected packages and fixed versions:\n- twisted (PyPI): affected all versions; fixed in 24.7.0rc1\n- twisted (PyPI): affected all versions; fixed in 24.7.0rc1\n- twisted (PyPI): affected all versions; fixed in 24.7.0rc1\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-2024-41810/ (Markdown: https://insights.sbomify.com/CVE-2024-41810/index.md)","id":"CVE-2024-41810","markdown":"https://insights.sbomify.com/CVE-2024-41810/index.md","name":"CVE-2024-41810","record":{"aliases":["AZL-47073","AZL-47195","DEBIAN-CVE-2024-41810","GHSA-cf56-g6w6-pqq2","PYSEC-2024-75","UBUNTU-CVE-2024-41810"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python web framework","requires_auth":"none","summary":"Attackers can inject malicious HTML into redirect responses via controlled URLs, leading to reflected XSS in applications using Twisted.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"twisted","vendor":"twisted"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Twisted is an event-based framework for internet applications, supporting Python 3.6+. The `twisted.web.util.redirectTo` function contains an HTML injection vulnerability. If application code allows an attacker to control the redirect URL this vulnerability may result in Reflected Cross-Site Scripting (XSS) in the redirect response HTML body. This vulnerability is fixed in 24.7.0rc1.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-41810.yaml","stars":null,"title":"Twisted - Open Redirect \u0026 XSS"}],"tier":"weaponised"},"has_fix":true,"headline":"HTML injection in HTTP redirect body","id":"CVE-2024-41810","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"ipl/web susceptible to Cross-Site Request Forgery (CSRF)","id":"CVE-2024-41811"},"packages":[{"ecosystem":"PyPI","fixed":["24.7.0rc1"],"introduced":["0"],"last_affected":[],"package":"twisted","purl":null,"source":"GHSA-cf56-g6w6-pqq2"},{"ecosystem":"PyPI","fixed":["24.7.0rc1"],"introduced":["0"],"last_affected":[],"package":"twisted","purl":"pkg:pypi/twisted","source":"GHSA-cf56-g6w6-pqq2"},{"ecosystem":"PyPI","fixed":["24.7.0rc1"],"introduced":["0"],"last_affected":[],"package":"twisted","purl":"pkg:pypi/twisted","source":"PYSEC-2024-75"}],"prev":{"headline":"OpenObserve Cross-site Scripting (XSS) vulnerability in `openobserve/web/src/views/MemberSubscription.vue`","id":"CVE-2024-41809"},"products":["twisted"],"published":"2024-07-29","related":[{"cvss_score":7.5,"headline":"Twisted: Denial of Service (DoS) in twisted.names via Crafted DNS Compression Pointer Chains","id":"CVE-2026-42304","kev_date_added":null,"published":"2026-05-13"},{"cvss_score":7.5,"headline":"Python Twisted trustRoot is not respected in HTTP client","id":"CVE-2014-7143","kev_date_added":null,"published":"2019-11-12"},{"cvss_score":7.4,"headline":"Improper Certificate Validation in Twisted","id":"CVE-2019-12855","kev_date_added":null,"published":"2019-06-16"},{"cvss_score":5.3,"headline":"twisted.web has disordered HTTP pipeline response","id":"CVE-2023-46137","kev_date_added":null,"published":"2023-10-25"},{"cvss_score":5.3,"headline":"Forced Browsing in Twisted","id":"CVE-2016-1000111","kev_date_added":null,"published":"2020-03-11"}],"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":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["twisted"]},"summary":"Attackers can inject malicious HTML into redirect responses via controlled URLs, leading to reflected XSS in applications using Twisted.","url":"https://insights.sbomify.com/CVE-2024-41810/"}