Vulnerabilities in pkg:gem/bootstrap
PACKAGECVE-2018-14042 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Bootstrap libraries in the RubyGems ecosystem. The issue involves bootstrap cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 4.1.2, 3.4.0.
pkg:gem/bootstrap
Vulnerability advisories affecting package pkg:gem/bootstrap. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7mvr-5x2g-wfc8 | CVE-2018-14042 | MODERATE | Bootstrap Cross-site Scripting vulnerability |
| GHSA-9v3m-8fp8-mj99 | CVE-2019-8331 | MODERATE | Bootstrap Vulnerable to Cross-Site Scripting |
| GHSA-pj7m-g53m-7638 | CVE-2018-14041 | MODERATE | Bootstrap Cross-site Scripting vulnerability |
| GHSA-vc8w-jr9v-vj7f | CVE-2024-6531 | MODERATE | Withdrawn Advisory: Bootstrap Cross-Site Scripting (XSS) vulnerability |
| GHSA-9mvj-f7w8-pvh2 | CVE-2024-6484 | MODERATE | Withdrawn Advisory: Bootstrap Cross-Site Scripting (XSS) vulnerability |
| GHSA-3wqf-4x89-9g79 | CVE-2018-14040 | MODERATE | Bootstrap vulnerable to Cross-Site Scripting (XSS) |
| GHSA-3mgp-fx93-9xv5 | CVE-2018-20676 | MODERATE | XSS vulnerability that affects bootstrap |
| GHSA-ph58-4vrj-w6hr | CVE-2018-20677 | MODERATE | bootstrap Cross-site Scripting vulnerability |
| GHSA-4p24-vmcr-4gqj | CVE-2016-10735 | MODERATE | Bootstrap Cross-site Scripting vulnerability |
CVE-2018-14042 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2018-14042
To remediate this vulnerability, upgrade all affected Bootstrap dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade bootstrap to 4.1.2
Upgrade bootstrap to 3.4.0
npm install bootstrap@4.1.2
npm install bootstrap@3.4.0
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>4.1.2</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>3.4.0</version>
</dependency>
Upgrade twbs/bootstrap to 4.1.2
Upgrade twbs/bootstrap to 3.4.0
Upgrade bootstrap to 4.1.2
Upgrade bootstrap to 3.4.0
Upgrade bootstrap-sass to 3.4.0
npm install bootstrap-sass@3.4.0
Upgrade bootstrap.sass to 4.1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for bootstrap
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-14042, inspect your project dependencies for Bootstrap:
inspect dependencies for bootstrap
Analyze the terminal output to locate any version of Bootstrap in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Bootstrap, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-14042 Affected Bootstrap Versions
13 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
bootstrap
|
RubyGems |
≥ 4.0.0
< 4.1.2
|
4.1.2
|
|
bootstrap
|
RubyGems |
≥ 2.3.0
< 3.4.0
|
3.4.0
|
|
bootstrap
|
npm |
≥ 4.0.0
< 4.1.2
|
4.1.2
|
|
bootstrap
|
npm |
≥ 2.3.0
< 3.4.0
|
3.4.0
|
|
org.webjars:bootstrap
|
Maven |
≥ 4.0.0
< 4.1.2
|
4.1.2
|
|
org.webjars:bootstrap
|
Maven |
≥ 2.3.0
< 3.4.0
|
3.4.0
|
|
twbs/bootstrap
|
Packagist |
≥ 4.0.0
< 4.1.2
|
4.1.2
|
|
twbs/bootstrap
|
Packagist |
≥ 2.3.0
< 3.4.0
|
3.4.0
|
|
bootstrap
|
NuGet |
≥ 4.0.0
< 4.1.2
|
4.1.2
|
|
bootstrap
|
NuGet |
≥ 2.3.0
< 3.4.0
|
3.4.0
|
|
bootstrap-sass
|
RubyGems |
≥ 2.3.0
< 3.4.0
|
3.4.0
|
|
bootstrap-sass
|
npm |
≥ 2.0.4
< 3.4.0
|
3.4.0
|
|
bootstrap.sass
|
NuGet |
≥ 4.0.0
< 4.1.2
|
4.1.2
|
References
Frequently Asked Questions
What is CVE-2018-14042?
Which Bootstrap versions are affected?
What version fixes CVE-2018-14042?
Is bootstrap affected?
Is twbs/bootstrap affected?
What is the CVSS score of CVE-2018-14042?
What CWE is associated with CVE-2018-14042?
How can I check RubyGems dependencies for CVE-2018-14042?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7mvr-5x2g-wfc8",
"modified" : "2026-06-08T23:16:17Z",
"published" : "2018-09-13T15:50:32Z",
"aliases" : [ "CVE-2018-14042" ],
"summary" : "Bootstrap Cross-site Scripting vulnerability",
"details" : "In Bootstrap starting in version 2.3.0 and prior to versions 3.4.0 and 4.1.2, XSS is possible in the data-container property of tooltip. This is similar to CVE-2018-14041.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "bootstrap"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "bootstrap"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "3.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "bootstrap"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "bootstrap"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "3.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.webjars:bootstrap"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.webjars:bootstrap"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "3.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "twbs/bootstrap"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "twbs/bootstrap"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "3.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "bootstrap"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "bootstrap"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "3.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "bootstrap-sass"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "3.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "bootstrap-sass"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.4"
}, {
"fixed" : "3.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "bootstrap.sass"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-14042"
}, {
"type" : "WEB",
"url" : "https://github.com/twbs/bootstrap/issues/26423"
}, {
"type" : "WEB",
"url" : "https://github.com/twbs/bootstrap/issues/26428"
}, {
"type" : "WEB",
"url" : "https://github.com/twbs/bootstrap/issues/26628"
}, {
"type" : "WEB",
"url" : "https://github.com/twbs/bootstrap/pull/26630"
}, {
"type" : "WEB",
"url" : "https://github.com/twbs/bootstrap/commit/2a5ba23ce8f041f3548317acc992ed8a736b609d"
}, {
"type" : "WEB",
"url" : "https://github.com/twbs/bootstrap/commit/2d90d369bbc2bd2647620246c55cec8c4705e3d0"
}, {
"type" : "WEB",
"url" : "https://www.tenable.com/security/tns-2021-14"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuApr2021.html"
}, {
"type" : "WEB",
"url" : "https://seclists.org/bugtraq/2019/May/18"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r3dc0cac8d856bca02bd6997355d7ff83027dcfc82f8646a29b89b714@%3Cissues.hbase.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e@%3Cdev.superset.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/twbs/bootstrap"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap/CVE-2018-14042.yml"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-sass/CVE-2018-14042.yml"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-7mvr-5x2g-wfc8"
}, {
"type" : "WEB",
"url" : "https://blog.getbootstrap.com/2018/07/12/bootstrap-4-1-2"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/156743/OctoberCMS-Insecure-Dependencies.html"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2019/May/10"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2019/May/11"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2019/May/13"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:23:00Z",
"nvd_published_at" : "2018-07-13T14:29:00Z"
}
}