Skip to main content
← All vulnerabilities
CVE-2026-67448GHSA-8R62-W5WH-FC5MGO-2026-6271

Mailpit: WebSocket origin check bypass via percent-encoded path (regression of CVE-2026-22689)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.30.6
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. From 1.29.0 until 1.30.6, Mailpit's server/server.go origin middleware checks the raw RequestURI for the /api/ prefix while Go's ServeMux routes using the percent-decoded URL path, and server/websockets/client.go configures websocket.Upgrader.CheckOrigin to return true. A malicious website can request /%61pi/events, skip corsOriginAccessControl(), reach the /api/events WebSocket handler, and receive live message IDs, Message-Id values, sender and recipient fields, subjects, tags, and body snippets from an unauthenticated default Mailpit instance after the user visits the site. This is a regression of the earlier WebSocket origin protection and does not affect deployments protected by --ui-auth-file. This issue is fixed in version 1.30.6.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • axllent mailpit

    From 1.29.0 · fixed in 1.30.6

  • github.com/axllent/mailpitGo

    From 1.29.0 · fixed in 1.30.6

References 3

GitHub · axllent/mailpit