GHSA-m3q4-7qmj-657m
OpenFGA Authorization Bypass
Quick fix
GHSA-m3q4-7qmj-657m — github.com/openfga/openfga: upgrade to the fixed version with the command below.
go get github.com/openfga/openfga@v0.3.1Details
### Overview During our internal security assessment, it was discovered that OpenFGA versions v0.3.0 is vulnerable to authorization bypass under certain conditions.
### Am I Affected? You are affected by this vulnerability if **all** of the following applies:
1. You are using OpenFGA v0.3.0 2. You created a model using modeling language v1.1 that applies a type restriction to an object e.g. `define viewer: [user]` 3. You created tuples based on the aforementioned model, e.g. `document:1#viewer@user:jon` 4. You updated the previous model by adding a new type and replacing the previous restriction with the newly added type e.g. `define viewer: [employee]` 5. You use the tuples created against the first model (step 3) and issue checks against the updated model e.g. `user=user:jon, relation=viewer, object:document:1`
### How to fix that? Upgrade to version v0.3.1
### Backward Compatibility This update is backward compatible.
Are you affected?
Enter the version of the package you're using.
Affected packages
0.3.0Fixed in: 0.3.1go get github.com/openfga/openfga@v0.3.1References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:golang/github.com/openfga/openfga"]}'