CVE-2026-22689 Details
Description
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.
A Cross-Site WebSocket Hijacking (CSWSH) vulnerability has been identified in Mailpit versions prior to 1.28.2. The issue arises because the WebSocket server accepts connections from any origin, lacking proper validation of the Origin header. This vulnerability allows an attacker to intercept sensitive data in real-time, such as email contents, headers, and server statistics. Exploitation occurs when a developer running Mailpit locally visits a malicious website, which then establishes a WebSocket connection to the Mailpit instance on localhost.
Users can update to Mailpit version 1.28.2 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/axllent/mailpit/commit/6f1f4f34c98989fd873261018fb73830b30aec3f | [email protected] | Patch |
| https://github.com/axllent/mailpit/security/advisories/GHSA-524m-q5m7-79mm | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1385 | Missing Origin Validation in WebSockets | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| axllent mailpit | < 1.28.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 18, 2026 | Initial Analysis | [email protected] |
| Jan 10, 2026 | New CVE Received | [email protected] |