CVE-2018-14041 Bootstrap Cross-site Scripting vulnerability
Cross-site scripting vulnerability in Bootstrap's scrollspy component allows attackers to execute arbitrary scripts in user browsers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2018-14041?
CVE-2018-14041 is a medium-severity cross-site scripting vulnerability in n/a, published on 13 Jul 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
In Bootstrap before 4.1.2, XSS is possible in the data-target property of scrollspy.
Weakness: CWE-79
Which versions are affected by CVE-2018-14041?
20 open source packages ship an affected version, including bootstrap, org.webjars:bootstrap and bootstrap.sass. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bootstrap NuGet | From 4.0.0 | 4.1.2 |
bootstrap NuGet | From 4.0.0 | 4.1.2 |
bootstrap RubyGems | From 4.0.0 | 4.1.2 |
bootstrap RubyGems | From 4.0.0 | 4.1.2 |
bootstrap npm | From 4.0.0 | 4.1.2 |
bootstrap npm | From 4.0.0 | 4.1.2 |
14 more packages
org.webjars:bootstrap Maven | From 4.0.0 | 4.1.2 |
org.webjars:bootstrap Maven | From 4.0.0 | 4.1.2 |
bootstrap.sass NuGet | From 4.0.0 | 4.1.2 |
bootstrap.sass NuGet | From 4.0.0 | 4.1.2 |
twbs/bootstrap Packagist | From 4.0.0 | 4.1.2 |
twbs/bootstrap Packagist | From 4.0.0 | 4.1.2 |
typo3/cms Packagist | From 8.0.0 | 8.7.23 |
typo3/cms Packagist | From 8.0.0 | 8.7.23 |
typo3/cms Packagist | From 9.0.0 | 9.5.4 |
typo3/cms Packagist | From 9.0.0 | 9.5.4 |
typo3/cms-core Packagist | From 8.0.0 | 8.7.23 |
typo3/cms-core Packagist | From 8.0.0 | 8.7.23 |
typo3/cms-core Packagist | From 9.0.0 | 9.5.4 |
typo3/cms-core Packagist | From 9.0.0 | 9.5.4 |
Products include Getbootstrap Bootstrap.
How do I fix CVE-2018-14041?
Upgrade bootstrap to 4.1.2 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2018-14041 being exploited?
There is no known exploitation of CVE-2018-14041 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in n/a
Sources
Also known as GHSA-pj7m-g53m-7638.