OpenFGA: OIDC audience validation skipped when --authn-oidc-audience is unset
Description
Description
OpenFGA's OIDC authenticator skipped JWT audience (aud) validation when no audience was configured. In deployments where one identity provider issues tokens for multiple services, a token minted for an unrelated service could authenticate to OpenFGA.
Preconditions
This applies if the following preconditions are met:
1. You run OpenFGA with authn.method set to oidc. 2. You configured authn.oidc.issuer but did not set authn.oidc.audience (--authn-oidc-audience / OPENFGA_AUTHN_OIDC_AUDIENCE).
Fix
Upgrade to OpenFGA 1.18.0 or greater. OpenFGA now refuses to start in oidc mode unless both authn.oidc.issuer and authn.oidc.audience are set, and the aud claim is always validated.
Acknowledgements
OpenFGA would like to thank https://github.com/0xVijay for the report.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/openfga/openfgaGo | < 1.18.0 | 1.18.0 |
Affected products
7- osv-coords6 versionspkg:apk/chainguard/grafana-12.3pkg:apk/chainguard/grafana-12.4pkg:apk/chainguard/grafana-fips-12.4pkg:apk/chainguard/grafana-fips-13.0pkg:apk/wolfi/grafana-12.3pkg:apk/wolfi/grafana-12.4
< 12.3.8-r2+ 5 more
- (no CPE)range: < 12.3.8-r2
- (no CPE)range: < 12.4.5-r2
- (no CPE)range: < 12.4.5-r2
- (no CPE)range: < 13.0.2-r2
- (no CPE)range: < 12.3.8-r2
- (no CPE)range: < 12.4.5-r2
Patches
Vulnerability mechanics
References
2News mentions
0No linked articles in our index yet.