{"answers":{"affected":"8 open source packages ship an affected version, including @agenticmail/claudecode, @agenticmail/codex and @agenticmail/core.","exploited":"There is no known exploitation of CVE-2026-57495 in the wild and no public exploit code.","fix":"Upgrade @agenticmail/claudecode to 0.2.39 or later.","what":"CVE-2026-57495 is a high-severity missing authorization vulnerability in @agenticmail/claudecode, published on 20 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-57495 and fix it if it is affected.\n\nWhat it is: CVE-2026-57495 is a high-severity missing authorization vulnerability in @agenticmail/claudecode, published on 20 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-57495 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @agenticmail/claudecode (npm): affected all versions; fixed in 0.2.39\n- @agenticmail/claudecode (npm): affected all versions; fixed in 0.2.39\n- @agenticmail/codex (npm): affected all versions; fixed in 0.1.33\n- @agenticmail/codex (npm): affected all versions; fixed in 0.1.33\n- @agenticmail/core (npm): affected all versions; fixed in 0.9.43\n- @agenticmail/core (npm): affected all versions; fixed in 0.9.43\n- @agenticmail/openclaw (npm): affected all versions; fixed in 0.5.71\n- @agenticmail/openclaw (npm): affected all versions; fixed in 0.5.71\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-57495/ (Markdown: https://insights.sbomify.com/CVE-2026-57495/index.md)","id":"CVE-2026-57495","markdown":"https://insights.sbomify.com/CVE-2026-57495/index.md","name":"CVE-2026-57495","record":{"aliases":["GHSA-fq4x-789w-jg5h"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"AgenticMail npm packages","requires_auth":"none","summary":"Unauthenticated inbound emails trigger privileged AI agent sessions with bypassed permissions, allowing attackers to execute arbitrary code via prompt injection.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.2,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"AgenticMail: Unauthenticated inbound mail triggers bypassPermissions resume of the operator's Claude Code session (bridge-wake)","id":"CVE-2026-57495","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":8,"n_references":1,"next":{"headline":"NetLicensing MCP Server: REST Path Traversal Bypasses Token Redaction","id":"CVE-2026-57496"},"packages":[{"ecosystem":"npm","fixed":["0.2.39"],"introduced":["0"],"last_affected":[],"package":"@agenticmail/claudecode","purl":null,"source":"GHSA-fq4x-789w-jg5h"},{"ecosystem":"npm","fixed":["0.2.39"],"introduced":["0"],"last_affected":[],"package":"@agenticmail/claudecode","purl":"pkg:npm/%40agenticmail/claudecode","source":"GHSA-fq4x-789w-jg5h"},{"ecosystem":"npm","fixed":["0.1.33"],"introduced":["0"],"last_affected":[],"package":"@agenticmail/codex","purl":null,"source":"GHSA-fq4x-789w-jg5h"},{"ecosystem":"npm","fixed":["0.1.33"],"introduced":["0"],"last_affected":[],"package":"@agenticmail/codex","purl":"pkg:npm/%40agenticmail/codex","source":"GHSA-fq4x-789w-jg5h"},{"ecosystem":"npm","fixed":["0.9.43"],"introduced":["0"],"last_affected":[],"package":"@agenticmail/core","purl":null,"source":"GHSA-fq4x-789w-jg5h"},{"ecosystem":"npm","fixed":["0.9.43"],"introduced":["0"],"last_affected":[],"package":"@agenticmail/core","purl":"pkg:npm/%40agenticmail/core","source":"GHSA-fq4x-789w-jg5h"},{"ecosystem":"npm","fixed":["0.5.71"],"introduced":["0"],"last_affected":[],"package":"@agenticmail/openclaw","purl":null,"source":"GHSA-fq4x-789w-jg5h"},{"ecosystem":"npm","fixed":["0.5.71"],"introduced":["0"],"last_affected":[],"package":"@agenticmail/openclaw","purl":"pkg:npm/%40agenticmail/openclaw","source":"GHSA-fq4x-789w-jg5h"}],"prev":{"headline":"AgenticMail: Cross-agent task authorization bypass in AgenticMail API","id":"CVE-2026-57494"},"products":["@agenticmail/claudecode","@agenticmail/codex","@agenticmail/core","@agenticmail/openclaw"],"published":"2026-07-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-22","vendors":["agenticmail"]},"summary":"Unauthenticated inbound emails trigger privileged AI agent sessions with bypassed permissions, allowing attackers to execute arbitrary code via prompt injection.","url":"https://insights.sbomify.com/CVE-2026-57495/"}