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.

Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
4.487%
chance of exploitation in the next 30 days
higher than 91.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2015-07-26Published by the CNA22:00 UTC
  2. 2017-10-24GitHub advisory published (GHSA-4whc-pp4x-9pf3)821 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-4whc-pp4x-9pf3, affected packages:

PackageVulnerable versionsFixed in
RubyGems jquery-railsbefore 3.1.33.1.3
RubyGems jquery-railsfrom 4.0.0 before 4.0.44.0.4
RubyGems jquery-ujsbefore 1.0.41.0.4

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
rubyonrails jquery-railsthrough 3.1.2no fix listed4.0.0no fix listed4.0.1no fix listednot listednot listednot listed
rubyonrails jquery-ujsthrough 1.0.3no fix listednot listed
fedoraproject fedora21no fix listed22no fix listednot listednot listed
opensuse opensuse13.1no fix listed13.2no fix listednot listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources