CVE-2019-20921 Cross-site scripting in bootstrap-select
Attackers can execute arbitrary JavaScript in victims' browsers via unescaped title values in bootstrap-select OPTION elements.
- 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-2019-20921?
CVE-2019-20921 is a medium-severity cross-site scripting vulnerability in n/a, published on 30 Sep 2020. 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
bootstrap-select before 1.13.6 allows Cross-Site Scripting (XSS). It does not escape title values in OPTION elements. This may allow attackers to execute arbitrary JavaScript in a victim's browser.
Weakness: CWE-79
Which versions are affected by CVE-2019-20921?
6 open source packages ship an affected version, including bootstrap-select. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bootstrap-select NuGet | All versions | 1.13.6 |
bootstrap-select NuGet | All versions | 1.13.6 |
bootstrap-select npm | All versions | 1.13.6 |
bootstrap-select npm | All versions | 1.13.6 |
bootstrap-select npm | All versions | 1.13.6 |
bootstrap-select npm | All versions | 1.13.6 |
Products include Snapappointments Bootstrap-Select.
How do I fix CVE-2019-20921?
Upgrade bootstrap-select to 1.13.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-2019-20921 being exploited?
There is no known exploitation of CVE-2019-20921 in the wild and no public exploit code.
Sources
Also known as GHSA-7c82-mp33-r854, GHSA-9r7h-6639-v5mw, SNYK-JS-BOOTSTRAPSELECT-570457.