{"id":"GHSA-ph58-4vrj-w6hr","aliases":["CVE-2018-20677"],"title":"bootstrap Cross-site Scripting vulnerability","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"MODERATE","description":"In Bootstrap before 3.4.0, XSS is possible in the affix configuration target property.","severity":"medium","score":6.1,"published":"2019-01-17T13:57:56.000Z","modified":"2026-09-10T03:47:59.283Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"npm","name":"bootstrap","sources":[{"name":"OSV · GHSA-ph58-4vrj-w6hr","url":"https://osv.dev/vulnerability/GHSA-ph58-4vrj-w6hr"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"3.4.0"}],"type":"SEMVER"}],"versions":[],"fixed":["3.4.0"]},{"ecosystem":"npm","name":"bootstrap-sass","sources":[{"name":"OSV · GHSA-ph58-4vrj-w6hr","url":"https://osv.dev/vulnerability/GHSA-ph58-4vrj-w6hr"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"3.4.0"}],"type":"SEMVER"}],"versions":[],"fixed":["3.4.0"]},{"ecosystem":"Packagist","name":"twbs/bootstrap","sources":[{"name":"OSV · GHSA-ph58-4vrj-w6hr","url":"https://osv.dev/vulnerability/GHSA-ph58-4vrj-w6hr"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"3.4.0"}],"type":"ECOSYSTEM"}],"versions":["v2.2.2","v2.3.0","v2.3.1","v2.3.2","v3.0.0","v3.0.0-rc.2","v3.0.0-rc1","v3.0.1","v3.0.2","v3.0.3","v3.1.0","v3.1.1","v3.2.0","v3.3.0","v3.3.1","v3.3.2","v3.3.4","v3.3.5","v3.3.6","v3.3.7"],"fixed":["3.4.0"]},{"ecosystem":"Maven","name":"org.webjars:bootstrap","sources":[{"name":"OSV · GHSA-ph58-4vrj-w6hr","url":"https://osv.dev/vulnerability/GHSA-ph58-4vrj-w6hr"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"3.4.0"}],"type":"ECOSYSTEM"}],"versions":["1.3.0","2.0.2","2.1.1","2.2.1","2.2.2","2.2.2-1","2.3.0","2.3.1","2.3.1-1","2.3.2","3.0.0","3.0.0-rc.2","3.0.0-rc1","3.0.1","3.0.2","3.0.3","3.1.0","3.1.1","3.1.1-1","3.1.1-2","3.2.0","3.2.0-1","3.2.0-2","3.3.0","3.3.1","3.3.2","3.3.2-1","3.3.2-2","3.3.4","3.3.5","3.3.6","3.3.7","3.3.7-1"],"fixed":["3.4.0"]},{"ecosystem":"RubyGems","name":"bootstrap","sources":[{"name":"OSV · GHSA-ph58-4vrj-w6hr","url":"https://osv.dev/vulnerability/GHSA-ph58-4vrj-w6hr"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"3.4.0"}],"type":"ECOSYSTEM"}],"versions":[],"fixed":["3.4.0"]},{"ecosystem":"RubyGems","name":"bootstrap-sass","sources":[{"name":"OSV · GHSA-ph58-4vrj-w6hr","url":"https://osv.dev/vulnerability/GHSA-ph58-4vrj-w6hr"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"3.4.0"}],"type":"ECOSYSTEM"}],"versions":["1.2.0","1.2.1","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.4.2","1.4.3","1.4.4","2.0.0","2.0.1","2.0.2","2.0.3","2.0.3.1","2.0.4.0","2.0.4.1","2.0.4.2","2.1.0.0","2.1.0.1","2.1.1.0","2.2.1.0","2.2.1.1","2.2.2.0","2.3.0.0","2.3.0.1","2.3.1.0","2.3.1.2","2.3.1.3","2.3.2.0","2.3.2.1","2.3.2.2","3.0.0.0","3.0.0.0.rc","3.0.0.0.rc2","3.0.1.0","3.0.1.0.rc","3.0.2.0","3.0.2.1","3.0.3.0","3.1.0.0","3.1.0.1","3.1.0.2","3.1.1.0","3.1.1.1","3.2.0.4","3.3.0.0","3.3.0.1","3.3.1.0","3.3.2.0","3.3.2.1","3.3.3","3.3.4.1","3.3.5","3.3.5.1","3.3.6","3.3.7"],"fixed":["3.4.0"]},{"ecosystem":"NuGet","name":"bootstrap","sources":[{"name":"OSV · GHSA-ph58-4vrj-w6hr","url":"https://osv.dev/vulnerability/GHSA-ph58-4vrj-w6hr"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"3.4.0"}],"type":"ECOSYSTEM"}],"versions":["1.0.0","2.3.1","2.3.2","3.0.0","3.0.1","3.0.2","3.0.3","3.1.0","3.1.1","3.2.0","3.3.0","3.3.1","3.3.2","3.3.4","3.3.5","3.3.6","3.3.6-jQuery3","3.3.6.1","3.3.7"],"fixed":["3.4.0"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2018-20677","https://github.com/twbs/bootstrap/issues/27915#issuecomment-452196628","https://github.com/twbs/bootstrap/issues/27915#issuecomment-452140906","https://github.com/twbs/bootstrap/issues/27045","https://github.com/twbs/bootstrap/pull/27047","https://github.com/twbs/bootstrap/commit/2a5ba23ce8f041f3548317acc992ed8a736b609d","https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E","https://lists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e@%3Cdev.superset.apache.org%3E","https://github.com/twbs/bootstrap","https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap/CVE-2018-20677.yml","https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-sass/CVE-2018-20677.yml","https://blog.getbootstrap.com/2018/12/13/bootstrap-3-4-0","https://access.redhat.com/errata/RHSA-2020:0133","https://access.redhat.com/errata/RHSA-2020:0132","https://access.redhat.com/errata/RHSA-2019:3023","https://access.redhat.com/errata/RHSA-2019:1456","https://access.redhat.com/errata/RHBA-2019:1570","https://access.redhat.com/errata/RHBA-2019:1076"],"sources":[{"name":"OSV","id":"GHSA-ph58-4vrj-w6hr","modified":"2026-09-10T03:47:59.283661706Z","url":"https://osv.dev/vulnerability/GHSA-ph58-4vrj-w6hr"}],"assessments":[{"source":"OSV","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T21:10:33.929Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}