Back
CVE-2015-1840
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…
Medium5.0EPSS 4.5%
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
- EPSS (exploitation in 30 days)
- 4.5% · top 8.4% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.0.
Weakness
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsjquery-railsGHSA-4whc-pp4x-9pf3 (opens in a new tab)
- RubyGemsjquery-ujsGHSA-4whc-pp4x-9pf3 (opens in a new tab)
References (8)
- FEDORA-2015-10144 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- openSUSE-SU-2015:1260 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- [oss-security] 20150616 [CVE-2015-1840] CSRF Vulnerability in jquery-ujs and jquery-rails (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- FEDORA-2015-10258 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- [rubyonrails-security] 20150616 [CVE-2015-1840] CSRF Vulnerability in jquery-ujs and jquery-rails (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- 75239 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- https://github.com/rails/jquery-ujs/blob/master/CHANGELOG.md (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-4whc-pp4x-9pf3 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2015-1840)Record last updated .