CVE-2026-40293: OpenFGA: Unauthenticated playground endpoint discloses preshared API key in HTML response
Description When OpenFGA is configured to use preshared-key authentication with the built-in playground enabled, the local server includes the preshared API key in the HTML response of the /playground endpoint. The /playground endpoint is enabled by default and does not require authentication. It is intended for local development and debugging and is not designed to be exposed to production environments.
Published Apr 8, 2026 · Updated Apr 24, 2026
Affected packages
github.com/openfga/openfga
- Ecosystem
- Go
- Affected
- >= 0.1.4, <= 1.13.1
- Fixed in
- 1.14.0
- Check
go list -m github.com/openfga/openfga
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Description
When OpenFGA is configured to use preshared-key authentication with the built-in playground enabled, the local server includes the preshared API key in the HTML response of the /playground endpoint. The /playground endpoint is enabled by default and does not require authentication. It is intended for local development and debugging and is not designed to be exposed to production environments.
Am I Affected?
You are affected if you meet each of the following preconditions:
- You are running OpenFGA with --authn-method preshared, and
- The playground is enabled, and
- The playground endpoint is accessible beyond localhost or trusted networks.
Fix
Upgrade to OpenFGA v1.14.0, or disable the playground by running ./openfga run --playground-enabled=false.
Credited to bugbunny-research.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-61709
OpenFGA: 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
medium5.3Sep 16, 2026CVE-2026-55689
OpenFGA: OIDC audience validation skipped when --authn-oidc-audience is unset
medium6.8Jun 19, 2026CVE-2026-55170
OpenFGA Improper Policy Enforcement
low5.4Jun 18, 2026CVE-2026-48096
OpenFGA has cache-key delimiter injection in shared-iterator and v2 iterator that caches enables intra-store authorization-decision poisoning
medium5.0Jun 11, 2026CVE-2026-41131
OpenFGA has Improper Policy Enforcement
medium5.0Apr 22, 2026CVE-2026-34972
OpenFGA's BatchCheck within-request deduplication produces incorrect authorization decisions via list-value cache-key collision
medium5.0Apr 7, 2026
