{"answers":{"affected":"2 open source packages ship an affected version, including galaxy-auth and galaxy-data. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-42346 in the wild and no public exploit code.","fix":"Upgrade galaxy-auth to 24.1.1 or later.","what":"CVE-2024-42346 is a high-severity cross-site scripting vulnerability in galaxyproject galaxy, published on 20 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-42346 and fix it if it is affected.\n\nWhat it is: CVE-2024-42346 is a high-severity cross-site scripting vulnerability in galaxyproject galaxy, published on 20 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-42346 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- galaxy-auth (PyPI): affected all versions; fixed in 24.1.1\n- galaxy-data (PyPI): affected all versions; fixed in 24.1.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-42346/ (Markdown: https://insights.sbomify.com/CVE-2024-42346/index.md)","id":"CVE-2024-42346","markdown":"https://insights.sbomify.com/CVE-2024-42346/index.md","name":"CVE-2024-42346","record":{"aliases":["GHSA-x6w7-3gwf-qr9r","PYSEC-2024-272","PYSEC-2024-273"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Galaxy data analysis platform","requires_auth":"low_privilege","summary":"Attackers can inject malicious scripts via the visualization editor, leading to JavaScript execution in victim browsers.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"galaxy","vendor":"galaxyproject"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Galaxy is a free, open-source system for analyzing data, authoring workflows, training and education, publishing tools, managing infrastructure, and more. The editor visualization, /visualizations endpoint, can be used to store HTML tags and trigger javascript execution upon edit operation. All supported branches of Galaxy (and more back to release_20.05) were amended with the supplied patches. Users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2024-11-18","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-11-18T18:31:03Z","kind":"github_poc","ref":"https://github.com/partywavesec/CVE-2024-42346","stars":1,"title":"CVE-2024-42346 POC"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Stored Cross Site Scripting (Stored XSS) in Galaxy","id":"CVE-2024-42346","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"URL preview setting for a room is controllable by the homeserver in matrix-react-sdk","id":"CVE-2024-42347"},"packages":[{"ecosystem":"PyPI","fixed":["24.1.1"],"introduced":["0"],"last_affected":[],"package":"galaxy-auth","purl":"pkg:pypi/galaxy-auth","source":"PYSEC-2024-272"},{"ecosystem":"PyPI","fixed":["24.1.1"],"introduced":["0"],"last_affected":[],"package":"galaxy-data","purl":"pkg:pypi/galaxy-data","source":"PYSEC-2024-273"}],"prev":{"headline":"Auth bypass in SINEMA Remote Connect Server","id":"CVE-2024-42345"},"products":["galaxy"],"published":"2024-09-20","related":[{"cvss_score":9.1,"headline":"Galaxy vulnerable to unauthorized modification of pages/visualizations due to insufficient permission check","id":"CVE-2023-27578","kev_date_added":null,"published":"2023-03-20"},{"cvss_score":8.6,"headline":"Arbitrary file access in the Galaxy data analysis platform","id":"CVE-2022-23470","kev_date_added":null,"published":"2022-12-06"},{"cvss_score":6.5,"headline":"Possible Data Tampering \u0026 Loss of Public Datasets in Galaxy","id":"CVE-2024-42351","kev_date_added":null,"published":"2024-09-20"},{"cvss_score":6.3,"headline":"Galaxy vulnerable to Server Side Request Forgery during data imports","id":"CVE-2023-42812","kev_date_added":null,"published":"2023-09-22"},{"cvss_score":6.1,"headline":"Galaxy cross-site scripting (XSS)","id":"CVE-2018-1000516","kev_date_added":null,"published":"2018-06-26"},{"cvss_score":5.5,"headline":"galaxy-data-resource Command Line Template injection","id":"CVE-2015-10062","kev_date_added":null,"published":"2023-01-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-20","vendors":["galaxyproject"]},"summary":"Attackers can inject malicious scripts via the visualization editor, leading to JavaScript execution in victim browsers.","url":"https://insights.sbomify.com/CVE-2024-42346/"}