Advisories / composer / twbs/bootstrap / CVE-2018-14040
Bootstrap vulnerable to Cross-Site Scripting (XSS) (CVE-2018-14040)
CVE-2018-14040 GHSA-3wqf-4x89-9g79 Published 13 May 2022
Affects 2 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
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 |
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-14040?
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-14040?
4.1.2 and later. Versions affected: ≥ 2.3.0, < 3.4.0, ≥ 4.0.0, < 4.1.2.