CVE-2024-42346 Stored Cross Site Scripting (Stored XSS) in Galaxy

High 7.6 Published Updated

Attackers can inject malicious scripts via the visualization editor, leading to JavaScript execution in victim browsers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-42346?

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.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2024-42346?

2 open source packages ship an affected version, including galaxy-auth and galaxy-data. It affects 1 product.

PackageAffectedFixed in
galaxy-auth PyPIAll versions24.1.1
galaxy-data PyPIAll versions24.1.1

Products include Galaxyproject Galaxy.

How do I fix CVE-2024-42346?

Upgrade galaxy-auth to 24.1.1 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-42346 being exploited?

There is no known exploitation of CVE-2024-42346 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-x6w7-3gwf-qr9r, PYSEC-2024-272, PYSEC-2024-273.

Is CVE-2024-42346 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free