CVE-2026-57495: CWE-306: Missing Authentication for Critical Function in agenticmail @agenticmail/core
CVE-2026-57495 is a high-severity vulnerability in multiple @agenticmail packages prior to specific versions. It involves missing authentication for critical functions in inbound-mail handlers, allowing an external email to resume a privileged AI agent session with elevated permissions. This leads to indirect prompt injection with attacker-controlled email fields embedded verbatim into the agent's prompt, potentially enabling unauthorized actions under the operator's OAuth identity. Fixed versions are 0.2.39 for @agenticmail/claudecode, 0.1.33 for @agenticmail/codex, 0.9.43 for @agenticmail/core, and 0.5.71 for @agenticmail/openclaw.
AI Analysis
Technical Summary
The vulnerability CVE-2026-57495 affects several @agenticmail packages before specified versions. Two inbound-mail handlers perform privileged actions without verifying the sender's identity, unlike a sibling handler that correctly gates operator replies. The more impactful handler allows any external email routed to the bridge inbox to resume the operator's Claude Code session with 'permissionMode: bypassPermissions'. This embeds attacker-controlled 'from', 'subject', and 'preview' fields directly into the prompt read by a fully privileged AI agent running as the operator's OAuth identity. This constitutes an indirect prompt injection leading to unauthorized execution of privileged operations. The issue is fixed in versions 0.2.39 (@agenticmail/claudecode), 0.1.33 (@agenticmail/codex), 0.9.43 (@agenticmail/core), and 0.5.71 (@agenticmail/openclaw).
Potential Impact
An attacker can send an external email that triggers resumption of a privileged AI agent session with elevated permissions, embedding attacker-controlled content into the agent's prompt. This can lead to unauthorized execution of commands or actions with the operator's OAuth identity, potentially compromising confidentiality, integrity, and availability of the operator's environment. The vulnerability is rated high severity with a CVSS 4.0 score of 8.2, indicating significant risk if exploited.
Mitigation Recommendations
Fixed versions are available: upgrade to @agenticmail/claudecode 0.2.39 or later, @agenticmail/codex 0.1.33 or later, @agenticmail/core 0.9.43 or later, and @agenticmail/openclaw 0.5.71 or later. No vendor advisory content is provided to indicate alternative mitigations or temporary fixes. Patch status is not explicitly confirmed but the description states these versions contain the fix. Users should upgrade to these versions to remediate the vulnerability.
CVE-2026-57495: CWE-306: Missing Authentication for Critical Function in agenticmail @agenticmail/core
Description
CVE-2026-57495 is a high-severity vulnerability in multiple @agenticmail packages prior to specific versions. It involves missing authentication for critical functions in inbound-mail handlers, allowing an external email to resume a privileged AI agent session with elevated permissions. This leads to indirect prompt injection with attacker-controlled email fields embedded verbatim into the agent's prompt, potentially enabling unauthorized actions under the operator's OAuth identity. Fixed versions are 0.2.39 for @agenticmail/claudecode, 0.1.33 for @agenticmail/codex, 0.9.43 for @agenticmail/core, and 0.5.71 for @agenticmail/openclaw.
CVSS v4.0
Score 8.2high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-57495 affects several @agenticmail packages before specified versions. Two inbound-mail handlers perform privileged actions without verifying the sender's identity, unlike a sibling handler that correctly gates operator replies. The more impactful handler allows any external email routed to the bridge inbox to resume the operator's Claude Code session with 'permissionMode: bypassPermissions'. This embeds attacker-controlled 'from', 'subject', and 'preview' fields directly into the prompt read by a fully privileged AI agent running as the operator's OAuth identity. This constitutes an indirect prompt injection leading to unauthorized execution of privileged operations. The issue is fixed in versions 0.2.39 (@agenticmail/claudecode), 0.1.33 (@agenticmail/codex), 0.9.43 (@agenticmail/core), and 0.5.71 (@agenticmail/openclaw).
Potential Impact
An attacker can send an external email that triggers resumption of a privileged AI agent session with elevated permissions, embedding attacker-controlled content into the agent's prompt. This can lead to unauthorized execution of commands or actions with the operator's OAuth identity, potentially compromising confidentiality, integrity, and availability of the operator's environment. The vulnerability is rated high severity with a CVSS 4.0 score of 8.2, indicating significant risk if exploited.
Mitigation Recommendations
Fixed versions are available: upgrade to @agenticmail/claudecode 0.2.39 or later, @agenticmail/codex 0.1.33 or later, @agenticmail/core 0.9.43 or later, and @agenticmail/openclaw 0.5.71 or later. No vendor advisory content is provided to indicate alternative mitigations or temporary fixes. Patch status is not explicitly confirmed but the description states these versions contain the fix. Users should upgrade to these versions to remediate the vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-24T14:53:40.111Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5e9d432a4a8d5989d506f9
Added to database: 07/20/2026, 22:12:19 UTC
Last enriched: 07/30/2026, 11:38:32 UTC
Last updated: 09/03/2026, 10:52:10 UTC
Views: 102
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.