GHSA-wj5j-xpcj-45gc: Devise invitable Cross-Site Request Forgery (CSRF) Vulnerability
MODERATEGHSA-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
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.
Upgrade devise_invitable to 1.3.5
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
GHSA-wj5j-xpcj-45gc Affected Devise invitable Versions
1 component(s)| 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?
Which Devise invitable versions are affected?
What version fixes GHSA-wj5j-xpcj-45gc?
Is devise_invitable affected?
What CWE is associated with GHSA-wj5j-xpcj-45gc?
How can I check RubyGems dependencies for GHSA-wj5j-xpcj-45gc?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}