Bootstrap-sass contains code execution backdoor
Published 4 Apr 2019 · Updated 13 Mar 2026
Is your project on an affected bootstrap-sass?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=3.2.0.3 <3.2.0.4
- Fixed in
- 3.2.0.4
bundle update --conservative bootstrap-sass # Gemfile: '>= 3.2.0.4'Details
Arbitrary code execution (via backdoor code) was discovered in bootstrap-sass 3.2.0.3, when downloaded from rubygems.org. An unauthenticated attacker can craft the ___cfduid cookie value with base64 arbitrary code to be executed via eval(), which can be leveraged to execute arbitrary code on the target system. Note that there are three underscore characters in the cookie name. This is unrelated to the __cfduid cookie that is legitimately used by Cloudflare.
Is GHSA-vqqv-v9m2-48p2 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected bootstrap-sass, and gives you the command that fixes it.
More advisories for bootstrap-sass
- MediumCVE-2018-14040Bootstrap vulnerable to Cross-Site Scripting (XSS) · 13 May 2022
- MediumCVE-2019-8331Bootstrap Vulnerable to Cross-Site Scripting · 22 Feb 2019
- MediumCVE-2018-20677bootstrap Cross-site Scripting vulnerability · 17 Jan 2019
- MediumCVE-2018-20676XSS vulnerability that affects bootstrap · 17 Jan 2019
- MediumCVE-2016-10735Bootstrap Cross-site Scripting vulnerability · 17 Jan 2019
- MediumCVE-2018-14042Bootstrap Cross-site Scripting vulnerability · 13 Sept 2018
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-10842
- Linkgithub.com/twbs/bootstrap-sass/issues/1195
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-sass/CVE-2019-10842.yml
- Packagegithub.com/twbs/bootstrap-sass
- Linksnyk.io/blog/malicious-remote-code-execution-backdoor-discovered-in-the-popular-bootstrap-sass-ruby-gem
- Linksnyk.io/vuln/SNYK-RUBY-BOOTSTRAPSASS-174093
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.