Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
6.1

CVE-2018-14040: Bootstrap 4.1.1 and earlier: Malicious JavaScript in collapsed menu headers

CVE-2018-14040 · published 8 years ago
Summary

Using Bootstrap in a web application, attackers could inject malicious JavaScript code into menu headers that are collapsed. This could lead to unauthorized actions on the website. Update Bootstrap to version 4.1.2 or later to fix this vulnerability.

What to do
  • Update mdo bootstrap to version 4.1.2.
  • Update twitter bootstrap to version 4.1.2.
  • Update mdo bootstrap to version 3.4.0.
  • Update twitter bootstrap to version 3.4.0.
  • Update webjars org.webjars:bootstrap to version 4.1.2.
  • Update webjars org.webjars:bootstrap to version 3.4.0.
  • Update thomas mcdonald bootstrap-sass to version 3.4.0.
  • Update twbs bootstrap to version 3.4.0.
  • Update twbs bootstrap to version 4.1.2.
  • Update the bootstrap authors bootstrap.sass to version 4.1.2.
  • Update the bootstrap authors bootstrap to version 3.4.0.
  • Update the bootstrap authors bootstrap to version 4.1.2.
Affected software
Ecosystem VendorProductAffected versions
npm mdo bootstrap >= 4.0.0, < 4.1.2
>= 2.3.0, < 3.4.0
Fix: upgrade to 4.1.2
rubygems twitter bootstrap >= 4.0.0, < 4.1.2
>= 2.3.0, < 3.4.0
Fix: upgrade to 4.1.2
maven webjars org.webjars:bootstrap >= 4.0.0, < 4.1.2
>= 2.3.0, < 3.4.0
Fix: upgrade to 4.1.2
rubygems thomas mcdonald bootstrap-sass >= 2.3.0, < 3.4.0
Fix: upgrade to 3.4.0
composer twbs bootstrap >= 2.3.0, < 3.4.0
>= 4.0.0, < 4.1.2
Fix: upgrade to 3.4.0
– debian debian_linux 8.0
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
– getbootstrap bootstrap < 3.4.0
>= 4.0.0, < 4.1.2
4.0.0
cpe:2.3:a:getbootstrap:bootstrap:*:*:*:*:*:*:*:*
nuget the bootstrap authors bootstrap.sass >= 4.0.0, < 4.1.2
Fix: upgrade to 4.1.2
nuget the bootstrap authors bootstrap >= 2.3.0, < 3.4.0
>= 4.0.0, < 4.1.2
Fix: upgrade to 3.4.0
Original advisory text
In Bootstrap before 4.1.2, XSS is possible in the collapse data-parent attribute.
In Bootstrap before 4.1.2, XSS is possible in the collapse data-parent attribute.
References
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker partial control (estimated)
Severity
6.1 Medium
Exploitation
4% chance of attack within 30 days
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published13 Jul 2018
Updated24 Oct 2026
First seen6 Mar 2026
Sources
Track software like this
Free during beta