# CVE-2026-22689: Mailpit is vulnerable to Cross-Site WebSocket Hijacking (CSWSH) allowing unauthenticated access to emails

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-01-10 · Modified: 2026-01-12
- Aliases: GHSA-524m-q5m7-79mm, GO-2026-4310
- Record: https://cvemate.com/vulnerability/CVE-2026-22689 · JSON: https://cvemate.com/vulnerability/CVE-2026-22689/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS: 0.239%, percentile 16.006%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- axllent mailpit: \< 1.28.2
- github.com/axllent mailpit (Go): \< 0.0.0-20260110031614 \| ≥ 1.2.6, \< 1.28.2

## References

- <https://github.com/axllent/mailpit/security/advisories/GHSA-524m-q5m7-79mm>
- <https://github.com/axllent/mailpit/commit/6f1f4f34c98989fd873261018fb73830b30aec3f>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22689>
- <https://github.com/axllent/mailpit>

---

Data as of 2026-12-05T18:29:31.090Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
