Skip to main content
Vulnerability Database/CVE-2026-104084

CVE-2026-104084: SmarterMail JWT Privilege Escalation

CVE-2026-104084 is a privilege escalation flaw in SmarterMail that allows attackers to retain elevated privileges through stale JWT tokens. This post explains its technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-104084 Overview

CVE-2026-104084 is a privilege escalation vulnerability in SmarterMail builds prior to 9777. The flaw resides in the JSON Web Token (JWT) handling logic exposed through the POST /api/v1/auth/refresh-token endpoint. SmarterMail embeds a role claim inside access and refresh tokens at issuance, but never revalidates that claim against the account's current role when a refresh token is redeemed. An attacker who holds a refresh token issued before a role demotion can replay it to mint a new access token that retains the previously held role, such as DomainAdmin or SysAdmin. The elevated access persists until natural token expiry. The weakness is classified as insufficient session expiration [CWE-613].

Critical Impact

A demoted or compromised account can retain administrative privileges across the SmarterMail tenant by replaying stale refresh tokens against the authentication API.

Affected Products

  • SmarterTools SmarterMail builds prior to build 9777
  • SmarterMail deployments exposing /api/v1/auth/refresh-token
  • Any SmarterMail tenant relying on role demotion as a privilege revocation control

Discovery Timeline

  • 2026-10-08 - SmarterTools releases SmarterMail build 9777 containing the fix
  • 2026-10-09 - CVE-2026-104084 published to NVD
  • 2026-10-12 - Last updated in NVD database

Technical Details for CVE-2026-104084

Vulnerability Analysis

SmarterMail issues two JWTs during authentication: a short-lived access token and a longer-lived refresh token. Both tokens carry a role claim describing the account's privilege level at issuance time. When a client calls POST /api/v1/auth/refresh-token, the server validates the refresh token signature and expiry, then issues a new access token that copies the role claim forward. The server does not re-read the account's current role from its backing store during this exchange. As a result, administrative revocations do not propagate to tokens already in circulation. The vulnerability allows attackers to extend privileged sessions well past the point where the administrator intended access to end.

Root Cause

The root cause is a broken session lifecycle. Authorization data is cached inside the JWT and treated as authoritative on refresh rather than being re-derived from the user record. Role changes, demotions, and account restrictions therefore have no effect on existing refresh tokens until they expire naturally. This design violates the principle that privilege checks must reflect current server-side state at the time of use.

Attack Vector

An attacker needs a valid refresh token that was issued while the target account held elevated privileges. Two realistic scenarios exist. First, a captured refresh token from an administrator session, obtained through phishing, token theft, or client-side compromise, remains usable after the administrator is demoted. Second, a legitimate user who held DomainAdmin or SysAdmin and is later demoted can continue minting administrative access tokens from their own refresh token. The attacker submits the stale refresh token to /api/v1/auth/refresh-token over the network and receives a new access token that still carries the elevated role. No user interaction is required at the victim side.

Technical write-ups are available in the VulnCheck advisory and Evan's research blog post.

Detection Methods for CVE-2026-104084

Indicators of Compromise

  • Successful POST /api/v1/auth/refresh-token responses issuing access tokens with DomainAdmin or SysAdmin roles for accounts recently demoted in the admin console.
  • Administrative API calls originating from user accounts whose role in the SmarterMail directory no longer matches the role embedded in their presented JWT.
  • Refresh token redemptions from IP addresses or user agents that differ from the original login that issued the token.

Detection Strategies

  • Decode JWTs observed in authentication traffic and compare the role claim against the authoritative role stored in SmarterMail for the subject account.
  • Correlate administrative role-change events with subsequent refresh-token exchanges for the same subject within the token lifetime window.
  • Alert on refresh-token redemptions that result in privilege elevation inconsistent with the account's current directory state.

Monitoring Recommendations

  • Enable verbose logging on the SmarterMail authentication API and forward logs to a centralized analytics platform for retention and query.
  • Track and baseline refresh-token redemption frequency per account to surface anomalous replay patterns.
  • Monitor administrative actions performed shortly after role demotions as a high-signal indicator of stale-token abuse.

How to Mitigate CVE-2026-104084

Immediate Actions Required

  • Upgrade SmarterMail to build 9777 or later. Build 9777 was released on October 8, 2026 per the SmarterMail release notes.
  • Invalidate all outstanding refresh tokens for administrative accounts after upgrading, forcing re-authentication across privileged sessions.
  • Audit role-change events over the retention window and verify no stale-token activity followed any demotions.

Patch Information

SmarterTools addressed the issue in SmarterMail build 9777 on October 8, 2026. The fix revalidates the role claim against current account state during refresh-token redemption. Administrators should consult the SmarterMail release notes for build-specific guidance before deploying the update in production.

Workarounds

  • Restrict network access to the SmarterMail management and API surfaces using firewall rules or a reverse proxy allowlist until the upgrade is applied.
  • Rotate credentials and force logout for any user whose role has been reduced in the past refresh-token lifetime, and manually revoke their active sessions where supported.
  • Reduce refresh-token lifetime through SmarterMail configuration where available to shrink the window of exposure for stale role claims.
bash
# Example: block external access to the refresh-token endpoint at the reverse proxy
# nginx snippet - restrict /api/v1/auth/refresh-token to trusted internal ranges
location = /api/v1/auth/refresh-token {
    allow 10.0.0.0/8;
    allow 192.168.0.0/16;
    deny all;
    proxy_pass http://smartermail_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.