{"id":"UBUNTU-CVE-2015-1840","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.","modified":"2025-07-16T08:30:12.390439Z","published":"2015-07-26T22:59:00Z","withdrawn":"2025-07-18T16:43:10Z","upstream":["CVE-2015-1840"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2015-1840"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2015-1840"}],"affected":[{"package":{"name":"ruby-jquery-rails","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-jquery-rails@4.0.5-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.5-1"}]}],"versions":["4.0.4-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"ruby-jquery-rails","binary_version":"4.0.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2015/UBUNTU-CVE-2015-1840.json"}}],"schema_version":"1.7.3","severity":[{"type":"Ubuntu","score":"medium"}]}