MediumGHSA-vj4m-83m8-xpw5CVE-2022-39341GO-2022-1080

OpenFGA Authorization Bypass via tupleset wildcard

Published 25 Oct 2022 · Updated 21 Aug 2024

Is your project on an affected github.com/openfga/openfga?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<0.2.4
Fixed in
0.2.4
Update to the fixed version for your release line, for example:go get github.com/openfga/openfga@v0.2.4

Details

Overview

During our internal security assessment, it was discovered that OpenFGA versions v0.2.3 and prior are vulnerable to authorization bypass under certain conditions.

Am I affected?

You are affected by this vulnerability if you are using openfga/openfga version v0.2.3 and you added a tuple with a wildcard (*) assigned to a tupleset relation (the right hand side of a ‘from’ statement).

How to fix that?

Upgrade to version v0.2.4.

Backward Compatibility

This update is not backward compatible with any authorization model that uses wildcard on a tupleset relation.

Is GHSA-vj4m-83m8-xpw5 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/openfga/openfga, and gives you the command that fixes it.

More advisories for github.com/openfga/openfga

  • LowCVE-2026-61709OpenFGA: ListUsers returns a deliberately-excluded user when a `but not` exclusion under a type-bound wildcard is intersected (`and`) with another relation that also grants that user in github.com/openfga/openfga · 28 Sept 2026
  • MediumCVE-2026-61709OpenFGA: ListUsers returns a deliberately-excluded user when a `but not` exclusion under a type-bound wildcard is intersected (`and`) with another relation that also grants that user · 16 Sept 2026
  • LowCVE-2026-55689OpenFGA: OIDC audience validation skipped when --authn-oidc-audience is unset in github.com/openfga/openfga · 25 Jun 2026
  • LowCVE-2026-34972OpenFGA's BatchCheck within-request deduplication produces incorrect authorization decisions via list-value cache-key collision in github.com/openfga/openfga · 25 Jun 2026
  • LowCVE-2026-55170OpenFGA Improper Policy Enforcement in github.com/openfga/openfga · 25 Jun 2026
  • LowCVE-2026-48096OpenFGA has cache-key delimiter injection in shared-iterator and v2 iterator that caches enables intra-store authorization-decision poisoning in github.com/openfga/openfga · 25 Jun 2026
All 53 advisories for github.com/openfga/openfga

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.