Mail account takeover via unvalidated OAuth redirect
Published Aug 26, 2026 · Updated Aug 26, 2026
Open redirect in Stalwart Mail Server 0.16.19 and earlier allows remote attackers to take over mail accounts via a crafted OAuth login URL. When client authentication is disabled by default, validate_client_registration returns success without matching redirect_uri to a registered destination, and the login page sends the authorization code to that URI. An account holder must open the crafted URL and authenticate; the attacker can then exchange the disclosed code for access and refresh tokens and read the account's mail.
Summary
What happened
Open redirect in Stalwart Mail Server 0.16.19 and earlier allows remote attackers to take over mail accounts via a crafted OAuth login URL. When client authentication is disabled by default, validate_client_registration returns success without matching redirect_uri to a registered destination, and the login page sends the authorization code to that URI. An account holder must open the crafted URL and authenticate; the attacker can then exchange the disclosed code for access and refresh tokens and read the account's mail.
The record
- CVE
- CVE-2026-81036
- Published
- Aug 26, 2026
- Updated
- Aug 26, 2026
- Vendor
- Stalwart Labs
- Product
- Stalwart
- Classifications
- CWE-601, T1528
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 26, 2026CVE publishedPublication date reported by the CVE source.
- Aug 26, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=0.16.19
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- OAuth Authorization Code Token Theft proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo