CVE-2018-14042: Bootstrap Cross-Site Scripting Vulnerability in Tooltip Data-Container Property
6.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.77441%
CWE
Published
9/13/2018
Updated
8/5/2024
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched 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 | composer | >= 4.0.0, < 4.1.2 | 4.1.2 |
twbs/bootstrap | composer | >= 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 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The GitHub commit 2d90d36 shows the fix changed container selection from $(config.container) to $(document).find(config.container). This indicates the original code directly evaluated user-controlled 'data-container' input as a jQuery selector, enabling XSS if the value contained malicious HTML. The vulnerability is specifically in how the container parameter was processed in the Tooltip component's initialization.