Loading...
Skip to main content

CVE-2018-20676 — Vulnerability in bootstrap — CVE Details

MEDIUM

XSS vulnerability that affects bootstrap

Published January 17, 2019Updated September 10, 2026Source: osv

Summary

In Bootstrap before 3.4.0, XSS is possible in the tooltip data-viewport attribute.

Advisory Timeline

  • First published January 17, 2019 (2825 days ago).
  • Last revised September 10, 2026 — 2793 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update bootstrap to 3.4.0 or later
gem install bootstrap -v 3.4.0
Maven
Update org.webjars:bootstrap to 3.4.0 or later
<!-- Update pom.xml dependency version to 3.4.0 for org.webjars:bootstrap -->
npm
Update bootstrap-sass to 3.4.0 or later
npm install bootstrap-sass@3.4.0
Composer
Update twbs/bootstrap to 3.4.0 or later
composer require "twbs/bootstrap:^3.4.0"
npm
Update bootstrap to 3.4.0 or later
npm install bootstrap@3.4.0
NuGet
Update bootstrap to 3.4.0 or later
dotnet add package bootstrap --version 3.4.0
Bundler
Update bootstrap-sass to 3.4.0 or later
gem install bootstrap-sass -v 3.4.0

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (7)

Affects 5 ecosystems: npm (2), rubygems (2), maven (1), nuget (1), packagist (1).

PackageEcosystemAffectedFixed In
bootstrap
rubygems
All versions3.4.0
org.webjars:bootstrap
maven
1.3.0, 2.0.2, 2.1.1, 2.2.1 (+29 more)3.4.0
bootstrap-sass
npm
All versions3.4.0
twbs/bootstrap
packagist
v2.2.2, v2.3.0, v2.3.1, v2.3.2 (+16 more)3.4.0
bootstrap
npm
All versions3.4.0
bootstrap
nuget
1.0.0, 2.3.1, 2.3.2, 3.0.0 (+15 more)3.4.0
bootstrap-sass
rubygems
1.2.0, 1.2.1, 1.3.0, 1.3.1 (+53 more)3.4.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Frequently Asked Questions

What is CVE-2018-20676?
XSS vulnerability that affects bootstrap This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
How do I check if my project is affected by CVE-2018-20676?
CVE-2018-20676 affects bootstrap, org.webjars:bootstrap and bootstrap-sass (and 1 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-20676 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.1

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-3mgp-fx93-9xv5

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies