jquery-rails and jquery-ujs subject to Exposure of Sensitive Information
Published 24 Oct 2017 · Updated 3 Feb 2026
Is your project on an affected jquery-rails?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <3.1.3
- Fixed in
- 3.1.3
bundle update --conservative jquery-rails # Gemfile: '>= 3.1.3'- Affected
- >=4.0.0 <4.0.4
- Fixed in
- 4.0.4
bundle update --conservative jquery-rails # Gemfile: '>= 4.0.4'- Affected
- <1.0.4
- Fixed in
- 1.0.4
bundle update --conservative jquery-ujs # Gemfile: '>= 1.0.4'Details
jquery_ujs.js in jquery-rails before 3.1.3 and 4.x before 4.0.4 and rails.js in jquery-ujs before 1.0.4, as used with Ruby on Rails 3.x and 4.x, allow remote attackers to bypass the Same Origin Policy, and trigger transmission of a CSRF token to a different-domain web server, via a leading space character in a URL within an attribute value.
Is GHSA-4whc-pp4x-9pf3 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 jquery-rails, and gives you the command that fixes it.
More advisories for jquery-rails
- MediumCVE-2011-4969jQuery vulnerable to Cross-Site Scripting (XSS) · 14 May 2022
- MediumCVE-2012-6708Cross-Site Scripting in jquery · 1 Sept 2020
- MediumCVE-2020-7656Cross-Site Scripting in jquery · 20 May 2020
- MediumCVE-2020-11023Potential XSS vulnerability in jQuery · 29 Apr 2020
- MediumCVE-2020-11022Potential XSS vulnerability in jQuery · 29 Apr 2020
- MediumCVE-2019-11358XSS in jQuery as used in Drupal, Backdrop CMS, and other products · 26 Apr 2019
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2015-1840
- Advisorygithub.com/advisories/GHSA-4whc-pp4x-9pf3
- Packagegithub.com/rails/jquery-rails
- Linkgithub.com/rails/jquery-rails/blob/master/CHANGELOG.md
- Linkgithub.com/rails/jquery-ujs/blob/master/CHANGELOG.md
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-1840.yml
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ujs/CVE-2015-1840.yml
- Linkgroups.google.com/forum/#!topic/ruby-security-ann/XIZPbobuwaY
- Linkgroups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J
- Linkweb.archive.org/web/20200228084945/http://www.securityfocus.com/bid/75239
- Linklists.fedoraproject.org/pipermail/package-announce/2015-June/160906.html
- Linklists.fedoraproject.org/pipermail/package-announce/2015-June/161043.html
- Linklists.opensuse.org/opensuse-updates/2015-07/msg00041.html
- Linkopenwall.com/lists/oss-security/2015/06/16/15
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.