MediumGHSA-4whc-pp4x-9pf3CVE-2015-1840

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?

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

Affected packages

jquery-railsRubyGems
Affected
<3.1.3
Fixed in
3.1.3
Update to the fixed version for your release line, for example:bundle update --conservative jquery-rails # Gemfile: '>= 3.1.3'
jquery-railsRubyGems
Affected
>=4.0.0 <4.0.4
Fixed in
4.0.4
Update to the fixed version for your release line, for example:bundle update --conservative jquery-rails # Gemfile: '>= 4.0.4'
jquery-ujsRubyGems
Affected
<1.0.4
Fixed in
1.0.4
Update to the fixed version for your release line, for example: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
All 9 advisories for jquery-rails

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.