Is bootstrap 4.1 vulnerable?

RubyGems · 4 releases from 4.1.0 to 4.1.3 · latest bootstrap is 5.3.8 · checked 18 Nov 2026

Yes: 1 known advisory

Yes. bootstrap 4.1.3, the last 4.1 release, is affected by 1 known security advisory (1 medium), including CVE-2019-8331. 3 more affect earlier 4.1.x releases. Upgrade to 4.3.1 or later to fix all of them.

Upgrade with:bundle update --conservative bootstrap # Gemfile: '>= 4.3.1'

Is your project on an affected bootstrap?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting bootstrap 4.1.3

  • MediumCVE-2019-8331GHSA-9v3m-8fp8-mj9922 Feb 2019

    Bootstrap Vulnerable to Cross-Site Scripting

    Affected
    <4.3.1
    Fixed in
    4.3.1

Fixed within 4.1.x, affecting earlier releases

  • MediumCVE-2018-14040GHSA-3wqf-4x89-9g7913 May 2022

    Bootstrap vulnerable to Cross-Site Scripting (XSS)

    Affected
    >=4.0.0 <4.1.2 · >=2.3.0 <3.4.0
    Fixed in
    3.4.0, 4.1.2
  • MediumCVE-2018-14042GHSA-7mvr-5x2g-wfc813 Sept 2018

    Bootstrap Cross-site Scripting vulnerability

    Affected
    >=4.0.0 <4.1.2 · >=2.3.0 <3.4.0
    Fixed in
    3.4.0, 4.1.2
  • MediumCVE-2018-14041GHSA-pj7m-g53m-763813 Sept 2018

    Bootstrap Cross-site Scripting vulnerability

    Affected
    >=4.0.0 <4.1.2
    Fixed in
    4.1.2

Every bootstrap 4.1.x release

Affected: 4.1.0 to 4.1.3. Latest bootstrap: 5.3.8.

VersionKnown advisories
bootstrap 4.1.3CVE-2019-8331
bootstrap 4.1.2CVE-2019-8331
bootstrap 4.1.1CVE-2018-14040, CVE-2019-8331, CVE-2018-14042, CVE-2018-14041
bootstrap 4.1.0CVE-2018-14040, CVE-2019-8331, CVE-2018-14042, CVE-2018-14041

Which of your client projects are still on bootstrap 4.1?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact bootstrap version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other bootstrap versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the RubyGems registry. Refreshed daily.