CVE-2015-1840
MEDIUM 5.0CVSS 2.0jquery-rails and jquery-ujs subject to Exposure of Sensitive Information
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
- 26 Jul 2015
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-200
- Also known as
- GHSA-4whc-pp4x-9pf3
- Sources
- NVDJSONOSV GHSA-4whc-pp4x-9pf3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:21:*:*:*:*:*:*:* |
= 21 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:* |
= 22 | |
| NVD | rubyonrails | jquery-railscpe:2.3:a:rubyonrails:jquery-rails:*:*:*:*:*:*:*:* |
<= 3.1.2 | |
| NVD | rubyonrails | jquery-railscpe:2.3:a:rubyonrails:jquery-rails:4.0.0:*:*:*:*:*:*:* |
= 4.0.0 | |
| NVD | rubyonrails | jquery-railscpe:2.3:a:rubyonrails:jquery-rails:4.0.1:*:*:*:*:*:*:* |
= 4.0.1 | |
| NVD | rubyonrails | jquery-ujscpe:2.3:a:rubyonrails:jquery-ujs:*:*:*:*:*:*:*:* |
<= 1.0.3 | |
| NVD | opensuse | opensusecpe:2.3:o:opensuse:opensuse:13.1:*:*:*:*:*:*:* |
= 13.1 | |
| NVD | opensuse | opensusecpe:2.3:o:opensuse:opensuse:13.2:*:*:*:*:*:*:* |
= 13.2 | |
| OSV | RubyGems | jquery-rails | < 3.1.3 | 3.1.3 |
| OSV | RubyGems | jquery-rails | >= 4.0.0, < 4.0.4 | 4.0.4 |
| OSV | RubyGems | jquery-ujs | < 1.0.4 | 1.0.4 |
References
- http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160906.html · Third Party Advisory, WEB
- http://lists.fedoraproject.org/pipermail/package-announce/2015-June/161043.html · Third Party Advisory, WEB
- http://lists.opensuse.org/opensuse-updates/2015-07/msg00041.html · Third Party Advisory, WEB
- http://openwall.com/lists/oss-security/2015/06/16/15 · WEB
- http://www.securityfocus.com/bid/75239
- https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md · Vendor Advisory, WEB
- https://github.com/rails/jquery-ujs/blob/master/CHANGELOG.md · Vendor Advisory, WEB
- https://groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2015-1840 · ADVISORY
- https://github.com/advisories/GHSA-4whc-pp4x-9pf3 · ADVISORY
- https://github.com/rails/jquery-rails · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-1840.yml · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ujs/CVE-2015-1840.yml · WEB
- https://groups.google.com/forum/#!topic/ruby-security-ann/XIZPbobuwaY · WEB
- https://web.archive.org/web/20200228084945/http://www.securityfocus.com/bid/75239 · WEB
History
- 25 Nov 2026 20:18 UTC · NVD: first stored (published 26 Jul 2015)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Oct 2017)