CVE-2026-40293: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-40293 is an information disclosure vulnerability in OpenFGA, an open-source authorization/permission engine, where the built-in /playground endpoint exposes preshared API keys in its HTML response. It affects OpenFGA versions 0.1.4 through 1.13.1 when configured with preshared-key authentication and the playground enabled. The vulnerability was published on April 17, 2026, with the security advisory authored by justincoh and credited to reporter bugbunny-research. It carries a CVSS v3.1 base score of 6.5 (Medium) (GitHub Advisory).

Technical details

The root cause is classified as CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor): when OpenFGA is started with --authn-method preshared, the server embeds the preshared API key directly into the HTML response served by the /playground endpoint (GitHub Advisory). The /playground endpoint is enabled by default and requires no authentication, meaning any network-accessible attacker can retrieve the key with a simple unauthenticated HTTP GET request. Exploitation requires three preconditions: preshared-key authentication must be configured, the playground must be enabled (default), and the /playground endpoint must be reachable beyond localhost or trusted networks. As of v1.14.0, the playground no longer supports preshared-key authentication — the server will refuse to start if this combination is detected (OpenFGA v1.14.0 Release).

Impact

An unauthenticated remote attacker who can reach the /playground endpoint can retrieve the preshared API key from the HTML response without any user interaction. With this key, the attacker can impersonate legitimate API clients, bypass authorization controls enforced by the OpenFGA instance, and gain unauthorized access to all resources and permission checks managed by that server. This effectively undermines the entire authorization layer for any application relying on the compromised OpenFGA instance (GitHub Advisory).

Exploitability

There is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation at this time (Feedly). The EPSS score is approximately 0.056%, reflecting a low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Despite the low exploitation evidence, the attack requires no authentication and no user interaction, making it trivially exploitable for any attacker with network access to an exposed playground endpoint.

Exploitation steps

  1. Reconnaissance: Scan for internet-facing OpenFGA instances using tools like Shodan or Censys, searching for services exposing port 8080 (default OpenFGA port) or the /playground path.
  2. Identify vulnerable endpoint: Send an unauthenticated HTTP GET request to http://<target>:<port>/playground and check whether the endpoint returns an HTML page (indicating the playground is enabled).
  3. Extract the API key: Parse the HTML response body for the embedded preshared API key — it will appear in the page source as a JavaScript variable or configuration value injected by the server.
  4. Authenticate as a legitimate client: Use the extracted preshared key in the Authorization header (e.g., Authorization: Bearer <extracted-key>) to make authenticated API calls to the OpenFGA server.
  5. Abuse authorization controls: Issue OpenFGA API requests (e.g., Check, Write, ListObjects) using the stolen key to query or manipulate authorization policies and access protected resources (GitHub Advisory).

Indicators of compromise

  • Network: Unexpected or repeated unauthenticated HTTP GET requests to the /playground endpoint from external or untrusted IP addresses; outbound connections from the OpenFGA server to unknown hosts following playground access.
  • Logs: OpenFGA access logs showing GET requests to /playground from IPs outside localhost or trusted subnets; subsequent authenticated API calls (e.g., Check, Write) from IP addresses that previously accessed /playground but are not recognized application clients.
  • Behavioral: API calls using the preshared key originating from unexpected source IPs or at unusual times; sudden increase in authorization check or write operations that do not correspond to normal application traffic.

Mitigation and workarounds

The primary remediation is to upgrade to OpenFGA v1.14.0, which removes support for running the playground with preshared-key authentication — the server will now refuse to start if this combination is detected (OpenFGA v1.14.0 Release). As an immediate workaround for those unable to upgrade, disable the playground by launching OpenFGA with ./openfga run --playground-enabled=false (GitHub Advisory). Additionally, ensure the /playground endpoint is never exposed beyond localhost or trusted internal networks via firewall rules or network segmentation. After patching, rotate any preshared API keys that may have been exposed to invalidate potentially compromised credentials and audit access logs for unauthorized access.

Community reactions

The vulnerability was reported by security researcher bugbunny-research and published by the OpenFGA maintainer justincoh via GitHub Security Advisories on April 8, 2026 (GitHub Advisory). A brief post was noted on Bluesky via the CVE tracking account shortly after disclosure. Coverage has been limited to automated vulnerability databases and a technical write-up on infinitsec.net, reflecting the moderate severity and narrow exploitation conditions of the issue.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Unknown

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-123634CRITICAL9.2
  • NGINX logoNGINX
  • nginx:1.26::nginx
NoYesNov 18, 2026
CVE-2026-123633CRITICAL9.2
  • NGINX logoNGINX
  • nginx-mod-stream-geoip-debuginfo
NoYesNov 18, 2026
CVE-2026-123007CRITICAL9.2
  • NGINX logoNGINX
  • openresty
NoYesNov 18, 2026
CVE-2026-125283MEDIUM6.9
  • NGINX logoNGINX
  • nginx:1.24::nginx-filesystem
NoYesNov 18, 2026
CVE-2026-123640MEDIUM6.9
  • NGINX logoNGINX
  • nginx:1.24::nginx-mod-stream
NoYesNov 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management