{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2015-1840","id":"CVE-2015-1840","title":"jquery-rails and jquery-ujs subject to Exposure of Sensitive Information","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.","descriptionLong":"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.","published":"2015-07-26T22:00:00.000Z","updated":"2026-06-17T00:23:05.780Z","reserved":"2015-02-17T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"jquery-rails","purl":"pkg:gem/jquery-rails","ranges":["<3.1.3",">=4.0.0 <4.0.4"],"fixed":["3.1.3","4.0.4"],"advisory":"GHSA-4whc-pp4x-9pf3"},{"ecosystem":"RubyGems","name":"jquery-ujs","purl":"pkg:gem/jquery-ujs","ranges":["<1.0.4"],"fixed":["1.0.4"],"advisory":"GHSA-4whc-pp4x-9pf3"}],"cwes":["CWE-200"],"aliases":["GHSA-4whc-pp4x-9pf3"],"references":[{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-June/161043.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Third Party Advisory","advisory","web"]},{"url":"http://lists.opensuse.org/opensuse-updates/2015-07/msg00041.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Third Party Advisory","advisory","web"]},{"url":"http://openwall.com/lists/oss-security/2015/06/16/15","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160906.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J","tags":["mailing-list","x_refsource_MLIST","x_transferred","Exploit","Vendor Advisory","advisory","evidence","web"]},{"url":"http://www.securityfocus.com/bid/75239","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://github.com/rails/jquery-ujs/blob/master/CHANGELOG.md","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-1840","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-4whc-pp4x-9pf3","tags":["advisory"]},{"url":"https://github.com/rails/jquery-rails","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-1840.yml","tags":["web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ujs/CVE-2015-1840.yml","tags":["web"]},{"url":"https://groups.google.com/forum/#!topic/ruby-security-ann/XIZPbobuwaY","tags":["web"]},{"url":"https://web.archive.org/web/20200228084945/http://www.securityfocus.com/bid/75239","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.04487,"epssPercentile":0.9166,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2015-1840","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2015-1840","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2015-1840","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4whc-pp4x-9pf3","ok":true,"note":"GHSA-4whc-pp4x-9pf3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2015-1840","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["ruby"],"critical":[],"attention":null}