Authentication Bypass by Primary Weakness Affecting github.com/openfga/openfga/internal/graph package, versions >=1.3.6 <1.8.11


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMOPENFGAOPENFGAINTERNALGRAPH-10116985
  • published12 May 2025
  • disclosed30 Apr 2025
  • creditAvinash Singh

Introduced: 30 Apr 2025

NewCVE-2025-46331  (opens in a new tab)
CWE-305  (opens in a new tab)

How to fix?

Upgrade github.com/openfga/openfga/internal/graph to version 1.8.11 or higher.

Overview

Affected versions of this package are vulnerable to Authentication Bypass by Primary Weakness due to improper handling of certain Check and ListObject calls. An attacker can bypass authorization controls by exploiting these calls.

Note:

This is only exploitable if Check API or ListObjects are called with an authorization model that has tuple cycle and 'checkQueryCache' env variable is enabled.

References

CVSS Base Scores

version 4.0
version 3.1