Back to CVE catalog
CVE-2015-1840

Same Origin Policy bypass in jquery-rails and jquery-ujs

Multiple products

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityPartial
IntegrityNone
AvailabilityNone

CVSS summary v2.0

5.0Medium
Published:
Updated:
EPSS:
4.487%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:rubyonrailsjquery-railsAffected versions:
≤ 3.1.2Show full version range for jquery-rails
4.0.04.0.1
Vendor:rubyonrailsjquery-ujsAffected versions:
≤ 1.0.3
Vendor:FedorafedoraAffected versions:
21Show full version range for fedora
22
Vendor:opensuseopensuseAffected versions:
13.1Show full version range for opensuse
13.2
Vendor:Debianruby-jquery-rails
Environments (4)
  • bookworm
  • forky
  • sid
  • trixie
Affected versions:
< 4.0.4-1
Vendor:Fedorarubygem-jquery-rails
Environments (1)
  • cpe:/o:fedoraproject:fedora:21
Affected versions:
< 3.1.0-3.fc21
Vendor:Fedorarubygem-jquery-rails
Environments (1)
  • cpe:/o:fedoraproject:fedora:22
Affected versions:
< 3.1.0-3.fc22

1–7 of 7 · Page 1 of 1

CVSS scores and metrics2
[email protected] · NVD (Primary)Primary5.0 / 10MediumCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
None
Availability
None
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:P/I:N/A:N
nvd · Wazuh CTI (cna)5.0 / 10MediumCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
None
Availability
None
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories15

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences