CVE-2021-24938 WooCommerce Currency Switcher < 1.3.7.1 - Reflected Cross-Site Scripting

Medium 6.1 Published Updated

An authenticated attacker can inject malicious scripts via the key parameter in the WooCommerce Currency Switcher plugin, potentially compromising user sessions.

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-2021-24938?

CVE-2021-24938 is a medium-severity cross-site scripting vulnerability in Unknown WOOCS – Currency Switcher for WooCommerce. Professional and Free multi currency plugin – Pay in selected currency, published on 6 Dec 2021. 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 WOOCS WordPress plugin before 1.3.7.1 does not sanitise and escape the key parameter of the woocs_update_profiles_data AJAX action (available to any authenticated user) before outputting it back in the response, leading to a Reflected cross-Site Scripting issue

Weakness: CWE-79

Which versions are affected by CVE-2021-24938?

It affects 1 product.

Products include Woocommerce Woocommerce Currency Switcher.

How do I fix CVE-2021-24938?

No fix has been published for CVE-2021-24938 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-2021-24938 being exploited?

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

Sources

Also known as GHSA-8c8h-r7v9-wmwq.

Is CVE-2021-24938 in your software?

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

Check your SBOMs for free