MediumGHSA-ph58-4vrj-w6hrCVE-2018-20677
bootstrap Cross-site Scripting vulnerability
Published 17 Jan 2019 · Updated 10 Sept 2026
Affected packages
bootstrapnpm
- 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.0twbs/bootstrapComposer
- 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.0Details
In Bootstrap before 3.4.0, XSS is possible in the affix configuration target property.
Is GHSA-ph58-4vrj-w6hr 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-2018-20677
- Linkgithub.com/twbs/bootstrap/issues/27915#issuecomment-452196628
- Linkgithub.com/twbs/bootstrap/issues/27915#issuecomment-452140906
- Linkgithub.com/twbs/bootstrap/issues/27045
- Linkgithub.com/twbs/bootstrap/pull/27047
- Linkgithub.com/twbs/bootstrap/commit/2a5ba23ce8f041f3548317acc992ed8a736b609d
- Linklists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E
- Linklists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e@%3Cdev.superset.apache.org%3E
- Packagegithub.com/twbs/bootstrap
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap/CVE-2018-20677.yml
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-sass/CVE-2018-20677.yml
- Linkblog.getbootstrap.com/2018/12/13/bootstrap-3-4-0
- Linkaccess.redhat.com/errata/RHSA-2020:0133
- Linkaccess.redhat.com/errata/RHSA-2020:0132
- Linkaccess.redhat.com/errata/RHSA-2019:3023
- Linkaccess.redhat.com/errata/RHSA-2019:1456
- Linkaccess.redhat.com/errata/RHBA-2019:1570
- Linkaccess.redhat.com/errata/RHBA-2019:1076
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.