Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-22689 EUVD-2026-1872GHSA-524m-q5m7-79mmGO-2026-4310

Mailpit is vulnerable to Cross-Site WebSocket Hijacking (CSWSH) allowing unauthenticated access to emails

Published Jan 10, 2026 · Updated Jan 12, 2026 · 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.

Affected products

VendorProductAffectedFixed
axllent mailpit < 1.28.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20260123T022811-150000.1.140.1 SUSE-SU-2026:0292-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/axllent/mailpit >= 1.2.6, < 1.28.2 1.28.2 GHSA-524m-q5m7-79mm
Go github.com/axllent/mailpit < 0.0.0-20260110031614 0.0.0-20260110031614 GHSA-524m-q5m7-79mm

Advisories 3

References