CVE-2019-8331 — Vulnerability in bootstrap — CVE Details
Bootstrap Vulnerable to Cross-Site Scripting
Summary
Advisory Timeline
- First published February 22, 2019 (2789 days ago).
- Last revised September 10, 2026 — 2756 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install bootstrap@3.4.1
gem install twitter-bootstrap-rails -v 5.3.0
dotnet add package bootstrap --version 4.3.1
dotnet add package bootstrap.sass --version 4.3.1
composer require "twbs/bootstrap:^4.3.1"
<!-- Update pom.xml dependency version to 3.4.1 for org.webjars:bootstrap -->
dotnet add package bootstrap --version 3.4.1
npm install bootstrap@4.3.1
dotnet add package Bootstrap.Less --version 3.4.1
gem install bootstrap-sass -v 3.4.1
gem install bootstrap -v 4.3.1
<!-- Update pom.xml dependency version to 4.3.1 for org.webjars:bootstrap -->
npm install bootstrap-sass@3.4.1
composer require "twbs/bootstrap:^3.4.1"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (14)
Affects 5 ecosystems: nuget (3), rubygems (3), npm (2), maven (1), packagist (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| bootstrap | npm | All versions | 3.4.1 |
| twitter-bootstrap-rails | rubygems | 0.0.3, 0.0.4, 0.0.5, 1.3.0 (+42 more) | 5.3.0 |
| bootstrap | nuget | 4.0.0, 4.1.0, 4.1.1, 4.1.1-contentFiles (+3 more) | 4.3.1 |
| bootstrap.sass | nuget | 3.4.1, 4.0.0, 4.0.0-alpha, 4.0.0-alpha2 (+13 more) | 4.3.1 |
| twbs/bootstrap | packagist | v4.0.0, v4.1.0, v4.1.1, v4.1.2 (+4 more) | 4.3.1 |
| org.webjars:bootstrap | maven | 3.0.0, 3.0.1, 3.0.2, 3.0.3 (+18 more) | 3.4.1 |
| bootstrap | nuget | 3.0.0, 3.0.1, 3.0.2, 3.0.3 (+13 more) | 3.4.1 |
| bootstrap | npm | All versions | 4.3.1 |
| Bootstrap.Less | nuget | 3.3.5, 3.3.6, 3.3.6-jQuery3, 3.3.6.1 (+2 more) | 3.4.1 |
| bootstrap-sass | rubygems | 3.0.0.0, 3.0.1.0, 3.0.1.0.rc, 3.0.2.0 (+20 more) | 3.4.1 |
| bootstrap | rubygems | 4.0.0, 4.0.0.alpha1, 4.0.0.alpha2, 4.0.0.alpha3 (+14 more) | 4.3.1 |
| org.webjars:bootstrap | maven | 4.0.0, 4.0.0-1, 4.0.0-2, 4.1.0 (+5 more) | 4.3.1 |
| bootstrap-sass | npm | All versions | 3.4.1 |
| twbs/bootstrap | packagist | v3.0.0, v3.0.1, v3.0.2, v3.0.3 (+11 more) | 3.4.1 |
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.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-8331ADVISORY
- https://github.com/twbs/bootstrap/pull/28236WEB
- https://lists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e%40%3Cdev.superset.apache.org%3EWEB
- https://lists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e@%3Cdev.superset.apache.org%3EWEB
- https://lists.apache.org/thread.html/54df3aeb4239b64b50b356f0ca6f986e3c4ca5b84c515dce077c7854%40%3Cuser.flink.apache.org%3EWEB
- https://lists.apache.org/thread.html/54df3aeb4239b64b50b356f0ca6f986e3c4ca5b84c515dce077c7854@%3Cuser.flink.apache.org%3EWEB
- https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3EWEB
- https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3EWEB
- https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3EWEB
- https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3EWEB
- https://lists.apache.org/thread.html/r3dc0cac8d856bca02bd6997355d7ff83027dcfc82f8646a29b89b714%40%3Cissues.hbase.apache.org%3EWEB
- https://lists.apache.org/thread.html/r3dc0cac8d856bca02bd6997355d7ff83027dcfc82f8646a29b89b714@%3Cissues.hbase.apache.org%3EWEB
- https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar.apache.org%3EWEB
- https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3EWEB
- https://seclists.org/bugtraq/2019/May/18WEB
- https://support.f5.com/csp/article/K24383845WEB
- https://support.f5.com/csp/article/K24383845?utm_source=f5support&%3Butm_medium=RSSWEB
- https://support.f5.com/csp/article/K24383845?utm_source=f5support&utm_medium=RSSWEB
- https://web.archive.org/web/20200227083900/http://www.securityfocus.com/bid/107375WEB
- https://www.oracle.com/security-alerts/cpuApr2021.htmlWEB
- https://www.tenable.com/security/tns-2021-14WEB
- https://access.redhat.com/errata/RHSA-2019:1456WEB
- https://access.redhat.com/errata/RHSA-2019:3023WEB
- https://access.redhat.com/errata/RHSA-2019:3024WEB
- https://blog.getbootstrap.com/2019/02/13/bootstrap-4-3-1-and-3-4-1WEB
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-8331WEB
- https://github.com/advisories/GHSA-9v3m-8fp8-mj99ADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap/CVE-2019-8331.ymlWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/twitter-bootstrap-rails/CVE-2019-8331.ymlWEB
- https://github.com/seyhunak/twitter-bootstrap-rails/tree/master/app/assets/javascripts/twitter/bootstrapWEB
- https://github.com/twbs/bootstrapPACKAGE
- https://github.com/twbs/bootstrap/releases/tag/v3.4.1WEB
- https://github.com/twbs/bootstrap/releases/tag/v4.3.1WEB
- https://lists.apache.org/thread.html/10f0f3aefd51444d1198c65f44ffdf2d78ca3359423dbc1c168c9731%40%3Cdev.flink.apache.org%3EWEB
- https://lists.apache.org/thread.html/10f0f3aefd51444d1198c65f44ffdf2d78ca3359423dbc1c168c9731@%3Cdev.flink.apache.org%3EWEB
- https://lists.apache.org/thread.html/17ff53f7999e74fbe3cc0ceb4e1c3b00b180b7c5afec8e978837bc49%40%3Cuser.flink.apache.org%3EWEB
- https://lists.apache.org/thread.html/17ff53f7999e74fbe3cc0ceb4e1c3b00b180b7c5afec8e978837bc49@%3Cuser.flink.apache.org%3EWEB
- https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3EWEB
- https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3EWEB
- https://lists.apache.org/thread.html/52bafac05ad174000ea465fe275fd3cc7bd5c25535a7631c0bc9bfb2%40%3Cuser.flink.apache.org%3EWEB
- https://lists.apache.org/thread.html/52bafac05ad174000ea465fe275fd3cc7bd5c25535a7631c0bc9bfb2@%3Cuser.flink.apache.org%3EWEB
- https://packetstormsecurity.com/files/156743/OctoberCMS-Insecure-Dependencies.htmlWEB
- https://seclists.org/fulldisclosure/2019/May/10WEB
- https://seclists.org/fulldisclosure/2019/May/11WEB
- https://seclists.org/fulldisclosure/2019/May/13WEB
Frequently Asked Questions
- What is CVE-2019-8331?
- Bootstrap Vulnerable to Cross-Site Scripting 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-2019-8331?
- CVE-2019-8331 affects bootstrap, twitter-bootstrap-rails and bootstrap.sass (and 4 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2019-8331 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-2026-107715MEDIUM
Mechanize sends credential headers to another host after an HTTP redirect
- 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-2018-14042MEDIUM
Bootstrap Cross-site Scripting vulnerability
- CVE-2026-107399MEDIUM
Mechanize sends credential headers to another origin after a meta refresh
- 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