GHSA-wj5j-xpcj-45gc: Devise invitable Cross-Site Request Forgery (CSRF) Vulnerability

MODERATE
CWE-352
Published
Advisory Summary

GHSA-wj5j-xpcj-45gc is a MODERATE cross-site request forgery (csrf) vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Devise invitable libraries in the RubyGems ecosystem. The issue involves cross-site request forgery (csrf). Remediation is available by upgrading affected packages to version 1.3.5.

GHSA-wj5j-xpcj-45gc at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-wj5j-xpcj-45gc
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Devise invitable
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix GHSA-wj5j-xpcj-45gc

To remediate this vulnerability, upgrade all affected Devise invitable dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

devise_invitable fixed: 1.3.5
Upgrade devise_invitable to 1.3.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for devise_invitable

How to Check if You Are Affected

To determine whether your application is affected by GHSA-wj5j-xpcj-45gc, inspect your project dependencies for Devise invitable:

inspect dependencies for devise_invitable

Analyze the terminal output to locate any version of Devise invitable in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Devise invitable, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

# Withdrawn Affected versions of the package are vulnerable to Cross-Site Request Forgery (CSRF) attacks.

GHSA-wj5j-xpcj-45gc Affected Devise invitable Versions

1 component(s)
Fixed Versions:
1.3.5
Product / Package Ecosystem Affected Versions Fixed Version
devise_invitable
RubyGems
< 1.3.5
1.3.5

References

Frequently Asked Questions

What is GHSA-wj5j-xpcj-45gc?
GHSA-wj5j-xpcj-45gc is a security vulnerability in Devise invitable involving Cross-Site Request Forgery (CSRF) under CWE-352: Cross-Site Request Forgery (CSRF).
Which Devise invitable versions are affected?
Affected versions include releases prior to 1.3.5 across affected packages: devise_invitable.
What version fixes GHSA-wj5j-xpcj-45gc?
Upgrading to 1.3.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is devise_invitable affected?
Yes, devise_invitable is affected in releases prior to 1.3.5. Upgrade your dependency to 1.3.5 or later.
What CWE is associated with GHSA-wj5j-xpcj-45gc?
GHSA-wj5j-xpcj-45gc is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check RubyGems dependencies for GHSA-wj5j-xpcj-45gc?
Run the dependency tree command: 'inspect dependencies for devise_invitable'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wj5j-xpcj-45gc",
  "modified" : "2021-02-24T19:17:37Z",
  "published" : "2021-02-24T19:17:37Z",
  "withdrawn" : "2021-02-24T19:17:37Z",
  "aliases" : [ ],
  "summary" : "Cross-Site Request Forgery (CSRF)",
  "details" : "# Withdrawn\n\nAffected versions of the package are vulnerable to Cross-Site Request Forgery (CSRF) attacks.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "devise_invitable"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/scambra/devise_invitable/issues/457"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/scambra/devise_invitable/commit/d1bb19efca8e35885e1c2f0931d6171fce8cf74e"
  }, {
    "type" : "WEB",
    "url" : "https://www.sourceclear.com/vulnerability-database/security/cross-site-request-forgery-csrf/ruby/sid-2272"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-06-26T01:06:20Z",
    "nvd_published_at" : null
  }
}