CVE-2019-8331:
Bootstrap Tooltip and Popover Cross-Site Scripting Vulnerability
6.1
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
2/22/2019
Updated
8/1/2024
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/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.3.1 | 4.3.1 |
bootstrap-sass | rubygems | >= 3.0.0, < 3.4.1 | 3.4.1 |
Bootstrap.Less | nuget | >= 3.0.0, < 3.4.1 | 3.4.1 |
bootstrap | nuget | >= 4.0.0, < 4.3.1 | 4.3.1 |
bootstrap | nuget | >= 3.0.0, < 3.4.1 | 3.4.1 |
bootstrap.sass | nuget | < 4.3.1 | 4.3.1 |
bootstrap | npm | >= 4.0.0, < 4.3.1 | 4.3.1 |
bootstrap | npm | >= 3.0.0, < 3.4.1 | 3.4.1 |
bootstrap-sass | npm | >= 3.0.0, < 3.4.1 | 3.4.1 |
twitter-bootstrap-rails | rubygems | <= 5.0.0 | |
org.webjars:bootstrap | maven | >= 3.0.0, < 3.4.1 | 3.4.1 |
org.webjars:bootstrap | maven | >= 4.0.0, < 4.3.1 | 4.3.1 |
twbs/bootstrap | composer | >= 3.0.0, < 3.4.1 | 3.4.1 |
twbs/bootstrap | composer | >= 4.0.0, < 4.3.1 | 4.3.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient sanitization of the data-template attribute in Tooltip/Popover plugins. The GitHub PR #28236 shows these components were patched by adding a sanitizer. In vulnerable versions (<3.4.1 and <4.3.1), the _getContent methods processed user-controlled template content without sanitization, enabling XSS. The functions are explicitly mentioned in the patch diff and CVE description as the vulnerable entry points.