CVE-2018-20677 bootstrap Cross-site Scripting vulnerability
Cross-site scripting vulnerability in Bootstrap allows attackers to inject malicious scripts via the affix configuration target property.
- 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-2018-20677?
CVE-2018-20677 is a medium-severity cross-site scripting vulnerability in n/a, published on 9 Jan 2019. 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
In Bootstrap before 3.4.0, XSS is possible in the affix configuration target property.
Weakness: CWE-79
Which versions are affected by CVE-2018-20677?
14 open source packages ship an affected version, including bootstrap, org.webjars:bootstrap and twbs/bootstrap. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bootstrap NuGet | All versions | 3.4.0 |
bootstrap NuGet | All versions | 3.4.0 |
bootstrap RubyGems | All versions | 3.4.0 |
bootstrap RubyGems | All versions | 3.4.0 |
bootstrap npm | All versions | 3.4.0 |
bootstrap npm | All versions | 3.4.0 |
8 more packages
org.webjars:bootstrap Maven | All versions | 3.4.0 |
org.webjars:bootstrap Maven | All versions | 3.4.0 |
twbs/bootstrap Packagist | All versions | 3.4.0 |
twbs/bootstrap Packagist | All versions | 3.4.0 |
bootstrap-sass RubyGems | All versions | 3.4.0 |
bootstrap-sass RubyGems | All versions | 3.4.0 |
bootstrap-sass npm | All versions | 3.4.0 |
bootstrap-sass npm | All versions | 3.4.0 |
Products include Getbootstrap Bootstrap.
How do I fix CVE-2018-20677?
Upgrade bootstrap to 3.4.0 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-2018-20677 being exploited?
There is no known exploitation of CVE-2018-20677 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as AZL-105146, AZL-105161, AZL-105263, AZL-44799, DEBIAN-CVE-2018-20677, GHSA-ph58-4vrj-w6hr and 1 more.