Skip to main content
← All vulnerabilities
CVE-2026-22689GHSA-524M-Q5M7-79MMGO-2026-4310

Mailpit is vulnerable to Cross-Site WebSocket Hijacking (CSWSH) allowing unauthenticated access to emails

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.28.2, 0.0.0-20260110031614
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Mailpit is an email testing tool and API for developers. Prior to version 1.28.2, the Mailpit WebSocket server is configured to accept connections from any origin. This lack of Origin header validation introduces a Cross-Site WebSocket Hijacking (CSWSH) vulnerability. An attacker can host a malicious website that, when visited by a developer running Mailpit locally, establishes a WebSocket connection to the victim's Mailpit instance (default ws://localhost:8025). This allows the attacker to intercept sensitive data such as email contents, headers, and server statistics in real-time. This issue has been patched in version 1.28.2.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • axllent mailpit

    fixed in 1.28.2

  • github.com/axllent/mailpitGo

    From 1.2.6 · fixed in 1.28.2

  • github.com/axllent/mailpitGo

    fixed in 0.0.0-20260110031614

References 2

GitHub · axllent/mailpit