MediumGHSA-9v3m-8fp8-mj99CVE-2019-8331
Bootstrap Vulnerable to Cross-Site Scripting
Published 22 Feb 2019 · Updated 10 Sept 2026
Affected packages
bootstrapnpm
- Affected
- >=4.0.0 <4.3.1
- Fixed in
- 4.3.1
Update to the fixed version for your release line, for example:
npm install bootstrap@4.3.1bootstrapnpm
- Affected
- >=3.0.0 <3.4.1
- Fixed in
- 3.4.1
Update to the fixed version for your release line, for example:
npm install bootstrap@3.4.1- Affected
- >=3.0.0 <3.4.1
- Fixed in
- 3.4.1
Update to the fixed version for your release line, for example:
npm install bootstrap-sass@3.4.1twbs/bootstrapComposer
- Affected
- >=3.0.0 <3.4.1
- Fixed in
- 3.4.1
Update to the fixed version for your release line, for example:
composer require twbs/bootstrap:^3.4.1twbs/bootstrapComposer
- Affected
- >=4.0.0 <4.3.1
- Fixed in
- 4.3.1
Update to the fixed version for your release line, for example:
composer require twbs/bootstrap:^4.3.1Details
Versions of bootstrap prior to 3.4.1 for 3.x and 4.3.1 for 4.x are vulnerable to Cross-Site Scripting (XSS). The data-template attribute of the tooltip and popover plugins lacks input sanitization and may allow attacker to execute arbitrary JavaScript.
Recommendation
For bootstrap 4.x upgrade to 4.3.1 or later.
For bootstrap 3.x upgrade to 3.4.1 or later.
Is GHSA-9v3m-8fp8-mj99 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
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-8331
- Linkgithub.com/twbs/bootstrap/pull/28236
- Linklists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e%40%3Cdev.superset.apache.org%3E
- Linklists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e@%3Cdev.superset.apache.org%3E
- Linklists.apache.org/thread.html/54df3aeb4239b64b50b356f0ca6f986e3c4ca5b84c515dce077c7854%40%3Cuser.flink.apache.org%3E
- Linklists.apache.org/thread.html/54df3aeb4239b64b50b356f0ca6f986e3c4ca5b84c515dce077c7854@%3Cuser.flink.apache.org%3E
- Linklists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E
- Linklists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E
- Linklists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E
- Linklists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E
- Linklists.apache.org/thread.html/r3dc0cac8d856bca02bd6997355d7ff83027dcfc82f8646a29b89b714%40%3Cissues.hbase.apache.org%3E
- Linklists.apache.org/thread.html/r3dc0cac8d856bca02bd6997355d7ff83027dcfc82f8646a29b89b714@%3Cissues.hbase.apache.org%3E
- Linklists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar.apache.org%3E
- Linklists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E
- Linkseclists.org/bugtraq/2019/May/18
- Linksupport.f5.com/csp/article/K24383845
- Linksupport.f5.com/csp/article/K24383845?utm_source=f5support&%3Butm_medium=RSS
- Linksupport.f5.com/csp/article/K24383845?utm_source=f5support&utm_medium=RSS
- Linkweb.archive.org/web/20200227083900/http://www.securityfocus.com/bid/107375
- Linkwww.oracle.com/security-alerts/cpuApr2021.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.