CVE-2024-9217 Currency Switcher for WooCommerce <= 2.16.2 - Reflected Cross-Site Scripting

Medium 6.1 Published Updated

Unauthenticated attackers can inject arbitrary web scripts via reflected XSS in the Currency Switcher for WooCommerce plugin, requiring user interaction.

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
None listed

What is CVE-2024-9217?

CVE-2024-9217 is a medium-severity cross-site scripting vulnerability in wpwham Currency Switcher for WooCommerce, published on 1 Mar 2025. 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

The Currency Switcher for WooCommerce plugin for WordPress is vulnerable to Reflected Cross-Site Scripting due to the use of add_query_arg without appropriate escaping on the URL in all versions up to, and including, 2.16.2. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

Weakness: CWE-79

Which versions are affected by CVE-2024-9217?

How do I fix CVE-2024-9217?

No fix has been published for CVE-2024-9217 yet. Limit exposure of the affected software until one is available.

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-9217 being exploited?

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

Sources

Also known as GHSA-97r4-9rqg-c45h.

Is CVE-2024-9217 in your software?

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

Check your SBOMs for free