GHSA-wpfr-6297-9v57: Github.com/netlify/gotrue User Object Created With Invalid Vulnerability

MODERATE
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-wpfr-6297-9v57
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Github.com/netlify/gotrue
Package Ecosystem Go
Published Date
Last Updated

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.

github.com/netlify/gotrue fixed: 1.0.1
Upgrade github.com/netlify/gotrue to 1.0.1
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 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

### Impact _What kind of vulnerability is it? Who is impacted?_ Under certain circumstances a valid user object would have been created with invalid provider metadata. This 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. ### Patches _Has the problem been patched? What versions should users upgrade to?_ A patch is available with the release of version [1.0.1 on Github](https://github.com/netlify/gotrue/releases/tag/v1.0.1). ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ If you don't rely on the provider metadata in the user object, you might not be affected. We still strongly recommend upgrading. ### References _Are there any links users can visit to find out more?_ This 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. In 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. ### For more information If you have any questions or comments about this advisory: * Email us at [security@netlify.com](mailto:security@netlify.com)

GHSA-wpfr-6297-9v57 Affected Github.com/netlify/gotrue Versions

1 component(s)
Fixed Versions:
1.0.1
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?
GHSA-wpfr-6297-9v57 is a security vulnerability in Github.com/netlify/gotrue involving User object created with invalid provider data in GoTrue under General Security Weakness.
Which Github.com/netlify/gotrue versions are affected?
Affected versions include releases prior to 1.0.1 across affected packages: github.com/netlify/gotrue.
What version fixes GHSA-wpfr-6297-9v57?
Upgrading to 1.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/netlify/gotrue affected?
Yes, github.com/netlify/gotrue is affected in releases prior to 1.0.1. Upgrade your dependency to 1.0.1 or later.
What CWE is associated with GHSA-wpfr-6297-9v57?
GHSA-wpfr-6297-9v57 is classified under General Security Weakness.
How can I check Go dependencies for GHSA-wpfr-6297-9v57?
Run the dependency tree command: 'inspect dependencies for github.com/netlify/gotrue'. 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-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
  }
}