Live threats

All CVEs / Fedoraproject

CVE-2015-1840Fedoraproject Fedora

Medium 5.0 No auth needed

Priority
45
CVSS 2.0
5.0
EPSS
4.5%
probability of exploitation in 30 days · percentile 92
Auth required
No
Published
Jul 26, 2015
Updated
Jun 17, 2026
Category
Operating system · Linux
Weakness (CWE)
CWE-200
Vector
AV:N/AC:L/Au:N/C:P/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Fedora.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems jquery-rails < 3.1.3 3.1.3 gem "jquery-rails", ">= 3.1.3"
RubyGems jquery-rails ≥ 4.0.0 < 4.0.4 4.0.4 gem "jquery-rails", ">= 4.0.4"
RubyGems jquery-ujs < 1.0.4 1.0.4 gem "jquery-ujs", ">= 1.0.4"

Per OSV / GitHub Advisories (GHSA-4whc-pp4x-9pf3). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
fedoraprojectfedora21
fedoraprojectfedora22
rubyonrailsjquery-rails≤ 3.1.2
rubyonrailsjquery-rails4.0.0
rubyonrailsjquery-rails4.0.1
rubyonrailsjquery-ujs≤ 1.0.3
opensuseopensuse13.1
opensuseopensuse13.2

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.