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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-10T05:46:13.771Z
- Modified: 2026-06-17T10:20:14.330Z
- Also known as: GHSA-524m-q5m7-79mm, GO-2026-4310
- Weaknesses: CWE-1385
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- axllent mailpit: < 1.28.2; before 1.28.2
- github.com/axllent/mailpit (Go): from 1.2.6 before 1.28.2; before 0.0.0-20260110031614

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://github.com/axllent/mailpit/security/advisories/GHSA-524m-q5m7-79mm> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/axllent/mailpit/commit/6f1f4f34c98989fd873261018fb73830b30aec3f> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22689> (advisory)
- <https://github.com/axllent/mailpit> (package)

## Sources

- CVE List: [CVE-2026-22689](https://www.cve.org/CVERecord?id=CVE-2026-22689), CVE Terms of Use, modified 2026-01-12
- GitHub Advisory Database: [GHSA-524m-q5m7-79mm](https://github.com/advisories/GHSA-524m-q5m7-79mm), CC-BY-4.0, modified 2026-02-03
- Go Vulnerability Database: [GO-2026-4310](https://pkg.go.dev/vuln/GO-2026-4310), CC-BY-4.0, modified 2026-01-23
- NVD: [CVE-2026-22689](https://nvd.nist.gov/vuln/detail/CVE-2026-22689), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22689 · Whole record: https://cve.day/CVE-2026-22689.json · Rebuilt by cve.day 2026-11-25T22:59:12.716Z
