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

CVE-2015-1840: jquery-rails and jquery-ujs subject to Exposure of Sensitive Information

October 24, 2017 (updated January 14, 2026)

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.

References

  • github.com/advisories/GHSA-4whc-pp4x-9pf3
  • github.com/rails/jquery-rails
  • github.com/rails/jquery-rails/blob/master/CHANGELOG.md
  • github.com/rails/jquery-ujs/blob/master/CHANGELOG.md
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-1840.yml
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ujs/CVE-2015-1840.yml
  • groups.google.com/forum/
  • groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J
  • nvd.nist.gov/vuln/detail/CVE-2015-1840
  • web.archive.org/web/20200228084945/http://www.securityfocus.com/bid/75239

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

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, 04 Feb 2026 00:36:48 +0000.