VDB
Sign up
MEDIUM

GHSA-4whc-pp4x-9pf3

jquery-rails and jquery-ujs subject to Exposure of Sensitive Information

Quick fix

GHSA-4whc-pp4x-9pf3 — jquery-rails: upgrade to the fixed version with the command below.

bundle update jquery-rails

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/jquery-rails
Introduced in: 0Fixed in: 3.1.3
Fixbundle update jquery-rails
RubyGems/jquery-rails
Introduced in: 4.0.0Fixed in: 4.0.4
Fixbundle update jquery-rails
RubyGems/jquery-ujs
Introduced in: 0Fixed in: 1.0.4
Fixbundle update jquery-ujs

References