CVE-2015-1840

medium
Published 2015-06-16 ยท Modified 2026-02-03
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
5.0

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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

fedora Fedora Affected 2 releases
VersionStatusFixed in
22 Affected โ€”
21 Affected โ€”
suse SUSE Affected 2 releases
VersionStatusFixed in
13.2 Affected โ€”
13.1 Affected โ€”
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 4.0.4-1
sid Fixed 4.0.4-1
forky Fixed 4.0.4-1
bullseye Fixed 4.0.4-1
bookworm Fixed 4.0.4-1

Package impact

EcosystemPackageVulnerableFixed
ruby RubyGemsjquery-rails<>= 4.0.4>= 4.0.4
ruby RubyGemsjquery-ujs<>= 1.0.4>= 1.0.4
ruby RubyGemsjquery-rails<3.1.33.1.3
ruby RubyGemsjquery-rails>=4.0.0,<4.0.44.0.4
ruby RubyGemsjquery-ujs<1.0.41.0.4

Application impact

VendorProductVersionsFixed
rubyonrailsjquery-rails{"endIncluding":"3.1.2"}
rubyonrailsjquery-rails4.0.0
rubyonrailsjquery-rails4.0.1
rubyonrailsjquery-ujs{"endIncluding":"1.0.3"}

References

CWEs

CWE-200

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.