{"schemaVersion":3,"id":"CVE-2015-1840","aliases":["UBUNTU-CVE-2015-1840","DEBIAN-CVE-2015-1840","openSUSE-SU-2024:12144-1","openSUSE-SU-2024:13159-1","openSUSE-SU-2024:14169-1","openSUSE-SU-2025:15117-1","openSUSE-SU-2026:10350-1","GHSA-4whc-pp4x-9pf3"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2015-07-26T22:00:00.000Z","modified":"2024-08-06T04:54:16.349Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5,"severity":"medium","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.04519,"percentile":0.91429,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.04519},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04519,"percentile":0.91429}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04519,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04519,"percentile":0.91429}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_6B96531B4D23E802","name":"Exploit Reference (groups.google.com)","source":"reference","url":"https://groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"}],"affected":[{"vendor":"debian","product":"ruby-jquery-rails","name":"ruby-jquery-rails","label":"ruby-jquery-rails","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ruby-jquery-rails","purlType":"deb","versions":[{"text":"< 4.0.4-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.0.4-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ruby-jquery-rails","name":"ruby-jquery-rails","label":"ruby-jquery-rails","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby-jquery-rails","purlType":"deb","versions":[{"text":"< 4.0.5-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.0.5-1","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"21","noFixRecorded":false,"fixedIn":null},{"text":"22","noFixRecorded":false,"fixedIn":null}],"versionsText":"21 | 22","eol":{"isEol":true,"eolDate":"2015-12-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"21","label":"21","eolFrom":"2015-12-01T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"RubyGems","product":"jquery-rails","name":"jquery-rails","label":"jquery-rails","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/jquery-rails","purlType":"gem","versions":[{"text":"< 3.1.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.3 | ≥ 4.0.0, < 4.0.4","eol":null,"hubHref":null},{"vendor":"RubyGems","product":"jquery-ujs","name":"jquery-ujs","label":"jquery-ujs","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/jquery-ujs","purlType":"gem","versions":[{"text":"< 1.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.4","eol":null,"hubHref":null},{"vendor":"opensuse","product":"opensuse","name":"opensuse","label":"opensuse","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"13.1","noFixRecorded":false,"fixedIn":null},{"text":"13.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"13.1 | 13.2","eol":{"isEol":true,"eolDate":"2016-02-03T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"13.1","label":"13.1","eolFrom":"2016-02-03T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"opensuse","label":"openSUSE","category":"os"}},"hubHref":"/vendor/opensuse/opensuse"},{"vendor":"opensuse","product":"ruby3.2-rubygem-jquery-rails&distro=openSUSE Tumbleweed","name":"ruby3.2-rubygem-jquery-rails","label":"ruby3.2-rubygem-jquery-rails&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/ruby3.2-rubygem-jquery-rails&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 4.5.1-1.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.5.1-1.3","eol":null,"hubHref":null},{"vendor":"opensuse","product":"rubygem-jquery-rails&distro=openSUSE Tumbleweed","name":"rubygem-jquery-rails","label":"rubygem-jquery-rails&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/rubygem-jquery-rails&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 4.5.0-1.1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.6.0-1.5","noFixRecorded":false,"fixedIn":null},{"text":"< 4.6.0-1.7","noFixRecorded":false,"fixedIn":null},{"text":"< 4.6.0-1.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.5.0-1.1 | < 4.6.0-1.5 | < 4.6.0-1.7 | < 4.6.0-1.9","eol":null,"hubHref":null},{"vendor":"rubyonrails","product":"jquery-rails","name":"jquery-rails","label":"jquery-rails","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 3.1.2","noFixRecorded":false,"fixedIn":null},{"text":"4.0.0","noFixRecorded":false,"fixedIn":null},{"text":"4.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 3.1.2 | 4.0.0 | 4.0.1","eol":null,"hubHref":"/vendor/rubyonrails/jquery-rails"},{"vendor":"rubyonrails","product":"jquery-ujs","name":"jquery-ujs","label":"jquery-ujs","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.0.3","eol":null,"hubHref":"/vendor/rubyonrails/jquery-ujs"}],"affectedCount":10,"eol":{"hasEol":true,"count":2},"references":[{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-June/161043.html","label":"lists.fedoraproject.org/pipermail/package-announce/2015-June/161043.html","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","Third Party Advisory","WEB"]},{"url":"http://lists.opensuse.org/opensuse-updates/2015-07/msg00041.html","label":"lists.opensuse.org/opensuse-updates/2015-07/msg00041.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Third Party Advisory","WEB"]},{"url":"http://openwall.com/lists/oss-security/2015/06/16/15","label":"openwall.com/lists/oss-security/2015/06/16/15","hostname":"openwall.com","tags":["Mailing List","X Refsource MLIST","WEB"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160906.html","label":"lists.fedoraproject.org/pipermail/package-announce/2015-June/160906.html","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","Third Party Advisory","WEB"]},{"url":"https://groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J","label":"groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J","hostname":"groups.google.com","tags":["Mailing List","X Refsource MLIST","Exploit","Vendor Advisory","WEB"]},{"url":"http://www.securityfocus.com/bid/75239","label":"www.securityfocus.com/bid/75239","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID"]},{"url":"https://github.com/rails/jquery-ujs/blob/master/CHANGELOG.md","label":"github.com/rails/jquery-ujs/blob/master/CHANGELOG.md","hostname":"github.com","tags":["X Refsource CONFIRM","Vendor Advisory","WEB"]},{"url":"https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md","label":"github.com/rails/jquery-rails/blob/master/CHANGELOG.md","hostname":"github.com","tags":["X Refsource CONFIRM","Vendor Advisory","WEB"]},{"url":"https://ubuntu.com/security/CVE-2015-1840","label":"ubuntu.com/security/CVE-2015-1840","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2015-1840","label":"www.cve.org/CVERecord?id=CVE-2015-1840","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2015-1840","label":"security-tracker.debian.org/tracker/CVE-2015-1840","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2015-1840","label":"www.suse.com/security/cve/CVE-2015-1840","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/P3ES62D53ZVJLXLNPPF5WUL3CWHPQKJT/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-1840","label":"nvd.nist.gov/vuln/detail/CVE-2015-1840","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/advisories/GHSA-4whc-pp4x-9pf3","label":"github.com/advisories/GHSA-4whc-pp4x-9pf3","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/rails/jquery-rails","label":"github.com/rails/jquery-rails","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-1840.yml","label":"github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-1840.yml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ujs/CVE-2015-1840.yml","label":"github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ujs/CVE-2015-1840.yml","hostname":"github.com","tags":["WEB"]},{"url":"https://groups.google.com/forum/#!topic/ruby-security-ann/XIZPbobuwaY","label":"groups.google.com/forum/","hostname":"groups.google.com","tags":["WEB"]},{"url":"https://web.archive.org/web/20200228084945/http://www.securityfocus.com/bid/75239","label":"web.archive.org/web/20200228084945/http://www.securityfocus.com/bid/75239","hostname":"web.archive.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2015-07-26T22:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T04:54:16.349Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T21:38:58.042Z","stale":false,"partial":false}}