CVE-2024-43795 OpenC3 COSMOS vulnerable to cross-site scripting in Login functionality (`GHSL-2024-128`)

Medium 5.1 Published Updated

Attackers can execute arbitrary scripts in users' browsers via the login page, potentially leading to session hijacking or data theft.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-43795?

CVE-2024-43795 is a medium-severity cross-site scripting vulnerability in OpenC3 cosmos, published on 2 Oct 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems. The login functionality contains a reflected cross-site scripting (XSS) vulnerability. This vulnerability is fixed in 5.19.0. Note: This CVE only affects Open Source Edition, and not OpenC3 COSMOS Enterprise Edition.

Weakness: CWE-79

Which versions are affected by CVE-2024-43795?

7 open source packages ship an affected version, including openc3 and @openc3/tool-common. It affects 1 product.

PackageAffectedFixed in
openc3 PyPIAll versions5.19.0
openc3 PyPIAll versions5.19.0
openc3 PyPIAll versions5.19.0
openc3 RubyGemsAll versions5.19.0
openc3 RubyGemsAll versions5.19.0
@openc3/tool-common npmAll versions5.19.0
1 more packages
@openc3/tool-common npmAll versions5.19.0

Products include Openc3 Cosmos.

How do I fix CVE-2024-43795?

Upgrade openc3 to 5.19.0 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-43795 being exploited?

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

Sources

Also known as GHSA-vfj8-5pj7-2f9g, PYSEC-2024-100.

Is CVE-2024-43795 in your software?

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

Check your SBOMs for free