Skip to content
porro

Advisories  /  composer  /  twbs/bootstrap  /  CVE-2019-8331

MODERATE6.1 Composer · npm

Bootstrap Vulnerable to Cross-Site Scripting (CVE-2019-8331)

CVE-2019-8331 GHSA-9v3m-8fp8-mj99 Published 22 Feb 2019

Affects 3 packages. Each has a fixed release.

$ composer require twbs/bootstrap:^3.4.1
$ composer require twbs/bootstrap:^4.3.1
$ npm install bootstrap@^3.4.1
$ npm install bootstrap@^4.3.1
$ npm install bootstrap-sass@^3.4.1

Which versions are affected

Package Affected Fixed in
twbs/bootstrap ≥ 3.0.0, < 3.4.1≥ 4.0.0, < 4.3.1 3.4.14.3.1
bootstrap ≥ 3.0.0, < 3.4.1≥ 4.0.0, < 4.3.1 3.4.14.3.1
bootstrap-sass ≥ 3.0.0, < 3.4.1 3.4.1

Check a site from its project folder: composer show twbs/bootstrap shows the installed version. Or paste the lock file into the lock file checker to check every package at once.

Timeline

  1. Advisory published, with a fix

Questions

Which version of twbs/bootstrap is safe from CVE-2019-8331?

4.3.1 and later. Versions affected: ≥ 3.0.0, < 3.4.1, ≥ 4.0.0, < 4.3.1.

Which version of bootstrap is safe from CVE-2019-8331?

4.3.1 and later. Versions affected: ≥ 3.0.0, < 3.4.1, ≥ 4.0.0, < 4.3.1.

Which version of bootstrap-sass is safe from CVE-2019-8331?

3.4.1 and later. Versions affected: ≥ 3.0.0, < 3.4.1.