Mailpit is vulnerable to Cross-Site WebSocket Hijacking (CSWSH) allowing unauthenticated access to emails
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| axllent | mailpit | before 1.28.2 | 1.28.2 | Patch available | CNA |
| — | github.com/axllent/mailpit (Go) | 1.2.6 to before 1.28.2 | 1.28.2 | Patch available | GHSA-524m-q5m7-79mm |
| — | github.com/axllent/mailpit (Go) | before 0.0.0-20260110031614 | 0.0.0-20260110031614 | Patch available | GHSA-524m-q5m7-79mm |
- mailpit Vendoraxllent Affected before 1.28.2 Fixed in 1.28.2 Patch available CNA
- github.com/axllent/mailpit (Go) Vendor— Affected 1.2.6 to before 1.28.2 Fixed in 1.28.2 Patch available GHSA-524m-q5m7-79mm
- github.com/axllent/mailpit (Go) Vendor— Affected before 0.0.0-20260110031614 Fixed in 0.0.0-20260110031614 Patch available GHSA-524m-q5m7-79mm
Remediation
- Fix · CNA mailpit (axllent) Fixed in 1.28.2
- Fix · GHSA-524m-q5m7-79mm github.com/axllent/mailpit (Go) Fixed in 1.28.2 Advisory →
- Fix · GHSA-524m-q5m7-79mm github.com/axllent/mailpit (Go) Fixed in 0.0.0-20260110031614 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-22689
- 2026-10-03 Alias added: GHSA-524m-q5m7-79mm
References
More axllent Mailpit vulnerabilities
- TI-2026-22161 Mailpit is Vulnerable to Server-Side Request Forgery (SSRF) via Link Check API CVSS 3.1HIGH 8.6
- TI-2026-33452 Mailpit: Unauthenticated remote memory-exhaustion DoS via unlimited SMTP DATA and /api/v1/send body sizes CVSS 3.1HIGH 7.5
- TI-2026-33450 Mailpit: Path traversal & arbitrary file write in mailpit dump --http via attacker-controlled message IDs CVSS 3.1HIGH 8.2
- TI-2026-17561 Mailpit Proxy Endpoint is Vulnerable to Server-Side Request Forgery (SSRF) CVSS 3.1MEDIUM 5.8
- TI-2026-19194 Mailpit has SMTP Header Injection via Regex Bypass CVSS 3.1MEDIUM 5.3
- TI-2026-33451 Race condition in axllent mailpit CVSS 3.1MEDIUM 5.9
Sources
- CVE-2026-22689 · CVE Program
- CVE-2026-22689 · NVD
- FIRST EPSS
- GHSA-524m-q5m7-79mm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences