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

Bootstrap vulnerable to Cross-Site Scripting (XSS)

Published 13 May 2022 · Updated 10 Sept 2026

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.

References

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