VYPR
Moderate severityNVD Advisory· Published Jul 26, 2015· Updated May 6, 2026

CVE-2015-1840

CVE-2015-1840

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.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
jquery-railsRubyGems
< 3.1.33.1.3
jquery-railsRubyGems
>= 4.0.0, < 4.0.44.0.4
jquery-ujsRubyGems
< 1.0.41.0.4

Affected products

8
  • cpe:2.3:a:rubyonrails:jquery-rails:*:*:*:*:*:*:*:*+ 2 more
    • cpe:2.3:a:rubyonrails:jquery-rails:*:*:*:*:*:*:*:*range: <=3.1.2
    • cpe:2.3:a:rubyonrails:jquery-rails:4.0.0:*:*:*:*:*:*:*
    • cpe:2.3:a:rubyonrails:jquery-rails:4.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:rubyonrails:jquery-ujs:*:*:*:*:*:*:*:*
    Range: <=1.0.3
  • cpe:2.3:o:fedoraproject:fedora:21:*:*:*:*:*:*:*+ 1 more
    • cpe:2.3:o:fedoraproject:fedora:21:*:*:*:*:*:*:*
    • cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*
  • OpenSUSE/openSUSE2 versions
    cpe:2.3:o:opensuse:opensuse:13.1:*:*:*:*:*:*:*+ 1 more
    • cpe:2.3:o:opensuse:opensuse:13.1:*:*:*:*:*:*:*
    • cpe:2.3:o:opensuse:opensuse:13.2:*:*:*:*:*:*:*

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

14

News mentions

0

No linked articles in our index yet.