CVE-2019-8331: XSS
A cross-site scripting vulnerability was discovered in bootstrap. If an attacker could control the data given to tooltip or popover, they could inject HTML or Javascript into the rendered page when tooltip or popover events fired.
Other sources
A vulnerability was found in Bootstrap before 4.3.1. An XSS is possible in the tooltip or popover data-template attribute.
References: https://github.com/twbs/bootstrap/releases/tag/v4.3.1
Upstream Patch: https://github.com/twbs/bootstrap/pull/28236
— Red Hat
Bootstrap is vulnerable to cross-site scripting, caused by improper validation of user-supplied input by the tooltip or popover data-template. A remote attacker could exploit this vulnerability to execute script in a victim's Web browser within the security context of the hosting Web site. An attacker could use this vulnerability to steal the victim's cookie-based authentication credentials.
— IBM
In Bootstrap before 3.4.1 and 4.3.x before 4.3.1, XSS is possible in the tooltip or popover data-template attribute.
Versions of bootstrap prior to 3.4.1 for 3.x and 4.3.1 for 4.x are vulnerable to Cross-Site Scripting (XSS). The data-template attribute of the tooltip and popover plugins lacks input sanitization and may allow attacker to execute arbitrary JavaScript.
Recommendation
For bootstrap 4.x upgrade to 4.3.1 or later. For bootstrap 3.x upgrade to 3.4.1 or later.
— GitHub
Affected Software
Remediation
Patch Available
Patch Available
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2019-8331?
The severity of CVE-2019-8331 is medium.
Which versions of Bootstrap are affected by CVE-2019-8331?
Bootstrap versions before 3.4.1 and 4.3.x before 4.3.1 are affected by CVE-2019-8331.
How does CVE-2019-8331 impact the user?
CVE-2019-8331 allows a remote attacker to execute script in a victim's web browser within the security context of the hosting website.
How can I fix CVE-2019-8331?
To fix CVE-2019-8331, you need to upgrade to Bootstrap version 3.4.1 or 4.3.1.
Where can I find more information about CVE-2019-8331?
More information about CVE-2019-8331 can be found at the following references: [link1](https://exchange.xforce.ibmcloud.com/vulnerabilities/157409), [link2](https://www.ibm.com/support/pages/node/6570957), [link3](https://github.com/twbs/bootstrap/releases/tag/v4.3.1).