{"cve":"CVE-2015-1840","nvd":{"published":"2015-07-26T22:59:00.070","modified":"2026-06-17T00:23:05.780","status":"Modified","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.","cvss_v4":null,"cvss_v3":null,"cwes":["CWE-200"],"references":["http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160906.html","http://lists.fedoraproject.org/pipermail/package-announce/2015-June/161043.html","http://lists.opensuse.org/opensuse-updates/2015-07/msg00041.html","http://openwall.com/lists/oss-security/2015/06/16/15","http://www.securityfocus.com/bid/75239"],"products":["fedoraproject:fedora","opensuse:opensuse","rubyonrails:jquery-rails","rubyonrails:jquery-ujs"],"source":"nvd","synced_at":"2026-10-19T20:36:40.444340523+00:00"},"epss":{"cve":"CVE-2015-1840","score":0.04519,"percentile":0.91532,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-4whc-pp4x-9pf3","url":"https://osv.dev/vulnerability/GHSA-4whc-pp4x-9pf3","summary":"jquery-rails and jquery-ujs subject to Exposure of Sensitive Information","modified":"2026-02-03T02:56:25.062596Z","packages":[{"ecosystem":"RubyGems","name":"jquery-rails","purl":"pkg:gem/jquery-rails","ranges":["<3.1.3"],"fixed":["3.1.3"]},{"ecosystem":"RubyGems","name":"jquery-rails","purl":"pkg:gem/jquery-rails","ranges":[">=4.0.0 <4.0.4"],"fixed":["4.0.4"]},{"ecosystem":"RubyGems","name":"jquery-ujs","purl":"pkg:gem/jquery-ujs","ranges":["<1.0.4"],"fixed":["1.0.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}