SecurityContext

CVE-2026-22689: Mailpit - Cross-Site Request Forgery

  • Cve: CVE-2026-22689
  • Name: Mailpit - Cross-Site Request Forgery
  • 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.
  • Impact: Attackers can intercept sensitive email contents and server data in real-time from local Mailpit instances.
  • Remediation: Update to version 1.28.2 or later.
  • Vulnerability type: cross_site_request_forgery
  • Vulnerability impact: information_disclosure
  • Requirement type: user_interaction
  • Requirements: Victim must run Mailpit locally and visit attacker-controlled website
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Epss score: 0.00239
  • Epss percentile: 0.15078
  • Assignee: [email protected]
  • Published at: 2026-01-10T06:15:51Z
  • Age in days: 318
  • Modified at: 2026-06-17T10:20:14Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-22689
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-1385Missing Origin Validation in WebSockets

Public exploits

UrlSourceAdded date
https://github.com/axllent/mailpit/security/advisories/GHSA-524m-q5m7-79mmnvd2026-01-10

References

UrlSourceTags
https://github.com/axllent/mailpit/commit/6f1f4f34c98989fd873261018fb73830b30aec3fnvdPatch
https://github.com/axllent/mailpit/security/advisories/GHSA-524m-q5m7-79mmnvdExploit, Mitigation, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
axllent:mailpit< 1.28.2nonvd/v1/products/axllent/mailpit

Projects

RepositoryLink kindsIndexedUrl
axllent/mailpitcommit, fix, package, security_advisoryyes/v1/repositories/axllent/mailpit

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-01-10
  • Remote: yes
  • Exposed hosts: 1813
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports