CVE-2026-57495: CWE-306: Missing Authentication for Critical Function in agenticmail @agenticmail/core
CVE-2026-57495 is a high-severity vulnerability in the agenticmail project affecting multiple packages including @agenticmail/core. Prior to fixed versions, two inbound-mail handlers perform privileged actions without verifying the sender's identity. This allows an external attacker to send emails that resume an operator's AI agent session with elevated permissions, embedding attacker-controlled content directly into the agent's prompt. Fixed versions have been released for @agenticmail/claudecode, @agenticmail/codex, @agenticmail/core, and @agenticmail/openclaw.
AI Analysis
Technical Summary
The vulnerability arises from missing authentication checks in two inbound-mail handlers in agenticmail packages prior to specific versions. The critical issue is that external emails routed to the bridge inbox cause the dispatcher to resume the operator's Claude Code session with 'permissionMode: bypassPermissions' without verifying the sender is the operator. This results in an indirect prompt injection into a fully privileged AI agent running as the operator's OAuth identity, potentially allowing attacker-controlled input to influence privileged agent actions. A sibling handler correctly gates operator-reply emails, but the higher-privilege bridge-wake path lacks this protection. Fixed versions are @agenticmail/claudecode 0.2.39, @agenticmail/codex 0.1.33, @agenticmail/core 0.9.43, and @agenticmail/openclaw 0.5.71.
Potential Impact
An attacker can send specially crafted emails that cause a privileged AI agent session to resume with elevated permissions, embedding attacker-controlled content into the agent's prompt. This can lead to unauthorized execution of privileged actions under the operator's identity, potentially compromising the operator's environment and data. The vulnerability has a CVSS 4.0 score of 8.2 (high severity), indicating significant risk if exploited.
Mitigation Recommendations
Fixed versions have been released for the affected packages: @agenticmail/claudecode 0.2.39, @agenticmail/codex 0.1.33, @agenticmail/core 0.9.43, and @agenticmail/openclaw 0.5.71. Users should upgrade to these versions or later to remediate the vulnerability. Patch status is not explicitly confirmed in the advisory, but the presence of fixed versions indicates an official fix is available. No alternative mitigations are specified.
CVE-2026-57495: CWE-306: Missing Authentication for Critical Function in agenticmail @agenticmail/core
Description
CVE-2026-57495 is a high-severity vulnerability in the agenticmail project affecting multiple packages including @agenticmail/core. Prior to fixed versions, two inbound-mail handlers perform privileged actions without verifying the sender's identity. This allows an external attacker to send emails that resume an operator's AI agent session with elevated permissions, embedding attacker-controlled content directly into the agent's prompt. Fixed versions have been released for @agenticmail/claudecode, @agenticmail/codex, @agenticmail/core, and @agenticmail/openclaw.
CVSS v4.0
Score 8.2high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from missing authentication checks in two inbound-mail handlers in agenticmail packages prior to specific versions. The critical issue is that external emails routed to the bridge inbox cause the dispatcher to resume the operator's Claude Code session with 'permissionMode: bypassPermissions' without verifying the sender is the operator. This results in an indirect prompt injection into a fully privileged AI agent running as the operator's OAuth identity, potentially allowing attacker-controlled input to influence privileged agent actions. A sibling handler correctly gates operator-reply emails, but the higher-privilege bridge-wake path lacks this protection. Fixed versions are @agenticmail/claudecode 0.2.39, @agenticmail/codex 0.1.33, @agenticmail/core 0.9.43, and @agenticmail/openclaw 0.5.71.
Potential Impact
An attacker can send specially crafted emails that cause a privileged AI agent session to resume with elevated permissions, embedding attacker-controlled content into the agent's prompt. This can lead to unauthorized execution of privileged actions under the operator's identity, potentially compromising the operator's environment and data. The vulnerability has a CVSS 4.0 score of 8.2 (high severity), indicating significant risk if exploited.
Mitigation Recommendations
Fixed versions have been released for the affected packages: @agenticmail/claudecode 0.2.39, @agenticmail/codex 0.1.33, @agenticmail/core 0.9.43, and @agenticmail/openclaw 0.5.71. Users should upgrade to these versions or later to remediate the vulnerability. Patch status is not explicitly confirmed in the advisory, but the presence of fixed versions indicates an official fix is available. No alternative mitigations are specified.
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/20/2026, 22:26:46 UTC
Last updated: 07/21/2026, 09:01:59 UTC
Views: 16
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.