CVE-2018-14042: XSS

Published May 29, 2018
·
Updated

A flaw was found in Bootstrap from version 4.0 and before 4.1.2. A Cross-site Scripting (XSS) is possible in the data-container property of tooltip.

References: https://github.com/twbs/bootstrap/issues/26628

Upstream Patch: https://github.com/twbs/bootstrap/pull/26630

Other sources

Bootstrap is vulnerable to cross-site scripting, caused by improper validation of user-supplied input by the data-container property of tooltip. 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 4.1.2, XSS is possible in the data-container property of tooltip.

In Bootstrap starting in version 2.3.0 and prior to versions 3.4.0 and 4.1.2, XSS is possible in the data-container property of tooltip. This is similar to CVE-2018-14041.

GitHub

Affected Software

35 affected componentsFixes available
redhat/ipa<0:4.6.8-5.el7
0:4.6.8-5.el7
redhat/eap7-hal-console<0:3.3.16-1.Final_redhat_00001.1.el8ea
0:3.3.16-1.Final_redhat_00001.1.el8ea
redhat/eap7-hal-console<0:3.3.16-1.Final_redhat_00001.1.el9ea
0:3.3.16-1.Final_redhat_00001.1.el9ea
redhat/eap7-hal-console<0:3.3.16-1.Final_redhat_00001.1.el7ea
0:3.3.16-1.Final_redhat_00001.1.el7ea
redhat/rh-sso7-keycloak<0:18.0.6-1.redhat_00001.1.el7
0:18.0.6-1.redhat_00001.1.el7
redhat/rh-sso7-keycloak<0:18.0.6-1.redhat_00001.1.el8
0:18.0.6-1.redhat_00001.1.el8
redhat/rh-sso7-keycloak<0:18.0.6-1.redhat_00001.1.el9
0:18.0.6-1.redhat_00001.1.el9
redhat/bootstrap<4.1.2
4.1.2
redhat/bootstrap<3.4.1
3.4.1
nuget/bootstrap.sass>=4.0.0<4.1.2
4.1.2
npm/bootstrap-sass>=2.0.4<3.4.0
3.4.0
rubygems/bootstrap-sass>=2.3.0<3.4.0
3.4.0
nuget/bootstrap>=2.3.0<3.4.0
3.4.0
nuget/bootstrap>=4.0.0<4.1.2
4.1.2
composer/twbs/bootstrap>=2.3.0<3.4.0
3.4.0
composer/twbs/bootstrap>=4.0.0<4.1.2
4.1.2
maven/org.webjars:bootstrap>=2.3.0<3.4.0
3.4.0
maven/org.webjars:bootstrap>=4.0.0<4.1.2
4.1.2
npm/bootstrap>=2.3.0<3.4.0
3.4.0
npm/bootstrap>=4.0.0<4.1.2
4.1.2
rubygems/bootstrap>=2.3.0<3.4.0
3.4.0
rubygems/bootstrap>=4.0.0<4.1.2
4.1.2
IBM Cognos Analytics<=12.0.0-12.0.3
IBM Cognos Analytics<=11.2.0-11.2.4 FP4
getbootstrap Bootstrap<3.4.0
getbootstrap Bootstrap>=4.0.0<4.1.2
getbootstrap Bootstrap=4.0.0-alpha
getbootstrap Bootstrap=4.0.0-alpha2
getbootstrap Bootstrap=4.0.0-alpha3
getbootstrap Bootstrap=4.0.0-alpha4
getbootstrap Bootstrap=4.0.0-alpha5
getbootstrap Bootstrap=4.0.0-alpha6
getbootstrap Bootstrap=4.0.0-beta
getbootstrap Bootstrap=4.0.0-beta2
getbootstrap Bootstrap=4.0.0-beta3

Event History

May 29, 2018
CVE Published
12:00 AM
Jul 13, 2018
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
Jul 16, 2018
Data Sourced
via Red Hat·10:54 PM
DescriptionSeverityAffected Software
Sep 13, 2018
Advisory Published
via GitHub·03:50 PM
Sep 3, 2025
Data Sourced
via Microsoft·11:08 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this Bootstrap vulnerability?

The vulnerability ID for this Bootstrap vulnerability is CVE-2018-14042.

2

What is the severity of CVE-2018-14042?

The severity of CVE-2018-14042 is medium.

3

Which version of Bootstrap is affected by CVE-2018-14042?

Versions up to and excluding 4.1.2 of Bootstrap are affected by CVE-2018-14042.

4

How can I fix CVE-2018-14042?

To fix CVE-2018-14042, update Bootstrap to version 4.1.2 or later.

5

What is the Common Weakness Enumeration ID for CVE-2018-14042?

The Common Weakness Enumeration (CWE) ID for CVE-2018-14042 is CWE-79.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203