GHSA-433w-mm6h-rv9p: Github.com/netlify/gotrue Auth Bypass Vulnerability

CRITICAL
Published
Advisory Summary

GHSA-433w-mm6h-rv9p is a CRITICAL auth bypass vulnerability (General Security Weakness) affecting Github.com/netlify/gotrue libraries in the Go ecosystem. The issue involves auth bypass in saml provider. Remediation is available by upgrading affected packages to version 1.0.0.

GHSA-433w-mm6h-rv9p at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-433w-mm6h-rv9p
Severity CRITICAL
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-433w-mm6h-rv9p

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.0
Upgrade github.com/netlify/gotrue to 1.0.0
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-433w-mm6h-rv9p, 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.0), 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 The following vulnerabilities have been disclosed, which impact users leveraging the SAML auth provider: - [`goxmldsig` - Signature Validation Bypass](https://github.com/russellhaering/goxmldsig/security/advisories/GHSA-q547-gmf8-8jr7) - [`gosaml2` - Authentication Bypass](https://github.com/russellhaering/gosaml2/security/advisories/GHSA-xhqq-x44f-9fgg) ### Patches [Patch available](https://github.com/netlify/gotrue/pull/274) Please upgrade to v1.0.0 or commit hash `a2b4dd6bc4ef7562d1df044098b303f564eefa90` ### Workarounds No known workarounds. ### For more information If you have any questions or comments about this advisory: * Open an issue in [gotrue](https://github.com/netlify/gotrue/issues) * Email us at [security@netlify.com](mailto:security@netlify.com)

GHSA-433w-mm6h-rv9p Affected Github.com/netlify/gotrue Versions

1 component(s)
Fixed Versions:
1.0.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/netlify/gotrue
Go
< 1.0.0
1.0.0

References

Frequently Asked Questions

What is GHSA-433w-mm6h-rv9p?
GHSA-433w-mm6h-rv9p is a security vulnerability in Github.com/netlify/gotrue involving Auth bypass in SAML provider under General Security Weakness.
Which Github.com/netlify/gotrue versions are affected?
Affected versions include releases prior to 1.0.0 across affected packages: github.com/netlify/gotrue.
What version fixes GHSA-433w-mm6h-rv9p?
Upgrading to 1.0.0 (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.0. Upgrade your dependency to 1.0.0 or later.
What CWE is associated with GHSA-433w-mm6h-rv9p?
GHSA-433w-mm6h-rv9p is classified under General Security Weakness.
How can I check Go dependencies for GHSA-433w-mm6h-rv9p?
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-433w-mm6h-rv9p",
  "modified" : "2021-05-21T20:47:30Z",
  "published" : "2021-06-23T17:29:06Z",
  "aliases" : [ ],
  "summary" : "Auth bypass in SAML provider",
  "details" : "### Impact\n\nThe following vulnerabilities have been disclosed, which impact users leveraging the SAML auth provider:\n\n- [`goxmldsig` - Signature Validation Bypass](https://github.com/russellhaering/goxmldsig/security/advisories/GHSA-q547-gmf8-8jr7)\n- [`gosaml2` - Authentication Bypass](https://github.com/russellhaering/gosaml2/security/advisories/GHSA-xhqq-x44f-9fgg)\n\n### Patches\n\n[Patch available](https://github.com/netlify/gotrue/pull/274)\n\nPlease upgrade to v1.0.0 or commit hash `a2b4dd6bc4ef7562d1df044098b303f564eefa90`\n\n### Workarounds\n\nNo known workarounds.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [gotrue](https://github.com/netlify/gotrue/issues)\n* Email us at [security@netlify.com](mailto:security@netlify.com)",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/netlify/gotrue"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/netlify/gotrue/security/advisories/GHSA-433w-mm6h-rv9p"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-21T20:47:30Z",
    "nvd_published_at" : null
  }
}