# CVE-2015-1840

- Priority: **Routine**
- Reason: Not severe (CVSS 5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2015-07-26 · Modified: 2024-08-06
- 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
- Record: https://cvemate.com/vulnerability/CVE-2015-1840 · JSON: https://cvemate.com/vulnerability/CVE-2015-1840/json

## Description

```text
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.
```

## Signals

- CVSS: 5 medium (v2.0, NVD) AV:N/AC:L/Au:N/C:P/I:N/A:N
- EPSS: 4.487%, percentile 91.733%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian ruby-jquery-rails (Debian): \< 4.0.4-1
- ubuntu ruby-jquery-rails (Ubuntu): \< 4.0.5-1
- fedoraproject fedora: 21 \| 22
- RubyGems jquery-rails (RubyGems): \< 3.1.3 \| ≥ 4.0.0, \< 4.0.4
- RubyGems jquery-ujs (RubyGems): \< 1.0.4
- opensuse opensuse: 13.1 \| 13.2
- opensuse ruby3.2-rubygem-jquery-rails&distro=openSUSE Tumbleweed (openSUSE): \< 4.5.1-1.3
- opensuse rubygem-jquery-rails&distro=openSUSE Tumbleweed (openSUSE): \< 4.5.0-1.1 \| \< 4.6.0-1.5 \| \< 4.6.0-1.7 \| \< 4.6.0-1.9
- rubyonrails jquery-rails: ≤ 3.1.2 \| 4.0.0 \| 4.0.1
- rubyonrails jquery-ujs: ≤ 1.0.3

## References

- <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://lists.fedoraproject.org/pipermail/package-announce/2015-June/160906.html>
- <https://groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J>
- <http://www.securityfocus.com/bid/75239>
- <https://github.com/rails/jquery-ujs/blob/master/CHANGELOG.md>
- <https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md>
- <https://ubuntu.com/security/CVE-2015-1840>
- <https://www.cve.org/CVERecord?id=CVE-2015-1840>
- <https://security-tracker.debian.org/tracker/CVE-2015-1840>
- <https://www.suse.com/security/cve/CVE-2015-1840>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/P3ES62D53ZVJLXLNPPF5WUL3CWHPQKJT/>
- <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://groups.google.com/forum/#!topic/ruby-security-ann/XIZPbobuwaY>
- <https://web.archive.org/web/20200228084945/http://www.securityfocus.com/bid/75239>

---

Data as of 2026-12-05T08:10:42.022Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
