CVE-2018-20676:
XSS vulnerability that affects bootstrap
6.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.90445%
CWE
Published
1/17/2019
Updated
8/5/2024
KEV Status
No
Technology
JavaScript
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 | npm | < 3.4.0 | 3.4.0 |
bootstrap-sass | npm | < 3.4.0 | 3.4.0 |
twbs/bootstrap | composer | < 3.4.0 | 3.4.0 |
org.webjars:bootstrap | maven | < 3.4.0 | 3.4.0 |
bootstrap | rubygems | < 3.4.0 | 3.4.0 |
bootstrap-sass | rubygems | < 3.4.0 | 3.4.0 |
bootstrap | nuget | < 3.4.0 | 3.4.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The GitHub commit 2a5ba23 shows critical changes in tooltip.js
's viewport and container handling. The vulnerability manifests when user-controlled attributes (data-viewport/data-container) are passed to jQuery
's DOM manipulation methods without proper context escaping. The patch introduces document.find()
to enforce selector context rather than raw HTML interpretation. Unit tests added in the commit specifically validate()
XSS prevention in these attributes, confirming their vulnerability surface.