Miggo Logo

CVE-2019-8331:
Bootstrap Tooltip and Popover Cross-Site Scripting Vulnerability

6.1

CVSS Score

Basic Information

EPSS Score
-
Published
2/22/2019
Updated
8/1/2024
KEV Status
No
Technology
TechnologyRuby

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
bootstraprubygems< 4.3.14.3.1
bootstrap-sassrubygems>= 3.0.0, < 3.4.13.4.1
Bootstrap.Lessnuget>= 3.0.0, < 3.4.13.4.1
bootstrapnuget>= 4.0.0, < 4.3.14.3.1
bootstrapnuget>= 3.0.0, < 3.4.13.4.1
bootstrap.sassnuget< 4.3.14.3.1
bootstrapnpm>= 4.0.0, < 4.3.14.3.1
bootstrapnpm>= 3.0.0, < 3.4.13.4.1
bootstrap-sassnpm>= 3.0.0, < 3.4.13.4.1
twitter-bootstrap-railsrubygems<= 5.0.0
org.webjars:bootstrapmaven>= 3.0.0, < 3.4.13.4.1
org.webjars:bootstrapmaven>= 4.0.0, < 4.3.14.3.1
twbs/bootstrapcomposer>= 3.0.0, < 3.4.13.4.1
twbs/bootstrapcomposer>= 4.0.0, < 4.3.14.3.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

V*rsions o* `*ootstr*p` prior to *.*.* *or *.x *n* *.*.* *or *.x *r* vuln*r**l* to *ross-Sit* S*riptin* (XSS). T** `**t*-t*mpl*t*` *ttri*ut* o* t** tooltip *n* popov*r plu*ins l**ks input s*nitiz*tion *n* m*y *llow *tt**k*r to *x**ut* *r*itr*ry J*v*

Reasoning

T** vuln*r**ility st*ms *rom insu**i*i*nt s*nitiz*tion o* t** **t*-t*mpl*t* *ttri*ut* in Tooltip/Popov*r plu*ins. T** *it*u* PR #***** s*ows t**s* *ompon*nts w*r* p*t**** *y ***in* * s*nitiz*r. In vuln*r**l* v*rsions (<*.*.* *n* <*.*.*), t** _**t*ont