CVE-2021-32851 jQuery MiniColors vulnerable to Cross-site Scripting
An attacker can execute arbitrary scripts via untrusted menus in the mind-elixir library, 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
- Available
What is CVE-2021-32851?
CVE-2021-32851 is a medium-severity cross-site scripting vulnerability in npm mind-elixir, 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
Mind-elixir is a free, open source mind map core. Prior to version 0.18.1, mind-elixir is prone to cross-site scripting when handling untrusted menus. This issue is patched in version 0.18.1
Weakness: CWE-79
Which versions are affected by CVE-2021-32851?
2 open source packages ship an affected version, including mind-elixir. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mind-elixir npm | All versions | 0.18.1 |
mind-elixir npm | All versions | 0.18.1 |
Products include Mind-Elixir Project Mind-Elixir.
How do I fix CVE-2021-32851?
Upgrade mind-elixir to 0.18.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-2021-32851 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-32851 exists.
Sources
Also known as GHSA-m22q-97p5-79v2.