{"answers":{"affected":"7 open source packages ship an affected version, including vitess.io/vitess.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53257 exists.","fix":"Upgrade vitess.io/vitess to a fixed version for your release line: 0.19.8, 0.20.4 or 0.21.1.","what":"CVE-2024-53257 is a medium-severity cross-site scripting vulnerability in vitessio vitess, published on 3 Dec 2024. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-53257 and fix it if it is affected.\n\nWhat it is: CVE-2024-53257 is a medium-severity cross-site scripting vulnerability in vitessio vitess, published on 3 Dec 2024. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53257 exists.\n\nAffected packages and fixed versions:\n- vitess.io/vitess (Go): affected all versions; fixed in 0.19.8, 0.20.4, 0.21.1\n- vitess.io/vitess (Go): affected all versions; fixed in 0.19.8\n- vitess.io/vitess (Go): affected all versions; fixed in 0.19.8\n- vitess.io/vitess (Go): affected from 0.20.0-rc1; fixed in 0.20.4\n- vitess.io/vitess (Go): affected from 0.20.0-rc1; fixed in 0.20.4\n- vitess.io/vitess (Go): affected from 0.21.0-rc1; fixed in 0.21.1\n- vitess.io/vitess (Go): affected from 0.21.0-rc1; fixed in 0.21.1\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-53257/ (Markdown: https://insights.sbomify.com/CVE-2024-53257/index.md)","id":"CVE-2024-53257","markdown":"https://insights.sbomify.com/CVE-2024-53257/index.md","name":"CVE-2024-53257","record":{"aliases":["AZL-53970","AZL-53977","GHSA-7mwh-q3xm-qh6p","GO-2024-3306"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Vitess database clustering","requires_auth":"high_privilege","summary":"Attackers can inject HTML into Vitess debug pages via unescaped queries, potentially leading to script execution in admin browsers.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Vitess is a database clustering system for horizontal scaling of MySQL. The /debug/querylogz and /debug/env pages for vtgate and vttablet do not properly escape user input. The result is that queries executed by Vitess can write HTML into the monitoring page at will. These pages are rendered using text/template instead of rendering with a proper HTML templating engine. This vulnerability is fixed in 21.0.1, 20.0.4, and 19.0.8.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Vitess allows HTML injection in /debug/querylogz \u0026 /debug/env","id":"CVE-2024-53257","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":7,"n_references":2,"next":{"headline":"download_all_submissions allows student to download another student's submissions in Autolab","id":"CVE-2024-53258"},"packages":[{"ecosystem":"Go","fixed":["0.19.8","0.20.4","0.21.1"],"introduced":["0","0.20.0","0.21.0"],"last_affected":[],"package":"vitess.io/vitess","purl":"pkg:golang/vitess.io/vitess","source":"GO-2024-3306"},{"ecosystem":"Go","fixed":["0.19.8"],"introduced":["0"],"last_affected":[],"package":"vitess.io/vitess","purl":null,"source":"GHSA-7mwh-q3xm-qh6p"},{"ecosystem":"Go","fixed":["0.19.8"],"introduced":["0"],"last_affected":[],"package":"vitess.io/vitess","purl":"pkg:golang/vitess.io/vitess","source":"GHSA-7mwh-q3xm-qh6p"},{"ecosystem":"Go","fixed":["0.20.4"],"introduced":["0.20.0-rc1"],"last_affected":[],"package":"vitess.io/vitess","purl":null,"source":"GHSA-7mwh-q3xm-qh6p"},{"ecosystem":"Go","fixed":["0.20.4"],"introduced":["0.20.0-rc1"],"last_affected":[],"package":"vitess.io/vitess","purl":"pkg:golang/vitess.io/vitess","source":"GHSA-7mwh-q3xm-qh6p"},{"ecosystem":"Go","fixed":["0.21.1"],"introduced":["0.21.0-rc1"],"last_affected":[],"package":"vitess.io/vitess","purl":null,"source":"GHSA-7mwh-q3xm-qh6p"},{"ecosystem":"Go","fixed":["0.21.1"],"introduced":["0.21.0-rc1"],"last_affected":[],"package":"vitess.io/vitess","purl":"pkg:golang/vitess.io/vitess","source":"GHSA-7mwh-q3xm-qh6p"}],"prev":{"headline":"Rizin has a command injection via RzBinInfo bclass due legacy code","id":"CVE-2024-53256"},"products":["vitess"],"published":"2024-12-03","related":[],"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":"Go Vulnerability Database","prefix":"GO"},{"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":"partial"},"state":"PUBLISHED","updated":"2024-12-03","vendors":["vitessio"]},"summary":"Attackers can inject HTML into Vitess debug pages via unescaped queries, potentially leading to script execution in admin browsers.","url":"https://insights.sbomify.com/CVE-2024-53257/"}