CVE-2021-32860 iziModal vulnerable to Cross-site Scripting
An attacker can inject arbitrary HTML or JavaScript into iziModal titles, leading to cross-site scripting attacks against users.
- 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-32860?
CVE-2021-32860 is a medium-severity cross-site scripting vulnerability in npm iziModal, 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
iziModal is a modal plugin with jQuery. Versions prior to 1.6.1 are vulnerable to cross-site scripting (XSS) when handling untrusted modal titles. An attacker who is able to influence the field `title` when creating a `iziModal` instance is able to supply arbitrary `html` or `javascript` code that will be rendered in the context of a user, potentially leading to `XSS`. Version 1.6.1 contains a patch for this issue
Weakness: CWE-79
Which versions are affected by CVE-2021-32860?
2 open source packages ship an affected version, including izimodal. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
izimodal npm | All versions | 1.6.1 |
izimodal npm | All versions | 1.6.1 |
Products include Izimodal Project Izimodal.
How do I fix CVE-2021-32860?
Upgrade izimodal to 1.6.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-32860 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-32860 exists.
Sources
Also known as GHSA-h685-83w4-3ph3.