{"id":"CVE-2015-1840","published":"2015-07-26T22:00:00Z","modified":"2024-08-06T04:54:16Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04487,"percentile":0.91696,"provenance":"source"},"cwes":[],"references":[{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-June/161043.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://lists.opensuse.org/opensuse-updates/2015-07/msg00041.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://openwall.com/lists/oss-security/2015/06/16/15","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160906.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.securityfocus.com/bid/75239","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://github.com/rails/jquery-ujs/blob/master/CHANGELOG.md","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.3,"factors":[{"name":"EPSS percentile","points":18.34}]},"affected":[{"ecosystem":"RubyGems","package":"jquery-rails","vulnerableRanges":["<3.1.3",">=4.0.0, <4.0.4"],"patched":["3.1.3","4.0.4"],"from":["GHSA-4whc-pp4x-9pf3"],"provenance":"source"},{"ecosystem":"RubyGems","package":"jquery-ujs","vulnerableRanges":["<1.0.4"],"patched":["1.0.4"],"from":["GHSA-4whc-pp4x-9pf3"],"provenance":"source"}],"summary":{"text":"The flaw lies in the jquery_ujs.js component of jquery-rails (before 3.1.3 and 4.x before 4.0.4) and the rails.js component of jquery-ujs (before 1.0.4), as used with Ruby on Rails 3.x and 4.x. A remote attacker can exploit it, without any stated authentication or configuration requirement, by inserting a URL with a leading space character into an attribute value, which bypasses the Same Origin Policy and causes the CSRF token to be transmitted to a server on a different domain.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:15:55Z"},"euvd":{"id":"EUVD-2017-0163","exploited":false,"provenance":"source"}}