{"id":"GHSA-4whc-pp4x-9pf3","summary":"jquery-rails and jquery-ujs subject to Exposure of Sensitive Information","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.","aliases":["CVE-2015-1840"],"modified":"2026-02-03T02:56:25.062596Z","published":"2017-10-24T18:33:36Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-06-16T20:59:28Z","nvd_published_at":"2015-07-26T22:59:00Z","cwe_ids":["CWE-200"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2015-1840"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4whc-pp4x-9pf3"},{"type":"PACKAGE","url":"https://github.com/rails/jquery-rails"},{"type":"WEB","url":"https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/rails/jquery-ujs/blob/master/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-1840.yml"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ujs/CVE-2015-1840.yml"},{"type":"WEB","url":"https://groups.google.com/forum/#!topic/ruby-security-ann/XIZPbobuwaY"},{"type":"WEB","url":"https://groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J"},{"type":"WEB","url":"https://web.archive.org/web/20200228084945/http://www.securityfocus.com/bid/75239"},{"type":"WEB","url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160906.html"},{"type":"WEB","url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-June/161043.html"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-updates/2015-07/msg00041.html"},{"type":"WEB","url":"http://openwall.com/lists/oss-security/2015/06/16/15"}],"affected":[{"package":{"name":"jquery-rails","ecosystem":"RubyGems","purl":"pkg:gem/jquery-rails"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.3"}]}],"versions":["0.1.1","0.1.2","0.1.3","0.2","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","1.0","1.0.1","1.0.10","1.0.11","1.0.12","1.0.13","1.0.14","1.0.15","1.0.16","1.0.17","1.0.18","1.0.19","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.0.rc","2.0.1","2.0.2","2.0.3","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.2.0","2.2.1","2.2.2","2.3.0","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.1.0","3.1.1","3.1.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-4whc-pp4x-9pf3/GHSA-4whc-pp4x-9pf3.json"}},{"package":{"name":"jquery-rails","ecosystem":"RubyGems","purl":"pkg:gem/jquery-rails"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.0.4"}]}],"versions":["4.0.0","4.0.1","4.0.2","4.0.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-4whc-pp4x-9pf3/GHSA-4whc-pp4x-9pf3.json"}},{"package":{"name":"jquery-ujs","ecosystem":"RubyGems","purl":"pkg:gem/jquery-ujs"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-4whc-pp4x-9pf3/GHSA-4whc-pp4x-9pf3.json"}}],"schema_version":"1.9.0"}