CVE-2018-20676 — Vulnerability in bootstrap — CVE Details
XSS vulnerability that affects bootstrap
Summary
Advisory Timeline
- First published January 17, 2019 (2825 days ago).
- Last revised September 10, 2026 — 2793 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install bootstrap -v 3.4.0
<!-- Update pom.xml dependency version to 3.4.0 for org.webjars:bootstrap -->
npm install bootstrap-sass@3.4.0
composer require "twbs/bootstrap:^3.4.0"
npm install bootstrap@3.4.0
dotnet add package bootstrap --version 3.4.0
gem install bootstrap-sass -v 3.4.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (7)
Affects 5 ecosystems: npm (2), rubygems (2), maven (1), nuget (1), packagist (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| bootstrap | rubygems | All versions | 3.4.0 |
| org.webjars:bootstrap | maven | 1.3.0, 2.0.2, 2.1.1, 2.2.1 (+29 more) | 3.4.0 |
| bootstrap-sass | npm | All versions | 3.4.0 |
| twbs/bootstrap | packagist | v2.2.2, v2.3.0, v2.3.1, v2.3.2 (+16 more) | 3.4.0 |
| bootstrap | npm | All versions | 3.4.0 |
| bootstrap | nuget | 1.0.0, 2.3.1, 2.3.2, 3.0.0 (+15 more) | 3.4.0 |
| bootstrap-sass | rubygems | 1.2.0, 1.2.1, 1.3.0, 1.3.1 (+53 more) | 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-20676ADVISORY
- https://github.com/twbs/bootstrap/issues/27915#issuecomment-452196628WEB
- https://github.com/twbs/bootstrap/issues/27915#issuecomment-452140906WEB
- https://github.com/twbs/bootstrap/issues/27044WEB
- 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://github.com/twbs/bootstrapPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap/CVE-2018-20676.ymlWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-sass/CVE-2018-20676.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-20676?
- XSS vulnerability that affects bootstrap 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-20676?
- CVE-2018-20676 affects bootstrap, org.webjars:bootstrap and bootstrap-sass (and 1 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-20676 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- 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-2021-41182MEDIUM
XSS in the `altField` option of the Datepicker widget in jquery-ui
- CVE-2019-8331MEDIUM
Bootstrap Vulnerable to Cross-Site Scripting
- CVE-2018-20677MEDIUM
bootstrap Cross-site Scripting vulnerability
- CVE-2018-14041MEDIUM
Bootstrap Cross-site Scripting vulnerability
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies