CVE-2015-1840

CVE-2015-1840 is a medium-severity security vulnerability in jquery-rails (rubygems), affecting versions < 3.1.3. It is fixed in 3.1.3, 4.0.4, 1.0.4.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

jquery-rails and jquery-ujs subject to Exposure of Sensitive Information

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.

Impact

Affected versions

jquery-rails (< 3.1.3) jquery-rails (>= 4.0.0, < 4.0.4) jquery-ujs (< 1.0.4)

Security releases

jquery-rails → 3.1.3 (rubygems) jquery-rails → 4.0.4 (rubygems) jquery-ujs → 1.0.4 (rubygems)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Upgrade the following packages to resolve this vulnerability:

jquery-rails to 3.1.3 or later; jquery-rails to 4.0.4 or later; jquery-ujs to 1.0.4 or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2015-1840? CVE-2015-1840 is a medium-severity security vulnerability in jquery-rails (rubygems), affecting versions < 3.1.3. It is fixed in 3.1.3, 4.0.4, 1.0.4.
  2. Which packages are affected by CVE-2015-1840?
    • jquery-rails (rubygems) (versions < 3.1.3)
    • jquery-ujs (rubygems) (versions < 1.0.4)
  3. Is there a fix for CVE-2015-1840? Yes. CVE-2015-1840 is fixed in 3.1.3, 4.0.4, 1.0.4. Upgrade to this version or later.
  4. Is CVE-2015-1840 exploitable, and should I be worried? Whether CVE-2015-1840 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether CVE-2015-1840 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix CVE-2015-1840?
    • Upgrade jquery-rails to 3.1.3 or later
    • Upgrade jquery-rails to 4.0.4 or later
    • Upgrade jquery-ujs to 1.0.4 or later

Other vulnerabilities in jquery-rails

Stop the waste.
Protect your environment with Kodem.