GHSA-wpfr-6297-9v57: Github.com/netlify/gotrue User Object Created With Invalid Vulnerability
MODERATEGHSA-wpfr-6297-9v57 is a MODERATE user object created with invalid vulnerability (General Security Weakness) affecting Github.com/netlify/gotrue libraries in the Go ecosystem. The issue involves user object created with invalid provider data in gotrue. Remediation is available by upgrading affected packages to version 1.0.1.
GHSA-wpfr-6297-9v57 at a Glance
How to Fix GHSA-wpfr-6297-9v57
To remediate this vulnerability, upgrade all affected Github.com/netlify/gotrue 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 github.com/netlify/gotrue to 1.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/netlify/gotrue
How to Check if You Are Affected
To determine whether your application is affected by GHSA-wpfr-6297-9v57, inspect your project dependencies for Github.com/netlify/gotrue:
inspect dependencies for github.com/netlify/gotrue
Analyze the terminal output to locate any version of Github.com/netlify/gotrue in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.1), 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 General Security Weakness. In Github.com/netlify/gotrue, 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-wpfr-6297-9v57 Affected Github.com/netlify/gotrue Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/netlify/gotrue
|
Go |
< 1.0.1
|
1.0.1
|
References
Frequently Asked Questions
What is GHSA-wpfr-6297-9v57?
Which Github.com/netlify/gotrue versions are affected?
What version fixes GHSA-wpfr-6297-9v57?
Is github.com/netlify/gotrue affected?
What CWE is associated with GHSA-wpfr-6297-9v57?
How can I check Go dependencies for GHSA-wpfr-6297-9v57?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wpfr-6297-9v57",
"modified" : "2022-02-09T22:29:01Z",
"published" : "2022-02-09T22:29:01Z",
"aliases" : [ ],
"summary" : "User object created with invalid provider data in GoTrue",
"details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nUnder certain circumstances a valid user object would have been created with invalid provider metadata.\n\nThis vulnerability affects everyone running an instance of GoTrue as a service. We advise you to update especially if you are using the provider metadata from the user object to secure other resources.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nA patch is available with the release of version [1.0.1 on Github](https://github.com/netlify/gotrue/releases/tag/v1.0.1).\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nIf you don't rely on the provider metadata in the user object, you might not be affected. We still strongly recommend upgrading.\n\n### References\n_Are there any links users can visit to find out more?_\n\nThis problem was initially found and reported by the team at Supabase: https://github.com/supabase/gotrue/security/advisories/GHSA-5hvv-9cqv-894r. We want to thank them for the cooperation around this report.\n\nIn contrast to their advisory, we decided to set the severity to \"Moderate\" since the provider metadata is not an inherent security feature of this GoTrue codebase or the Netlify ecosystem.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [security@netlify.com](mailto:security@netlify.com)\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/netlify/gotrue"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/netlify/gotrue/security/advisories/GHSA-wpfr-6297-9v57"
}, {
"type" : "WEB",
"url" : "https://github.com/netlify/gotrue/pull/313"
}, {
"type" : "WEB",
"url" : "https://github.com/netlify/gotrue/commit/4d8a3b39fe485a5f83c70617d594be01130c5b83"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/netlify/gotrue"
}, {
"type" : "WEB",
"url" : "https://github.com/netlify/gotrue/releases/tag/v1.0.1"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-02-09T22:29:01Z",
"nvd_published_at" : null
}
}