Phoenix AI Observability Platform – GraphQL Template Injection (CVE-2026-53998)
Overview
Phoenix is an AI observability and evaluation platform. Between versions 13.0.0 and 15.7.0 the applyChatTemplate GraphQL query accepted attacker-controlled f-string templates, and the underlying DotDict implementation allowed traversal into Python private attributes. The endpoint is unauthenticated on default installations and reachable by any account when authentication is enabled.
Technical Details
The vulnerability arises because the applyChatTemplate query passes user-supplied f-string templates to FStringTemplateFormatter._format, while DotDict.__getattr__ does not block access to special attributes such as __class__, __init__, and __globals__. An attacker can craft a field that traverses these internals to read process environment variables, including PHOENIX_SECRET, and inspect internal module state. The flaw is exploitable without authentication on default deployments and by any authenticated user when auth is enabled.
Impact
An attacker who exploits this flaw can obtain sensitive configuration data, notably the PHOENIX_SECRET environment variable. Possession of this secret allows forging of administrative session tokens and decryption of credentials that rely on keys derived from the secret, potentially leading to full account takeover and credential compromise. All deployments of the affected versions are exposed.
Recommended Actions
- Patch to version 15.7.0 or later.
- Restrict network access to the GraphQL endpoint to trusted IP ranges.
- Disable the applyChatTemplate query if it is not required.
- Monitor GraphQL query logs for usage of f-string templates or unexpected fields.
- Implement alerts for accesses that attempt to read __class__, __init__, or __globals__ attributes.
Detection
Review GraphQL server logs for queries that include f-string syntax or reference private Python attributes such as __class__, __init__, or __globals__. Enable detailed request logging for the applyChatTemplate endpoint and set up alerts for any occurrence of environment variable names (e.g., PHOENIX_SECRET). Correlate these events with authentication logs to identify unauthorized or anomalous access.