MediumGHSA-3wqf-4x89-9g79CVE-2018-14040

Bootstrap vulnerable to Cross-Site Scripting (XSS)

Published 13 May 2022 · Updated 10 Sept 2026

Is your project on an affected bootstrap?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Affected packages

Affected
>=4.0.0 <4.1.2
Fixed in
4.1.2
Update to the fixed version for your release line, for example:npm install bootstrap@4.1.2
Affected
>=2.3.0 <3.4.0
Fixed in
3.4.0
Update to the fixed version for your release line, for example:npm install bootstrap@3.4.0
Affected
>=2.3.0 <3.4.0
Fixed in
3.4.0
Update to the fixed version for your release line, for example:composer require twbs/bootstrap:^3.4.0
Affected
>=4.0.0 <4.1.2
Fixed in
4.1.2
Update to the fixed version for your release line, for example:composer require twbs/bootstrap:^4.1.2

Details

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.

Is GHSA-3wqf-4x89-9g79 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected bootstrap, and gives you the command that fixes it.

More advisories for bootstrap

  • MediumCVE-2025-1647Bootstrap Vulnerable to Cross-Site Scripting in its Popover and Tooltip Components · 15 May 2025
  • MediumCVE-2024-6485Bootstrap Cross-Site Scripting (XSS) vulnerability for data-* attributes · 11 Jul 2024
  • MediumCVE-2019-8331Bootstrap Vulnerable to Cross-Site Scripting · 22 Feb 2019
  • MediumCVE-2018-20677bootstrap Cross-site Scripting vulnerability · 17 Jan 2019
  • MediumCVE-2018-20676XSS vulnerability that affects bootstrap · 17 Jan 2019
  • MediumCVE-2016-10735Bootstrap Cross-site Scripting vulnerability · 17 Jan 2019
All 9 advisories for bootstrap

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.