Advisories / composer / twbs/bootstrap / CVE-2018-14042
Bootstrap Cross-site Scripting vulnerability (CVE-2018-14042)
CVE-2018-14042 GHSA-7mvr-5x2g-wfc8 Published 13 Sep 2018
Affects 3 packages. Each has a fixed release.
$ composer require twbs/bootstrap:^3.4.0 $ composer require twbs/bootstrap:^4.1.2 $ npm install bootstrap@^3.4.0 $ npm install bootstrap@^4.1.2 $ npm install bootstrap-sass@^3.4.0
Which versions are affected
| Package | Affected | Fixed in |
|---|---|---|
| twbs/bootstrap | ≥ 2.3.0, < 3.4.0≥ 4.0.0, < 4.1.2 | 3.4.04.1.2 |
| bootstrap | ≥ 2.3.0, < 3.4.0≥ 4.0.0, < 4.1.2 | 3.4.04.1.2 |
| bootstrap-sass | ≥ 2.0.4, < 3.4.0 | 3.4.0 |
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
- Advisory published, with a fix
Questions
Which version of twbs/bootstrap is safe from CVE-2018-14042?
4.1.2 and later. Versions affected: ≥ 2.3.0, < 3.4.0, ≥ 4.0.0, < 4.1.2.
Which version of bootstrap is safe from CVE-2018-14042?
4.1.2 and later. Versions affected: ≥ 2.3.0, < 3.4.0, ≥ 4.0.0, < 4.1.2.
Which version of bootstrap-sass is safe from CVE-2018-14042?
3.4.0 and later. Versions affected: ≥ 2.0.4, < 3.4.0.