CVE-2021-32850 jQuery MiniColors vulnerable to Cross-site Scripting

Medium 6.1 Published Updated

An attacker can execute arbitrary scripts in the victim's browser by providing malicious color names to the jQuery MiniColors library.

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

CVE-2021-32850 is a medium-severity cross-site scripting vulnerability in npm @claviska/jquery-minicolors, published on 20 Feb 2023. 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

jQuery MiniColors is a color picker built on jQuery. Prior to version 2.3.6, jQuery MiniColors is prone to cross-site scripting when handling untrusted color names. This issue is patched in version 2.3.6.

Weakness: CWE-79

Which versions are affected by CVE-2021-32850?

2 open source packages ship an affected version, including @claviska/jquery-minicolors. It affects 1 product.

PackageAffectedFixed in
@claviska/jquery-minicolors npmAll versions2.3.6
@claviska/jquery-minicolors npmAll versions2.3.6

Products include Jquery-Minicolors Project Jquery-Minicolors.

How do I fix CVE-2021-32850?

Upgrade @claviska/jquery-minicolors to 2.3.6 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-2021-32850 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-32850 exists.

Sources

Also known as CVE-2021-4243, DEBIAN-CVE-2021-32850, GHSA-crh5-vv2v-c82q, MGASA-2024-0052, UBUNTU-CVE-2021-32850.

Is CVE-2021-32850 in your software?

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

Check your SBOMs for free