CVE-2015-1840
rubygem-jquery-rails: CSRF Vulnerability in jquery-ujs and jquery-rails
Overview
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.
Source: OX vulnerability database
Severity
5 · MEDIUM
CVSS 2.0 base score, scored by NVD.
- Access vector
- Network
- Access complexity
- Low
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
AV:N/AC:L/Au:N/C:P/I:N/A:N
Weakness: CWE-200
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | jquery-ujs | <= 1.0.3 | 1.0.4 |
| RubyGems | jquery-rails | <3.1.3>=4.0.0, <4.0.4 | 3.1.34.0.4~> 3.1.3 |
| RubyGems | jquery-ujs | <1.0.4 | 1.0.4 |
Open a package to see all its vulnerabilities.
Operating systems · 13 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | rh-ror41-rubygem-jquery-rails +5 | wont fix |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | ruby-jquery-rails | 4.0.4-1 |
| 12 | ruby-jquery-rails | 4.0.4-1 |
| 13 | ruby-jquery-rails | 4.0.4-1 |
| 14 | ruby-jquery-rails | 4.0.4-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| ruby-jquery-rails | 4.0.4-1 |
openSUSE 1 release · 7 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | ruby2-2-rubygem-jquery-rails +5 | 4.2.1-1.1 | openSUSE-SU-2024:10512-1 |
| Tumbleweed | ruby2-7-rubygem-jquery-rails +1 | 4.4.0-1.7 | openSUSE-SU-2024:11334-1 |
| Tumbleweed | ruby3-1-rubygem-jquery-rails | 4.5.0-1.1 | openSUSE-SU-2024:12144-1 |
| Tumbleweed | ruby3-2-rubygem-jquery-rails | 4.5.1-1.3 | openSUSE-SU-2024:13159-1 |
| Tumbleweed | ruby3-3-rubygem-jquery-rails | 4.6.0-1.5 | openSUSE-SU-2024:14169-1 |
| Tumbleweed | ruby3-4-rubygem-jquery-rails | 4.6.0-1.7 | openSUSE-SU-2025:15117-1 |
1 more row
References
- lists.fedoraproject.org http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160906.html
- lists.fedoraproject.org http://lists.fedoraproject.org/pipermail/package-announce/2015-June/161043.html
- lists.opensuse.org http://lists.opensuse.org/opensuse-updates/2015-07/msg00041.html
- openwall.com http://openwall.com/lists/oss-security/2015/06/16/15
- www.securityfocus.com http://www.securityfocus.com/bid/75239
- access.redhat.com https://access.redhat.com/security/cve/CVE-2015-1840
- github.com https://github.com/advisories/GHSA-4whc-pp4x-9pf3
- github.com https://github.com/rails/jquery-rails
- github.com https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md
- github.com https://github.com/rails/jquery-ujs
Show all 21 references
- github.com https://github.com/rails/jquery-ujs/blob/master/CHANGELOG.md
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-1840.yml
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ujs/CVE-2015-1840.yml
- groups.google.com https://groups.google.com/forum/#!msg/rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J
- groups.google.com https://groups.google.com/forum/#!topic/ruby-security-ann/XIZPbobuwaY
- groups.google.com https://groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J
- hackerone.com https://hackerone.com/reports/49935
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2015-1840
- web.archive.org https://web.archive.org/web/20200228084945/http://www.securityfocus.com/bid/75239
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2015-1840
- www.npmjs.com https://www.npmjs.com/package/jquery-ujs
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.