MediumGHSA-4p24-vmcr-4gqjCVE-2016-10735

Bootstrap Cross-site Scripting vulnerability

Published 17 Jan 2019 · 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
>=2.0.4 <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
>=4.0.0-beta <4.0.0-beta.2
Fixed in
4.0.0-beta.2
Update to the fixed version for your release line, for example:npm install bootstrap@4.0.0-beta.2
Affected
>=2.0.4 <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-beta <4.0.0-beta.2
Fixed in
4.0.0-beta.2
Update to the fixed version for your release line, for example:composer require twbs/bootstrap:^4.0.0-beta.2
Affected
>=2.0.4 <3.4.0
Fixed in
3.4.0
Update to the fixed version for your release line, for example:npm install bootstrap-sass@3.4.0

Details

In Bootstrap 2.x from 2.0.4, 3.x before 3.4.0 and 4.x-beta before 4.0.0-beta.2, XSS is possible in the data-target attribute. Note that this is a different vulnerability than CVE-2018-14041.

See https://blog.getbootstrap.com/2018/12/13/bootstrap-3-4-0/ for more info.

Is GHSA-4p24-vmcr-4gqj 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-2018-14040Bootstrap vulnerable to Cross-Site Scripting (XSS) · 13 May 2022
  • 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
All 9 advisories for bootstrap

References

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