Know every vulnerabilitybefore it knows you.
DevGuard continuously monitors your dependencies and alerts you when CVEs like this one affect your stack — with real-time threat intelligence built for developers.
GHSA-gqqj-85qm-8qhf
No affected components available
Summary
A Paperclip-managed codex_local runtime was able to access and use a Gmail connector that I had connected in the ChatGPT/OpenAI apps UI, even though I had not explicitly connected Gmail inside Paperclip or separately inside Codex.
In my environment this enabled mailbox access and a real outbound email to be sent from my Gmail account. After I manually intervened to stop the workflow, follow-up retraction messages were also sent, confirming repeated outward write/send capability.
This appears to be a trust-boundary failure between Paperclip-managed Codex execution and inherited OpenAI app connectors, amplified by dangerous-by-default runtime settings.
Details
Successful runtime calls include:
mcp__codex_apps__gmail_get_profilemcp__codex_apps__gmail_search_emailsmcp__codex_apps__gmail_send_email
The connected Gmail profile resolved to my personal account.
Inside the Paperclip-managed codex-home, I also found cached OpenAI curated connector state for Gmail under a path like:
codex-home/plugins/cache/openai-curated/gmail/.../.app.json
This strongly suggests that the runtime had access to an already connected OpenAI apps surface rather than a Paperclip-specific Gmail integration that I intentionally configured.
Separately, in the installed Paperclip code, codex_local defaults dangerouslyBypassApprovalsAndSandbox to true, and the server-side agent creation path applies that default when the flag is omitted. In practice, that makes this boundary failure much more dangerous because a newly created codex_local agent can operate with approvals and sandbox bypassed by default.
The key issue is this: I had connected Gmail only in the ChatGPT/OpenAI apps UI. I had not intentionally connected Gmail inside Paperclip or separately inside Codex. Despite that, the Paperclip-managed codex_local runtime was able to use Gmail read/write actions.
PoC
Environment:
- self-hosted Paperclip instance using
codex_local - Gmail connected in the ChatGPT/OpenAI apps UI
- no explicit Gmail connection configured inside Paperclip for this test
codex_localagent created and run with default behavior
Observed reproduction path:
- Connect Gmail in the ChatGPT/OpenAI apps UI.
- Create or run a Paperclip
codex_localagent. - Execute a task that inspects mailbox state or performs outward communication.
- Observe successful Gmail connector calls such as:
mcp__codex_apps__gmail_get_profilemcp__codex_apps__gmail_search_emailsmcp__codex_apps__gmail_send_email
- Observe that the connected profile resolves to the ChatGPT/OpenAI-connected Gmail account and that mailbox reads and real sends are possible.
Private evidence available on request:
- successful
get_profile/search/sendlogs - Paperclip-managed
codex-homeGmail connector cache path(s) - screenshot showing Gmail write-capable actions such as
send_email,send_draft, andupdate_draftexposed in the connected-app UI - incident timeline showing that a real outbound email was sent
- recipient organizations, timestamps, message IDs, and sanitized evidence for both the original outbound email and the subsequent retraction messages
Impact
This was not only theoretical in my environment. It resulted in:
- mailbox identity disclosure
- mailbox search / thread access
- a real outbound email being sent from a personal connected Gmail account to an external third party
- follow-up retraction messages being sent after manual intervention, confirming repeated outward write/send capability
From an operator/security perspective, connecting Gmail in the ChatGPT/OpenAI apps UI should not automatically make that connector available to a Paperclip-managed local agent runtime, especially not for write/send actions.
One or more of the following:
- no inherited OpenAI app connectors by default in Paperclip-managed
codex_localruns - send/write connectors blocked by default
- explicit Paperclip-side opt-in before outward actions
- auditable approval and provenance for connector-mediated actions
- safer defaults, including
dangerouslyBypassApprovalsAndSandbox = false
The vulnerability can be exploited over the network without needing physical access. It is easy for an attacker to exploit this vulnerability. An attacker needs basic access or low-level privileges. The attacker needs the user to perform some action, like clicking a link. The vulnerability can affect other systems as well, not just the initial system. There is a high impact on the confidentiality of the information. There is a high impact on the integrity of the data.
Exploitation activity has been observed. Apply available patches or mitigations urgently.
Probability that this vulnerability will be exploited in the wild within the next 30 days.
We did not find any exploit available. Neither in GitHub repositories nor in the Exploit-Database.
Browse More
Continuously monitor your dependencies and get alerted when vulnerabilities like this one affect your stack.
Checkout DevGuard