CVE-2018-14040: 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 collapse data-parent attribute.

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

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 collapse data-parent attribute. 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 collapse data-parent attribute.

In Bootstrap starting in version 2.3.0 and prior to 3.4.0, as well as 4.x before 4.1.2, XSS is possible in the collapse data-parent attribute.

GitHub

Affected Software

37 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
composer/twbs/bootstrap>=4.0.0<4.1.2
4.1.2
composer/twbs/bootstrap>=2.3.0<3.4.0
3.4.0
rubygems/bootstrap-sass>=2.3.0<3.4.0
3.4.0
nuget/bootstrap.sass>=4.0.0<4.1.2
4.1.2
nuget/bootstrap>=4.0.0<4.1.2
4.1.2
nuget/bootstrap>=2.3.0<3.4.0
3.4.0
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
rubygems/bootstrap>=2.3.0<3.4.0
3.4.0
npm/bootstrap>=2.3.0<3.4.0
3.4.0
rubygems/bootstrap>=4.0.0<4.1.2
4.1.2
npm/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
Debian Debian Linux=8.0
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
redhat/bootstrap<4.1.2
4.1.2
redhat/bootstrap<3.4.1
3.4.1
Microsoft cm1 boost 1.66.0-4
Microsoft cbl2 reaper 3.1.1-1

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:41 PM
DescriptionSeverityAffected Software
May 13, 2022
Advisory Published
via GitHub·01:07 AM
Sep 3, 2025
Data Sourced
via Microsoft·10:09 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·10:09 PM
Affected Software
Updated
via Microsoft·10:09 PM
Affected Software
Updated
via Microsoft·10:09 PM
DescriptionSeverity
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 severity of CVE-2018-14040?

The severity of CVE-2018-14040 is medium.

2

How does CVE-2018-14040 affect Bootstrap?

CVE-2018-14040 affects Bootstrap by allowing cross-site scripting (XSS) attacks through the collapse data-parent attribute.

3

Is there a known remedy for CVE-2018-14040?

Yes, the known remedy for CVE-2018-14040 is to update Bootstrap to version 4.1.2.

4

What is the Common Weakness Enumeration (CWE) identifier for CVE-2018-14040?

The Common Weakness Enumeration (CWE) identifier for CVE-2018-14040 is CWE-79.

5

Where can I find more information about CVE-2018-14040?

More information about CVE-2018-14040 can be found at the following references: [link1], [link2], [link3].

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