Skip to content
OpenAdvisories
Medium CVE-2015-1840 EUVD-2017-0163GHSA-4whc-pp4x-9pf3

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

Published Jul 26, 2015 · Updated Aug 6, 2024 · Assigned by redhat

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-jquery-rails 4.0.4-1 —
Debian 13 ruby-jquery-rails 4.0.4-1 —
Debian 12 ruby-jquery-rails 4.0.4-1 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ruby3.2-rubygem-jquery-rails 4.5.1-1.3 openSUSE-SU-2024:13159-1
openSUSE Tumbleweed rubygem-jquery-rails 4.5.0-1.1 openSUSE-SU-2026:10350-1, openSUSE-SU-2025:15117-1, openSUSE-SU-2024:14169-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems jquery-rails < 3.1.3 3.1.3 GHSA-4whc-pp4x-9pf3
RubyGems jquery-rails >= 4.0.0, < 4.0.4 4.0.4 GHSA-4whc-pp4x-9pf3
RubyGems jquery-ujs < 1.0.4 1.0.4 GHSA-4whc-pp4x-9pf3

Advisories 5

References