ADVISORIES

GitHub Advisory Database

GHSA-9v3m-8fp8-mj99

Bootstrap Vulnerable to Cross-Site Scripting

Moderate CVE-2019-8331

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.

Affected packages

EcosystemPackageAffected versions
RubyGemsbootstrap
All versions before 4.3.1 (fixed in 4.3.1)
RubyGemsbootstrap-sass
From 3.0.0 before 3.4.1 (fixed in 3.4.1)
NuGetBootstrap.Less
From 3.0.0 before 3.4.1 (fixed in 3.4.1)
NuGetbootstrap
From 4.0.0 before 4.3.1 (fixed in 4.3.1)
NuGetbootstrap
From 3.0.0 before 3.4.1 (fixed in 3.4.1)
NuGetbootstrap.sass
All versions before 4.3.1 (fixed in 4.3.1)
npmbootstrap
From 4.0.0 before 4.3.1 (fixed in 4.3.1)
npmbootstrap
From 3.0.0 before 3.4.1 (fixed in 3.4.1)
npmbootstrap-sass
From 3.0.0 before 3.4.1 (fixed in 3.4.1)
RubyGemstwitter-bootstrap-rails
All versions before 5.3.0 (fixed in 5.3.0)
Mavenorg.webjars:bootstrap
From 3.0.0 before 3.4.1 (fixed in 3.4.1)
Mavenorg.webjars:bootstrap
From 4.0.0 before 4.3.1 (fixed in 4.3.1)
Packagisttwbs/bootstrap
From 3.0.0 before 3.4.1 (fixed in 3.4.1)
Packagisttwbs/bootstrap
From 4.0.0 before 4.3.1 (fixed in 4.3.1)

References