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

CVE-2015-1840: CSRF vulnerability

July 26, 2015 (updated October 30, 2018)

In the scenario where an attacker might be able to control the href attribute of an anchor tag or the action attribute of a form tag that will trigger a POST action, the attacker can set the href or action to https://attacker.com (note the leading space) that will be passed to JQuery, who will see this as a same origin request, and send the user’s CSRF token to the attacker domain.

References

  • groups.google.com/forum/

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 3.1.3, all versions starting from 4.0.0a before 4.0.4

Fixed versions

  • 3.1.3
  • 4.0.4

Solution

Upgrade to latest, apply patch or use workaround; see provided link.

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-rails/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:14:44 +0000.