Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. jquery-ujs
  4. ›
  5. CVE-2015-1840

CVE-2015-1840: Exposure of Sensitive Information to an Unauthorized Actor

October 24, 2017 (updated September 1, 2021)

jquery_ujs.js in jquery-rails and rails.js in jquery-ujs, as used with Ruby on Rails, 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.

References

  • 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
  • openwall.com/lists/oss-security/2015/06/16/15
  • www.securityfocus.com/bid/75239
  • 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
  • nvd.nist.gov/vuln/detail/CVE-2015-1840

Code Behaviors & Features

Detect and mitigate CVE-2015-1840 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.4

Fixed versions

  • 1.0.4

Solution

Upgrade to version 1.0.4 or above.

Impact 5 MEDIUM

AV:N/AC:L/Au:N/C:P/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

gem/jquery-ujs/CVE-2015-1840.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:57 +0000.