CRITICAL · CVSS 3.1 10.0 EPSS 0.7% · 46th percentile CWE-134CWE-200

CVE-2026-53998: Phoenix: Format String Injection in applyChatTemplate

Published 2026-11-17 · Updated 2026-11-17 · Also known as GHSA-gfv3-m769-5xm3

Summary

A format string injection vulnerability exists in the applyChatTemplate GraphQL endpoint of Phoenix, allowing unauthenticated or low-privileged attackers to read server-side secrets. Engineering and security teams using the arize-phoenix package must upgrade immediately.

Who is affected

Unauthenticated attackers on default installations or any authenticated account on auth-enabled deployments can extract server-side environment variables, cryptographic secrets, and internal module attributes from the API response. Successful exploitation discloses the full server os.environ including PHOENIX_SECRET, enabling attackers to forge admin-level session tokens and decrypt stored credentials.

Exploitability

The vulnerability has a CVSS base score of 10.0 (CRITICAL) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L, indicating network accessibility with low complexity, no privileges, and no user interaction required with changed scope. The EPSS score is 0.004 (percentile 0.299), and CISA Known Exploited Vulnerabilities status is no.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI arize-phoenix >= 13.0.0, < 15.7.0 15.7.0 python -m pip install 'arize-phoenix>=15.7.0'

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityLow

FAQ

What components are affected by this vulnerability?

The applyChatTemplate GraphQL query endpoint, the FStringTemplateFormatter._format() template rendering function, and the DotDict.__getattr__() attribute access control are affected.

Is authentication required to exploit this vulnerability?

No authentication is required on default Phoenix installations. On auth-enabled deployments, any account regardless of privilege level is sufficient to exploit it.

What is the fixed version for arize-phoenix?

The vulnerability is fixed in arize-phoenix version 15.7.0.

Original advisory description
- Summary A format string injection vulnerability in the applyChatTemplate GraphQL endpoint allows an attacker to read server-side environment variables, cryptographic secrets, and internal module attributes directly from the API response. On default Phoenix installations where authentication is disabled the endpoint is reachable with no credentials. On auth-enabled deployments, any account regardless of privilege level is sufficient to exploit it. - Impact Server filesystem paths, loaded Python module names, and internal configuration constants are fully disclosed, an attacker with network access can read the full server `os.environ` including the admin credentials hardcoded in `phoenix.auth`. Successful exploitation allows an attacker to extract PHOENIX_SECRET, the master key used to sign all JWTs and derive the Fernet encryption key protecting stored credentials (LLM API keys, OAuth tokens). With this key, an attacker can forge admin-level session tokens and decrypt all secrets stored in the database. - Affected Versions First vulnerable release: arize-phoenix-v13.0.0 (2026-02-13) Latest confirmed vulnerable release: arize-phoenix-v14.8.0 (2026-04-17) - Affected Component `applyChatTemplate` GraphQL query endpoint (`src/phoenix/server/api/queries.py:1638`) `FStringTemplateFormatter._format()` template rendering function (`src/phoenix/utilities/template_formatters.py:272`) `DotDict.__getattr__()` ineffective attribute access control (`src/phoenix/utilities/template_formatters.py:90`) - Proof of Concept payload as txt with an image performing the exploit below. <img width="1574" height="766" alt="PoC-Phoenix" src="https://github.com/user-attachments/assets/55f56325-4c26-4c96-8aa9-89e44ff1ba53" /> - Payload: ``` { "query": "query($t: PromptChatTemplateInput!, $o: PromptTemplateOptions!) { applyChatTemplate(template: $t, templateOptions: $o) { messages { content { ... on TextContentPart { text { text } } } } } }", "variables": { "t": { "messages": [{ "role": "USER", "content": [{ "text": { "text": "{u.__class__.__bases__[0].__init__.__globals__[_os].environ}" } }] }] }, "o": { "format": "F_STRING", "variables": { "u": { "x": 1 } } } } } ``` - Suggested Fix Three mitigations are recommended in combination: restrict attribute traversal at the Formatter.get_field() level (not the wrapper class), add IsAuthenticated permission to the applyChatTemplate resolver, and limit F_STRING format to trusted system-defined templates only. Best Regards, Omar

References

Source records: GHSA-gfv3-m769-5xm3 (OSV.dev) · EPSS by FIRST, 2026-11-26.