VDB
Sign up
MEDIUM6.1

GHSA-9v3m-8fp8-mj99

Bootstrap Vulnerable to Cross-Site Scripting

Quick fix

GHSA-9v3m-8fp8-mj99 — bootstrap: upgrade to the fixed version with the command below.

bundle update bootstrap

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/bootstrap
Introduced in: 0Fixed in: 4.3.1
Fixbundle update bootstrap
RubyGems/bootstrap-sass
Introduced in: 3.0.0Fixed in: 3.4.1
Fixbundle update bootstrap-sass
NuGet/Bootstrap.Less
Introduced in: 3.0.0Fixed in: 3.4.1
Fixdotnet add package Bootstrap.Less --version 3.4.1
NuGet/bootstrap
Introduced in: 4.0.0Fixed in: 4.3.1
Fixdotnet add package bootstrap --version 4.3.1
NuGet/bootstrap
Introduced in: 3.0.0Fixed in: 3.4.1
Fixdotnet add package bootstrap --version 3.4.1
NuGet/bootstrap.sass
Introduced in: 0Fixed in: 4.3.1
Fixdotnet add package bootstrap.sass --version 4.3.1
npm/bootstrap
Introduced in: 4.0.0Fixed in: 4.3.1
Fixnpm install bootstrap@4.3.1
npm/bootstrap
Introduced in: 3.0.0Fixed in: 3.4.1
Fixnpm install bootstrap@3.4.1
npm/bootstrap-sass
Introduced in: 3.0.0Fixed in: 3.4.1
Fixnpm install bootstrap-sass@3.4.1
RubyGems/twitter-bootstrap-rails
Introduced in: 0Fixed in: 5.3.0
Fixbundle update twitter-bootstrap-rails
Maven/org.webjars:bootstrap
Introduced in: 3.0.0Fixed in: 3.4.1
Fix# pom.xml: bump <version>3.4.1</version> for org.webjars:bootstrap
Maven/org.webjars:bootstrap
Introduced in: 4.0.0Fixed in: 4.3.1
Fix# pom.xml: bump <version>4.3.1</version> for org.webjars:bootstrap
Packagist/twbs/bootstrap
Introduced in: 3.0.0Fixed in: 3.4.1
Fixcomposer require twbs/bootstrap:^3.4.1
Packagist/twbs/bootstrap
Introduced in: 4.0.0Fixed in: 4.3.1
Fixcomposer require twbs/bootstrap:^4.3.1

References