MediumGHSA-3mgp-fx93-9xv5CVE-2018-20676

XSS vulnerability that affects bootstrap

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.

Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
<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
<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
Affected
<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

Details

In Bootstrap before 3.4.0, XSS is possible in the tooltip data-viewport attribute.

Is GHSA-3mgp-fx93-9xv5 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-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.