CVE-2016-10735: Bootstrap Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-4p24-vmcr-4gqj
CVSS 6.1
CWE-79
Published
Advisory Summary

CVE-2016-10735 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Bootstrap libraries in the npm ecosystem. The issue involves bootstrap cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 3.4.0, 4.0.0-beta.2.

CVE-2016-10735 at a Glance

CVE Identifier CVE-2016-10735
GHSA Identifier GHSA-4p24-vmcr-4gqj
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Bootstrap
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2016-10735

To remediate this vulnerability, upgrade all affected Bootstrap dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

bootstrap fixed: 3.4.0
npm install bootstrap@3.4.0
bootstrap fixed: 4.0.0-beta.2
npm install bootstrap@4.0.0-beta.2
org.webjars:bootstrap fixed: 3.4.0
<dependency>
    <groupId>org.webjars</groupId>
    <artifactId>bootstrap</artifactId>
    <version>3.4.0</version>
</dependency>
org.webjars:bootstrap fixed: 4.0.0-beta.2
<dependency>
    <groupId>org.webjars</groupId>
    <artifactId>bootstrap</artifactId>
    <version>4.0.0-beta.2</version>
</dependency>
bootstrap fixed: 4.0.0-beta.2
Upgrade bootstrap to 4.0.0-beta.2
twbs/bootstrap fixed: 3.4.0
Upgrade twbs/bootstrap to 3.4.0
twbs/bootstrap fixed: 4.0.0-beta.2
Upgrade twbs/bootstrap to 4.0.0-beta.2
bootstrap fixed: 3.4.0
Upgrade bootstrap to 3.4.0
bootstrap fixed: 4.0.0-beta.2
Upgrade bootstrap to 4.0.0-beta.2
bootstrap-sass fixed: 3.4.0
npm install bootstrap-sass@3.4.0
bootstrap-sass fixed: 3.4.0
Upgrade bootstrap-sass to 3.4.0
bootstrap.sass fixed: 4.0.0-beta.2
Upgrade bootstrap.sass to 4.0.0-beta.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls bootstrap

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2016-10735, inspect your project dependencies using npm:

npm ls bootstrap

Analyze the terminal output to locate any version of Bootstrap in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.4.0), your application is affected.

Note: The npm ls bootstrap command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Bootstrap, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

In Bootstrap 2.x from 2.0.4, 3.x before 3.4.0 and 4.x-beta before 4.0.0-beta.2, XSS is possible in the data-target attribute. Note that this is a different vulnerability than CVE-2018-14041. See https://blog.getbootstrap.com/2018/12/13/bootstrap-3-4-0/ for more info.

CVE-2016-10735 Affected Bootstrap Versions

12 component(s)
Fixed Versions:
3.4.04.0.0-beta.2
Product / Package Ecosystem Affected Versions Fixed Version
bootstrap
npm
≥ 2.0.4
< 3.4.0
3.4.0
bootstrap
npm
≥ 4.0.0-beta
< 4.0.0-beta.2
4.0.0-beta.2
org.webjars:bootstrap
Maven
≥ 2.0.4
< 3.4.0
3.4.0
org.webjars:bootstrap
Maven
≥ 4.0.0-beta
< 4.0.0-beta.2
4.0.0-beta.2
bootstrap
RubyGems
< 4.0.0-beta.2
4.0.0-beta.2
twbs/bootstrap
Packagist
≥ 2.0.4
< 3.4.0
3.4.0
twbs/bootstrap
Packagist
≥ 4.0.0-beta
< 4.0.0-beta.2
4.0.0-beta.2
bootstrap
NuGet
≥ 2.0.4
< 3.4.0
3.4.0
bootstrap
NuGet
≥ 4.0.0-beta
< 4.0.0-beta.2
4.0.0-beta.2
bootstrap-sass
npm
≥ 2.0.4
< 3.4.0
3.4.0
bootstrap-sass
RubyGems
≥ 2.0.4
< 3.4.0
3.4.0
bootstrap.sass
NuGet
≥ 4.0.0-beta
< 4.0.0-beta.2
4.0.0-beta.2

References

