CVE-2015-1840

Exp

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.

Published: 2015-07-26 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2015-1840 is rated High Exploit Risk (66.4/100): CVSS Medium severity, with high exploitation likelihood (EPSS 4.40%, 90th percentile). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2015-1840

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2015-1840

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-27 4.52% 4.40% -0.12%
2 2026-06-15 0.24% 4.52% +4.28%
3 2026-03-17 0.24%

Full EPSS history (10 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2015-1840

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.0 2.0 MEDIUM
AV:N/AC:L/Au:N/C:P/I:N/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:N)
No integrity impact.
Availability impact (A:N)
No availability impact.
10.0 2.9 [email protected]

Weakness enumeration for CVE-2015-1840

GitHub Security Advisory for CVE-2015-1840

GHSA-4whc-pp4x-9pf3 · Severity: medium · Ecosystem: rubygems — jquery-rails and jquery-ujs subject to Exposure of Sensitive Information

OS Trackers for CVE-2015-1840

vendor priority summary link
debian not yet assigned CVE-2015-1840 not yet assigned priority: Debian including 1 source packages (ruby-jquery-rails), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2015-1840
redhat medium https://access.redhat.com/security/cve/CVE-2015-1840
suse medium CVE-2015-1840 severity moderate: SUSE including 13 source package names (ruby2.2-rubygem-jquery-rails-4.2.1-1.1, ruby2.2-rubygem-jquery-rails-doc-4.2.1-1.1, …), 13 product×package rows across 1 product lines (openSUSE Tumbleweed): Fixed 13. https://www.suse.com/security/cve/CVE-2015-1840/
ubuntu medium CVE-2015-1840 medium priority: Ubuntu including 1 source packages (ruby-jquery-rails), 13 status rows across 13 suites (artful, bionic, cosmic, disco, precise, trusty, upstream, utopic, vivid, wily, xenial, yakkety, zesty): ignored 6, not-affected 4, DNE 2, released 1. https://ubuntu.com/security/CVE-2015-1840

Affected software / configurations for CVE-2015-1840

Vendor Product Version Raw CPE
fedoraproject fedora 21 cpe:2.3:o:fedoraproject:fedora:21:*:*:*:*:*:*:*
fedoraproject fedora 22 cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*
rubyonrails jquery-rails <= 3.1.2 cpe:2.3:a:rubyonrails:jquery-rails:*:*:*:*:*:*:*:*
rubyonrails jquery-rails 4.0.0 cpe:2.3:a:rubyonrails:jquery-rails:4.0.0:*:*:*:*:*:*:*
rubyonrails jquery-rails 4.0.1 cpe:2.3:a:rubyonrails:jquery-rails:4.0.1:*:*:*:*:*:*:*
rubyonrails jquery-ujs <= 1.0.3 cpe:2.3:a:rubyonrails:jquery-ujs:*:*:*:*:*:*:*:*
opensuse opensuse 13.1 cpe:2.3:o:opensuse:opensuse:13.1:*:*:*:*:*:*:*
opensuse opensuse 13.2 cpe:2.3:o:opensuse:opensuse:13.2:*:*:*:*:*:*:*

References for CVE-2015-1840

cvelogic Threat Intelligence