{"vuln_id":"CVE-2026-53998","aliases":["GHSA-gfv3-m769-5xm3"],"description":"arize-phoenix: Phoenix: Format String Injection in applyChatTemplate","published_at":"2026-11-16T19:50:41Z","modified_at":"2026-11-17T23:17:58.260000Z","first_seen_at":"2026-11-21T19:15:15.264585Z","severity":"critical","severity_source":"nvd","cvss_score":10.0,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","cwe":["CWE-134","CWE-200"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00553,"epss_percentile":0.47112,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-53998"},"matched_alias":null,"items":[{"id":10790,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-gfv3-m769-5xm3: Phoenix: Format String Injection in applyChatTemplate","summary":"Phoenix: Format String Injection in applyChatTemplate\n\n- 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\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- 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\n\nAffected: PyPI:arize-phoenix\n\nFixed in: 15.7.0\n\nReferences:\nhttps://github.com/Arize-ai/phoenix/security/advisories/GHSA-gfv3-m769-5xm3\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-53998\nhttps://github.com/Arize-ai/phoenix/pull/13197\nhttps://github.com/Arize-ai/phoenix/commit/e7224a685589f2ffae1fefcc68ff210bd6ad28b8\nhttps://github.com/Arize-ai/phoenix\nhttps://github.com/Arize-ai/phoenix/releases/tag/arize-phoenix-v15.7.0","url":"https://osv.dev/vulnerability/GHSA-gfv3-m769-5xm3","published_at":"2026-11-17T20:02:29Z","updated_at":"2026-11-17T20:15:05.695093Z","fetched_at":"2026-11-21T19:15:55.946177Z","severity":"critical","cvss_score":10.0,"epss":0.00553,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"arize-phoenix","vuln_id":"CVE-2026-53998","vuln_ids":["CVE-2026-53998","GHSA-GFV3-M769-5XM3"],"tags":["osv","pypi","fix-available"],"cluster_id":2368,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10790","html":"https://vulnwatch.ve1ve2.com/item/10790"}},{"id":2462,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-gfv3-m769-5xm3 / CVE-2026-53998: Phoenix: Format String Injection in applyChatTemplate","summary":"Phoenix: Format String Injection in applyChatTemplate\n\n- 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\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- 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\n\nAffected packages: pip:arize-phoenix\nPatched: arize-phoenix 15.7.0","url":"https://github.com/advisories/GHSA-gfv3-m769-5xm3","published_at":"2026-11-17T20:02:29Z","updated_at":"2026-11-17T20:02:30Z","fetched_at":"2026-11-21T19:15:18.416856Z","severity":"critical","cvss_score":10.0,"epss":0.00553,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"arize-phoenix","vuln_id":"CVE-2026-53998","vuln_ids":["CVE-2026-53998","GHSA-GFV3-M769-5XM3"],"tags":["ghsa","pip","CWE-134","CWE-200"],"cluster_id":2368,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2462","html":"https://vulnwatch.ve1ve2.com/item/2462"}},{"id":6261,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-53998: Phoenix is an AI observability and evaluation platform. From 13.0.0 until 15.7.0, the applyChatTemplate GraphQL query passed attacker-controlled F-string templ…","summary":"Phoenix is an AI observability and evaluation platform. From 13.0.0 until 15.7.0, the applyChatTemplate GraphQL query passed attacker-controlled F-string templates to FStringTemplateFormatter._format, while DotDict.__getattr__ did not prevent traversal through Python private attributes. A crafted field could traverse object internals such as __class__, __init__, and __globals__ to read process environment variables and internal module state. The endpoint is unauthenticated on default installations, and any account can reach it when authentication is enabled. Exposure of PHOENIX_SECRET can allow administrative session-token forgery and decryption of credentials protected by keys derived from that secret. This issue is fixed in version 15.7.0.\n\nReferences:\nhttps://github.com/Arize-ai/phoenix/commit/e7224a685589f2ffae1fefcc68ff210bd6ad28b8\nhttps://github.com/Arize-ai/phoenix/pull/13197\nhttps://github.com/Arize-ai/phoenix/releases/tag/arize-phoenix-v15.7.0\nhttps://github.com/Arize-ai/phoenix/security/advisories/GHSA-gfv3-m769-5xm3","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53998","published_at":"2026-11-16T20:19:06.807000Z","updated_at":"2026-11-17T23:17:58.260000Z","fetched_at":"2026-11-21T19:15:31.482035Z","severity":"critical","cvss_score":10.0,"epss":0.00553,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-53998","vuln_ids":["CVE-2026-53998","GHSA-GFV3-M769-5XM3"],"tags":["CWE-134","CWE-200"],"cluster_id":1397,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/6261","html":"https://vulnwatch.ve1ve2.com/item/6261"}},{"id":1687,"source":{"id":"redhat","name":"Red Hat Security Data API"},"title":"CVE-2026-53998: arize-phoenix: Phoenix: Format String Injection in applyChatTemplate","summary":"arize-phoenix: Phoenix: Format String Injection in applyChatTemplate","url":"https://access.redhat.com/security/cve/cve-2026-53998","published_at":"2026-11-16T19:50:41Z","updated_at":null,"fetched_at":"2026-11-21T19:15:08.894888Z","severity":"critical","cvss_score":10.0,"epss":0.00553,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"redhat","product":null,"vuln_id":"CVE-2026-53998","vuln_ids":["CVE-2026-53998","GHSA-GFV3-M769-5XM3"],"tags":["redhat"],"cluster_id":1397,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/1687","html":"https://vulnwatch.ve1ve2.com/item/1687"}}]}