CVE-2018-20677 — Vulnerability in org.webjars:bootstrap — CVE Details
bootstrap Cross-site Scripting vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (3.98%). Schedule for your next planned update.
Does your project use an affected bootstrap-sass version?
Paste your Gemfile.lock to check it for CVE-2018-20677 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
In Bootstrap before 3.4.0, XSS is possible in the affix configuration target property.
Advisory Timeline
- First published January 17, 2019 (2870 days ago).
- Last revised September 10, 2026 — 2793 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 3.4.0 for org.webjars:bootstrap -->
dotnet add package bootstrap --version 3.4.0
gem install bootstrap-sass -v 3.4.0
npm install bootstrap-sass@3.4.0
composer require "twbs/bootstrap:^3.4.0"
npm install bootstrap@3.4.0
gem install bootstrap -v 3.4.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (7)
Affects 5 ecosystems: npm (2), RubyGems (2), Maven (1), NuGet (1), Packagist (1).
| Package | Fixed In |
|---|---|
| org.webjars:bootstrap Maven · Affected: 1.3.0, 2.0.2, 2.1.1, 2.2.1 (+29 more) | 3.4.0 |
| bootstrap NuGet · Affected: 1.0.0, 2.3.1, 2.3.2, 3.0.0 (+15 more) | 3.4.0 |
| bootstrap-sass RubyGems · Affected: 1.2.0, 1.2.1, 1.3.0, 1.3.1 (+53 more) | 3.4.0 |
| bootstrap-sass npm · Affected: All versions | 3.4.0 |
| twbs/bootstrap Packagist · Affected: v2.2.2, v2.3.0, v2.3.1, v2.3.2 (+16 more) | 3.4.0 |
| bootstrap npm · Affected: All versions | 3.4.0 |
| bootstrap RubyGems · Affected: All versions | 3.4.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-20677ADVISORY
- https://github.com/twbs/bootstrap/issues/27915#issuecomment-452196628WEB
- https://github.com/twbs/bootstrap/issues/27915#issuecomment-452140906WEB
- https://github.com/twbs/bootstrap/issues/27045WEB
- https://github.com/twbs/bootstrap/pull/27047WEB
- https://github.com/twbs/bootstrap/commit/2a5ba23ce8f041f3548317acc992ed8a736b609dWEB
- https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3EWEB
- https://lists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e@%3Cdev.superset.apache.org%3EWEB
- https://github.com/twbs/bootstrapPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap/CVE-2018-20677.ymlWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-sass/CVE-2018-20677.ymlWEB
- https://blog.getbootstrap.com/2018/12/13/bootstrap-3-4-0WEB
- https://access.redhat.com/errata/RHSA-2020:0133WEB
- https://access.redhat.com/errata/RHSA-2020:0132WEB
- https://access.redhat.com/errata/RHSA-2019:3023WEB
- https://access.redhat.com/errata/RHSA-2019:1456WEB
- https://access.redhat.com/errata/RHBA-2019:1570WEB
- https://access.redhat.com/errata/RHBA-2019:1076WEB
Frequently Asked Questions
- What is CVE-2018-20677?
- bootstrap Cross-site Scripting vulnerability. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
- How do I check if my project is affected by CVE-2018-20677?
- CVE-2018-20677 affects org.webjars:bootstrap, bootstrap and bootstrap-sass (and 1 more). It has a 4.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-20677 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This places it in the top 10% of EPSS-scored vulnerabilities — 91.3% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2019-10842CRITICAL
Bootstrap-sass contains code execution backdoor
- CVE-2018-20676MEDIUM
XSS vulnerability that affects bootstrap
- CVE-2018-14040MEDIUM
Bootstrap vulnerable to Cross-Site Scripting (XSS)
- CVE-2016-10735MEDIUM
Bootstrap Cross-site Scripting vulnerability
- CVE-2019-11358MEDIUM
XSS in jQuery as used in Drupal, Backdrop CMS, and other products
- CVE-2018-14042MEDIUM
Bootstrap Cross-site Scripting vulnerability
- CVE-2019-8331MEDIUM
Bootstrap Vulnerable to Cross-Site Scripting
- CVE-2018-14041MEDIUM
Bootstrap Cross-site Scripting vulnerability