CVE-2018-14042 Bootstrap Cross-site Scripting vulnerability

Medium 6.1 Published Updated

Cross-site scripting vulnerability in Bootstrap tooltip 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-14042?

CVE-2018-14042 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-container property of tooltip.

Weakness: CWE-79

Which versions are affected by CVE-2018-14042?

26 open source packages ship an affected version, including bootstrap, org.webjars:bootstrap and bootstrap.sass. It affects 1 product.

PackageAffectedFixed in
bootstrap NuGetFrom 2.3.03.4.0
bootstrap NuGetFrom 2.3.03.4.0
bootstrap NuGetFrom 4.0.04.1.2
bootstrap NuGetFrom 4.0.04.1.2
bootstrap RubyGemsFrom 2.3.03.4.0
bootstrap RubyGemsFrom 2.3.03.4.0
20 more packages
bootstrap RubyGemsFrom 4.0.04.1.2
bootstrap RubyGemsFrom 4.0.04.1.2
bootstrap npmFrom 2.3.03.4.0
bootstrap npmFrom 2.3.03.4.0
bootstrap npmFrom 4.0.04.1.2
bootstrap npmFrom 4.0.04.1.2
org.webjars:bootstrap MavenFrom 2.3.03.4.0
org.webjars:bootstrap MavenFrom 2.3.03.4.0
org.webjars:bootstrap MavenFrom 4.0.04.1.2
org.webjars:bootstrap MavenFrom 4.0.04.1.2
bootstrap.sass NuGetFrom 4.0.04.1.2
bootstrap.sass NuGetFrom 4.0.04.1.2
twbs/bootstrap PackagistFrom 2.3.03.4.0
twbs/bootstrap PackagistFrom 2.3.03.4.0
twbs/bootstrap PackagistFrom 4.0.04.1.2
twbs/bootstrap PackagistFrom 4.0.04.1.2
bootstrap-sass RubyGemsFrom 2.3.03.4.0
bootstrap-sass RubyGemsFrom 2.3.03.4.0
bootstrap-sass npmFrom 2.0.43.4.0
bootstrap-sass npmFrom 2.0.43.4.0

Products include Getbootstrap Bootstrap.

How do I fix CVE-2018-14042?

Upgrade bootstrap to a fixed version for your release line: 3.4.0 or 4.1.2.

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-14042 being exploited?

There is no known exploitation of CVE-2018-14042 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as AZL-105143, AZL-105152, AZL-105269, AZL-44094, DEBIAN-CVE-2018-14042, GHSA-7mvr-5x2g-wfc8 and 1 more.

Is CVE-2018-14042 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free