{"id":"CVE-2026-57495","state":"PUBLISHED","title":"AgenticMail: Unauthenticated inbound mail triggers bypassPermissions resume of the operator's Claude Code session (bridge-wake)","description":"AgenticMail gives AI agents real email addresses and phone numbers. In @agenticmail/claudecode prior to version 0.2.39, @agenticmail/codex prior to version 0.1.33, @agenticmail/core prior to version 0.9.43, and @agenticmail/openclaw prior to version 0.5.71, two inbound-mail handlers act on a privileged effect without verifying that the sender is the operator, while a sibling handler in the same repo does. The higher-impact one: any external email routed to the bridge inbox causes the dispatcher to resume the operator's Claude Code session with `permissionMode: 'bypassPermissions'`, embedding the attacker-controlled `from`/`subject`/`preview` verbatim into the prompt the resumed agent reads — an indirect prompt injection into a fully-privileged agent (Bash/Write/Edit/WebFetch + the agenticmail MCP toolbelt) running as the operator's OAuth identity. The sibling operator-query email-reply hook gates the same untrusted-From provenance with `isOperatorReplySender(replyFrom, config.operatorEmail)` (fail-closed); the bridge-wake path — a strictly higher-privilege effect — has no equivalent. @agenticmail/claudecode 0.2.39, @agenticmail/codex 0.1.33, @agenticmail/core 0.9.43, and @agenticmail/openclaw 0.5.71 contain a fix.","publishedAt":"2026-07-20T22:09:54.001Z","updatedAt":"2026-07-22T13:53:49.201Z","severity":{"score":8.2,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["agenticmail @agenticmail/core","agenticmail @agenticmail/claudecode","agenticmail @agenticmail/codex","agenticmail @agenticmail/openclaw"],"affected":[{"vendor":"agenticmail","product":"@agenticmail/core","versions":[{"version":"< 0.9.43","status":"affected"}]},{"vendor":"agenticmail","product":"@agenticmail/claudecode","versions":[{"version":"< 0.2.39","status":"affected"}]},{"vendor":"agenticmail","product":"@agenticmail/codex","versions":[{"version":"< 0.1.33","status":"affected"}]},{"vendor":"agenticmail","product":"@agenticmail/openclaw","versions":[{"version":"< 0.5.71","status":"affected"}]}],"references":["https://github.com/agenticmail/agenticmail/security/advisories/GHSA-fq4x-789w-jg5h"],"weaknesses":["CWE-306"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/57xxx/CVE-2026-57495.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-57495","state":"PUBLISHED","datePublished":"2026-07-20T22:09:54.001Z","dateUpdated":"2026-07-22T13:53:49.201Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-24T14:53:40.111Z"},"containers":{"cna":{"title":"AgenticMail: Unauthenticated inbound mail triggers bypassPermissions resume of the operator's Claude Code session (bridge-wake)","descriptions":[{"lang":"en","value":"AgenticMail gives AI agents real email addresses and phone numbers. In @agenticmail/claudecode prior to version 0.2.39, @agenticmail/codex prior to version 0.1.33, @agenticmail/core prior to version 0.9.43, and @agenticmail/openclaw prior to version 0.5.71, two inbound-mail handlers act on a privileged effect without verifying that the sender is the operator, while a sibling handler in the same repo does. The higher-impact one: any external email routed to the bridge inbox causes the dispatcher to resume the operator's Claude Code session with `permissionMode: 'bypassPermissions'`, embedding the attacker-controlled `from`/`subject`/`preview` verbatim into the prompt the resumed agent reads — an indirect prompt injection into a fully-privileged agent (Bash/Write/Edit/WebFetch + the agenticmail MCP toolbelt) running as the operator's OAuth identity. The sibling operator-query email-reply hook gates the same untrusted-From provenance with `isOperatorReplySender(replyFrom, config.operatorEmail)` (fail-closed); the bridge-wake path — a strictly higher-privilege effect — has no equivalent. @agenticmail/claudecode 0.2.39, @agenticmail/codex 0.1.33, @agenticmail/core 0.9.43, and @agenticmail/openclaw 0.5.71 contain a fix."}],"affected":[{"vendor":"agenticmail","product":"@agenticmail/core","versions":[{"version":"< 0.9.43","status":"affected"}]},{"vendor":"agenticmail","product":"@agenticmail/claudecode","versions":[{"version":"< 0.2.39","status":"affected"}]},{"vendor":"agenticmail","product":"@agenticmail/codex","versions":[{"version":"< 0.1.33","status":"affected"}]},{"vendor":"agenticmail","product":"@agenticmail/openclaw","versions":[{"version":"< 0.5.71","status":"affected"}]}],"references":[{"url":"https://github.com/agenticmail/agenticmail/security/advisories/GHSA-fq4x-789w-jg5h","name":"https://github.com/agenticmail/agenticmail/security/advisories/GHSA-fq4x-789w-jg5h","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.2,"baseSeverity":"HIGH","vectorString":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-306","lang":"en","description":"CWE-306: Missing Authentication for Critical Function","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-20T22:09:54.001Z"},"source":{"advisory":"GHSA-fq4x-789w-jg5h","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-22T13:53:32.879212Z","id":"CVE-2026-57495","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-22T13:53:49.201Z"}}]}}}