---
title: "CVE-2015-1840\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2015-1840?format=md
keywords: index, follow
---

# CVE-2015-1840

Publication date 26 July 2015

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## 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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| ruby-jquery-rails | 19.04 disco | Not affected |
| 18.10 cosmic | Not affected |
| 18.04 LTS bionic | Not affected |
| 17.10 artful | Ignored end of life |
| 17.04 zesty | Ignored end of life |
| 16.10 yakkety | Ignored end of life |
| 16.04 LTS xenial | Not affected |
| 15.10 wily | Ignored end of life |
| 15.04 vivid | Ignored end of life |
| 14.10 utopic | Ignored end of life |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-1840)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2015-1840)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2015-1840)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2015-1840)

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2015-1840>
