CVE-2015-1840 json
jquery-rails and jquery-ujs subject to Exposure of Sensitive Information
published 2015-07-26 11 y ago modified 2026-06-17 4 mo ago also GHSA-4whc-pp4x-9pf3 , EUVD-2017-0163
- cvss
- 5.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.5%
- EPSS 4.5% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems jquery-rails 3.1.3, 4.0.4
- rubygems jquery-ujs 1.0.4
- ruby-jquery-rails Debian 14, Debian 13, Debian 12 4.0.4-1
debian advisories DEBIAN-CVE-2015-1840
- rubygem-jquery-rails openSUSE Tumbleweed 4.6.0-1.9
- rubygem-jquery-rails openSUSE Tumbleweed 4.6.0-1.7
- rubygem-jquery-rails openSUSE Tumbleweed 4.6.0-1.5
- rubygem-jquery-rails openSUSE Tumbleweed 4.5.0-1.1
- ruby3.2-rubygem-jquery-rails openSUSE Tumbleweed 4.5.1-1.3
opensuse advisories openSUSE-SU-2026:10350-1openSUSE-SU-2025:15117-1openSUSE-SU-2024:14169-1openSUSE-SU-2024:12144-1openSUSE-SU-2024:13159-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2015-1840 updated cvss 4.3
rubygem-jquery-rails: CSRF Vulnerability in jquery-ujs and jquery-rails
-
Red Hat CloudForms Management Engine 5 ruby193-rubygem-jquery-railsaffected: no fix available
-
Red Hat OpenShift Enterprise 2 ruby193-rubygem-jquery-rails Red Hat Software Collections ror40-rubygem-jquery-rails, ruby193-rubygem-jquery-rails, rh-ror41-rubygem-jquery-rails Red Hat Subscription Asset Manager ruby193-rubygem-jquery-railsaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.49% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- groups.google.com https://groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | jquery-rails | <3.1.3 >=4.0.0, <4.0.4 |
3.1.3 4.0.4 |
| rubygems | jquery-ujs | <1.0.4 |
1.0.4 |
Classification
- Weakness
-
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
-
groups.google.com
/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J
mailing-list, web, exploit, vendor-advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2015-June/161043.html
vendor-advisory, web, third-party-advisory
-
lists.opensuse.org
/opensuse-updates/2015-07/msg00041.html
vendor-advisory, web, third-party-advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2015-June/160906.html
vendor-advisory, web, third-party-advisory
-
github.com
/rails/jquery-ujs/blob/master/CHANGELOG.md
web, vendor-advisory
-
github.com
/rails/jquery-rails/blob/master/CHANGELOG.md
web, vendor-advisory
-
openwall.com
/lists/oss-security/2015/06/16/15
mailing-list, web
-
securityfocus.com
/bid/75239
vdb-entry
-
nvd.nist.gov
/vuln/detail/CVE-2015-1840
advisory
-
github.com
/advisories/GHSA-4whc-pp4x-9pf3
advisory
-
github.com
/rails/jquery-rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-1840.yml
web
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/jquery-ujs/CVE-2015-1840.yml
web
-
groups.google.com
/forum/#!topic/ruby-security-ann/XIZPbobuwaY
web
-
web.archive.org
/web/20200228084945/http://www.securityfocus.com/bid/75239
web
Sources
- CVE List CVE-2015-1840
- GitHub Advisory GHSA-4whc-pp4x-9pf3
- NVD CVE-2015-1840
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.