Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. bootstrap
  4. ›
  5. CVE-2018-14040

CVE-2018-14040: Bootstrap vulnerable to Cross-Site Scripting (XSS)

May 13, 2022 (updated August 5, 2024)

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.

References

  • blog.getbootstrap.com/2018/07/12/bootstrap-4-1-2
  • github.com/advisories/GHSA-3wqf-4x89-9g79
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-sass/CVE-2018-14040.yml
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap/CVE-2018-14040.yml
  • github.com/twbs/bootstrap-rubygem/commit/f34c43c936ac7d0ebb129289321d8c51cd56aed1
  • github.com/twbs/bootstrap/blob/v3.4.1/js/collapse.js
  • github.com/twbs/bootstrap/blob/v3.4.1/js/scrollspy.js
  • github.com/twbs/bootstrap/blob/v3.4.1/js/tooltip.js
  • github.com/twbs/bootstrap/commit/149096016f70fd815540d62c0989fd99cdc809e0
  • github.com/twbs/bootstrap/commit/2a5ba23ce8f041f3548317acc992ed8a736b609d
  • github.com/twbs/bootstrap/issues/26423
  • github.com/twbs/bootstrap/issues/26625
  • github.com/twbs/bootstrap/pull/26630
  • lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E
  • lists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e@%3Cdev.superset.apache.org%3E
  • lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E
  • lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E
  • lists.apache.org/thread.html/r3dc0cac8d856bca02bd6997355d7ff83027dcfc82f8646a29b89b714@%3Cissues.hbase.apache.org%3E
  • lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E
  • lists.debian.org/debian-lts-announce/2018/08/msg00027.html
  • nvd.nist.gov/vuln/detail/CVE-2018-14040
  • seclists.org/bugtraq/2019/May/18
  • www.oracle.com/security-alerts/cpuApr2021.html
  • www.tenable.com/security/tns-2021-14

Code Behaviors & Features

Detect and mitigate CVE-2018-14040 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.3.0 before 3.4.0, all versions starting from 4.0.0 before 4.1.2

Fixed versions

  • 3.4.0
  • 4.1.2

Solution

Upgrade to versions 3.4.0, 4.1.2 or above.

Impact 6.1 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

nuget/bootstrap/CVE-2018-14040.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:35 +0000.