CVE-2015-1840
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Fedora Affected 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 22 | Affected | โ |
| 21 | Affected | โ |
SUSE Affected 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 13.2 | Affected | โ |
| 13.1 | Affected | โ |
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 4.0.4-1 |
| sid | Fixed | 4.0.4-1 |
| forky | Fixed | 4.0.4-1 |
| bullseye | Fixed | 4.0.4-1 |
| bookworm | Fixed | 4.0.4-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| RubyGems | jquery-rails | <>= 4.0.4 | >= 4.0.4 |
| RubyGems | jquery-ujs | <>= 1.0.4 | >= 1.0.4 |
| RubyGems | jquery-rails | <3.1.3 | 3.1.3 |
| RubyGems | jquery-rails | >=4.0.0,<4.0.4 | 4.0.4 |
| RubyGems | jquery-ujs | <1.0.4 | 1.0.4 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| rubyonrails | jquery-rails | {"endIncluding":"3.1.2"} | |
| rubyonrails | jquery-rails | 4.0.0 | |
| rubyonrails | jquery-rails | 4.0.1 | |
| rubyonrails | jquery-ujs | {"endIncluding":"1.0.3"} | |
References
- https://groups.google.com/forum/#!topic/ruby-security-ann/XIZPbobuwaY
- 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
- https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md
- https://github.com/rails/jquery-ujs/blob/master/CHANGELOG.md
- https://groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J
- https://nvd.nist.gov/vuln/detail/CVE-2015-1840
- https://github.com/advisories/GHSA-4whc-pp4x-9pf3
- https://github.com/rails/jquery-rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-1840.yml
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ujs/CVE-2015-1840.yml
- https://web.archive.org/web/20200228084945/http://www.securityfocus.com/bid/75239
- https://security-tracker.debian.org/tracker/CVE-2015-1840
CWEs
CWE-200
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.