CVE-2015-1840
RubyGems vulnerability
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.
Affected products
RubyGems. The exact versions are in the references.
What to do now
- Check your exposureFind out whether RubyGems runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- nvd.nist.gov/vuln/detail/CVE-2015-1840
- github.com/advisories/GHSA-4whc-pp4x-9pf3
- github.com/rails/jquery-rails/blob/master/CHANGELOG.md
- github.com/rails/jquery-ujs/blob/master/CHANGELOG.md
- groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J
- lists.fedoraproject.org/pipermail/package-announce/2015-June/160906.html
- lists.fedoraproject.org/pipermail/package-announce/2015-June/161043.html
- lists.opensuse.org/opensuse-updates/2015-07/msg00041.html
- nvd.nist.gov/vuln/detail/CVE-2015-1840
- cve.org/CVERecord?id=CVE-2015-1840
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.