Advisories
For your digest

bootstrap, org.webjars:bootstrap: Bootstrap vulnerable to Cross-Site Scripting (XSS)

It touches something Phylax follows. No evidence of use yet.

Does it affect what I run?

Checked in your browser. The version you type is not sent anywhere.

Who is affected

  • bootstrap (npm): from 4.0.0, before 4.1.2
  • bootstrap (RubyGems): from 4.0.0, before 4.1.2
  • bootstrap (npm): from 2.3.0, before 3.4.0
  • bootstrap (RubyGems): from 2.3.0, before 3.4.0
  • org.webjars:bootstrap (Maven): from 4.0.0, before 4.1.2
  • org.webjars:bootstrap (Maven): from 2.3.0, before 3.4.0
  • bootstrap (NuGet): from 2.3.0, before 3.4.0
  • bootstrap (NuGet): from 4.0.0, before 4.1.2
  • bootstrap.sass (NuGet): from 4.0.0, before 4.1.2
  • bootstrap-sass (RubyGems): from 2.3.0, before 3.4.0
  • twbs/bootstrap (Packagist): from 2.3.0, before 3.4.0
  • twbs/bootstrap (Packagist): from 4.0.0, before 4.1.2

The fix

  • bootstrap (npm) fixed in 4.1.2

    npm
    npm install bootstrap@4.1.2
    pnpm
    pnpm add bootstrap@4.1.2
    yarn
    yarn add bootstrap@4.1.2
    bun
    bun add bootstrap@4.1.2
    Check what is installed
    npm ls bootstrap
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency bootstrap to 4.1.2 or the nearest later release, to fix CVE-2018-14040. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • bootstrap (npm) fixed in 3.4.0

    npm
    npm install bootstrap@3.4.0
    pnpm
    pnpm add bootstrap@3.4.0
    yarn
    yarn add bootstrap@3.4.0
    bun
    bun add bootstrap@3.4.0
    Check what is installed
    npm ls bootstrap
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency bootstrap to 3.4.0 or the nearest later release, to fix CVE-2018-14040. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • bootstrap (RubyGems) fixed in 4.1.2

    bundler
    bundle update --conservative bootstrap
    Check what is installed
    bundle info bootstrap
    Paste into Cursor, Lovable or Claude Code
    Upgrade the RubyGems dependency bootstrap to 4.1.2 or the nearest later release, to fix CVE-2018-14040. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • bootstrap (RubyGems) fixed in 3.4.0

    bundler
    bundle update --conservative bootstrap
    Check what is installed
    bundle info bootstrap
    Paste into Cursor, Lovable or Claude Code
    Upgrade the RubyGems dependency bootstrap to 3.4.0 or the nearest later release, to fix CVE-2018-14040. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • org.webjars:bootstrap (Maven) fixed in 4.1.2

    maven
    mvn versions:use-dep-version -Dincludes=org.webjars:bootstrap -DdepVersion=4.1.2 -DforceVersion=true
    Check what is installed
    mvn dependency:tree -Dincludes=org.webjars:bootstrap
    Paste into Cursor, Lovable or Claude Code
    Upgrade the Maven dependency org.webjars:bootstrap to 4.1.2 or the nearest later release, to fix CVE-2018-14040. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • org.webjars:bootstrap (Maven) fixed in 3.4.0

    maven
    mvn versions:use-dep-version -Dincludes=org.webjars:bootstrap -DdepVersion=3.4.0 -DforceVersion=true
    Check what is installed
    mvn dependency:tree -Dincludes=org.webjars:bootstrap
    Paste into Cursor, Lovable or Claude Code
    Upgrade the Maven dependency org.webjars:bootstrap to 3.4.0 or the nearest later release, to fix CVE-2018-14040. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • bootstrap (NuGet) fixed in 3.4.0

    dotnet
    dotnet add package bootstrap --version 3.4.0
    Check what is installed
    dotnet list package
    Paste into Cursor, Lovable or Claude Code
    Upgrade the NuGet dependency bootstrap to 3.4.0 or the nearest later release, to fix CVE-2018-14040. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • bootstrap (NuGet) fixed in 4.1.2

    dotnet
    dotnet add package bootstrap --version 4.1.2
    Check what is installed
    dotnet list package
    Paste into Cursor, Lovable or Claude Code
    Upgrade the NuGet dependency bootstrap to 4.1.2 or the nearest later release, to fix CVE-2018-14040. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • bootstrap.sass (NuGet) fixed in 4.1.2

    dotnet
    dotnet add package bootstrap.sass --version 4.1.2
    Check what is installed
    dotnet list package
    Paste into Cursor, Lovable or Claude Code
    Upgrade the NuGet dependency bootstrap.sass to 4.1.2 or the nearest later release, to fix CVE-2018-14040. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • bootstrap-sass (RubyGems) fixed in 3.4.0

    bundler
    bundle update --conservative bootstrap-sass
    Check what is installed
    bundle info bootstrap-sass
    Paste into Cursor, Lovable or Claude Code
    Upgrade the RubyGems dependency bootstrap-sass to 3.4.0 or the nearest later release, to fix CVE-2018-14040. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • twbs/bootstrap (Packagist) fixed in 3.4.0

    composer
    composer require "twbs/bootstrap:^3.4.0" --update-with-all-dependencies
    Check what is installed
    composer show twbs/bootstrap
    Paste into Cursor, Lovable or Claude Code
    Upgrade the Packagist dependency twbs/bootstrap to 3.4.0 or the nearest later release, to fix CVE-2018-14040. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • twbs/bootstrap (Packagist) fixed in 4.1.2

    composer
    composer require "twbs/bootstrap:^4.1.2" --update-with-all-dependencies
    Check what is installed
    composer show twbs/bootstrap
    Paste into Cursor, Lovable or Claude Code
    Upgrade the Packagist dependency twbs/bootstrap to 4.1.2 or the nearest later release, to fix CVE-2018-14040. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.

Fix commands generated from the advisory's versions. No model wrote them.

In plain words

Brief pending: here are the facts and the fix. The explanation in plain words follows when it has been written and checked.

Evidence

No evidence that it is being used, or can be. It is listed because of what it affects.

Timeline

  1. First published here, as "For your digest".