Junglewise Threat Intelligence

AgenticMail @agenticmail/mcp auth bypass in HTTP transport

Severity: high · CVSS 8.1 · Published 2026-06-01

Vendors: npm.

Executive brief

AgenticMail is a tool used for managing email agents and relays. A security flaw in its Model Context Protocol (MCP) component allows anyone with network access to the server to perform administrative actions without a password. This could lead to unauthorized email sending, deletion of agents, or modification of email relay settings.

Technical details

The @agenticmail/mcp package fails to implement an authentication layer for its Streamable HTTP transport when enabled via the --http flag or MCP_HTTP=1 environment variable. The /mcp endpoint accepts JSON-RPC requests without verifying an Authorization header. Because the server process automatically attaches its own AGENTICMAIL_MASTER_KEY when forwarding tool calls to the backend API, unauthenticated clients can execute sensitive operations such as setup_email_relay, delete_agent, and send_test_email. This is a 'Missing Authentication for Critical Function' vulnerability (CWE-306). The issue is addressed in version 0.9.27.

Affected products

  • AgenticMail @agenticmail/mcp < 0.9.27

Timeline

  • 2026-05-29: disclosed
  • 2026-05-29: advisory
  • 2026-06-01: patched: Version 0.9.27 released

References

Related threats