NVD — CVE-2016-10735 NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-10735
Bootstrap Source Repository REPOSITORY
https://github.com/twbs/bootstrap/issues/27915#issuecomment-452140906
Bootstrap Source Repository REPOSITORY
https://github.com/twbs/bootstrap/issues/20184
Bootstrap Source Repository REPOSITORY
https://github.com/twbs/bootstrap/pull/26460
Bootstrap Source Repository REPOSITORY
https://github.com/twbs/bootstrap/pull/23687
Bootstrap Source Repository REPOSITORY
https://github.com/twbs/bootstrap/pull/23679
Bootstrap Source Repository REPOSITORY
https://github.com/github/advisory-database/pull/3281
Bootstrap Source Repository REPOSITORY
https://github.com/twbs/bootstrap
Bootstrap Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap/CVE-2016-10735.yml
Bootstrap Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-sass/CVE-2016-10735.yml
Bootstrap Security Information SECURITY
https://blog.getbootstrap.com/2018/12/13/bootstrap-3-4-0
Bootstrap Security Information SECURITY
https://blog.getbootstrap.com/2018/07/12/bootstrap-4-1-2
access.redhat.com/errata/rhsa-2020:01... WEB
https://access.redhat.com/errata/RHSA-2020:0133
access.redhat.com/errata/rhsa-2020:01... WEB
https://access.redhat.com/errata/RHSA-2020:0132
access.redhat.com/errata/rhsa-2019:30... WEB
https://access.redhat.com/errata/RHSA-2019:3023
access.redhat.com/errata/rhsa-2019:14... WEB
https://access.redhat.com/errata/RHSA-2019:1456
access.redhat.com/errata/rhba-2019:15... WEB
https://access.redhat.com/errata/RHBA-2019:1570
access.redhat.com/errata/rhba-2019:10... WEB
https://access.redhat.com/errata/RHBA-2019:1076

Frequently Asked Questions

What is CVE-2016-10735?
CVE-2016-10735 is a security vulnerability in Bootstrap involving Bootstrap Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Bootstrap versions are affected?
Affected versions include releases prior to 3.4.0, 4.0.0-beta.2 across affected packages: bootstrap, org.webjars:bootstrap, twbs/bootstrap, bootstrap-sass, bootstrap.sass.
What version fixes CVE-2016-10735?
Upgrading to 3.4.0, 4.0.0-beta.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is bootstrap affected?
Yes, bootstrap is affected in releases prior to 3.4.0, 4.0.0-beta.2. Upgrade your dependency to 3.4.0, 4.0.0-beta.2 or later.
Is twbs/bootstrap affected?
Yes, twbs/bootstrap is affected in releases prior to 3.4.0, 4.0.0-beta.2. Upgrade your dependency to 3.4.0, 4.0.0-beta.2 or later.
What is the CVSS score of CVE-2016-10735?
CVE-2016-10735 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2016-10735?
CVE-2016-10735 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2016-10735?
Run the dependency tree command: 'npm ls bootstrap'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4p24-vmcr-4gqj",
  "modified" : "2024-08-05T16:29:11Z",
  "published" : "2019-01-17T13:57:27Z",
  "aliases" : [ "CVE-2016-10735" ],
  "summary" : "Bootstrap Cross-site Scripting vulnerability",
  "details" : "In Bootstrap 2.x from 2.0.4, 3.x before 3.4.0 and 4.x-beta before 4.0.0-beta.2, XSS is possible in the data-target attribute. Note that this is a different vulnerability than CVE-2018-14041.\n\nSee https://blog.getbootstrap.com/2018/12/13/bootstrap-3-4-0/ for more info.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.4"
      }, {
        "fixed" : "3.4.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0-beta"
      }, {
        "fixed" : "4.0.0-beta.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars:bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.4"
      }, {
        "fixed" : "3.4.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars:bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0-beta"
      }, {
        "fixed" : "4.0.0-beta.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.0-beta.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "twbs/bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.4"
      }, {
        "fixed" : "3.4.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "twbs/bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0-beta"
      }, {
        "fixed" : "4.0.0-beta.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.4"
      }, {
        "fixed" : "3.4.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0-beta"
      }, {
        "fixed" : "4.0.0-beta.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "bootstrap-sass"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.4"
      }, {
        "fixed" : "3.4.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "bootstrap-sass"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.4"
      }, {
        "fixed" : "3.4.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "bootstrap.sass"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0-beta"
      }, {
        "fixed" : "4.0.0-beta.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-10735"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/twbs/bootstrap/issues/27915#issuecomment-452140906"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/twbs/bootstrap/issues/20184"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/twbs/bootstrap/pull/26460"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/twbs/bootstrap/pull/23687"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/twbs/bootstrap/pull/23679"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/advisory-database/pull/3281"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/twbs/bootstrap"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap/CVE-2016-10735.yml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-sass/CVE-2016-10735.yml"
  }, {
    "type" : "WEB",
    "url" : "https://blog.getbootstrap.com/2018/12/13/bootstrap-3-4-0"
  }, {
    "type" : "WEB",
    "url" : "https://blog.getbootstrap.com/2018/07/12/bootstrap-4-1-2"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0133"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0132"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3023"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1456"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHBA-2019:1570"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHBA-2019:1076"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:58:39Z",
    "nvd_published_at" : "2019-01-09T05:29:00Z"
  }
}