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-108785 Overview
CVE-2026-108785 is a session management weakness in the macrozheng mall e-commerce platform up to version 1.0.3. The flaw resides in the JwtTokenUtil.refreshHeadToken function invoked by the /admin/refreshToken endpoint within the JwtAuthenticationTokenFilter component. Manipulation of the token argument allows an authenticated remote attacker to influence session expiration behavior, enabling continued use of tokens that should otherwise be invalidated. The issue is classified under [CWE-613: Insufficient Session Expiration]. A public exploit has been disclosed, and the maintainers have published a patch under commit 9bfc2fd2c4aaa4ac519e9152e65d673a5380de1a.
Critical Impact
Disabled or deactivated user accounts can continue to authenticate using previously issued JSON Web Tokens (JWTs), undermining account-level access revocation.
Affected Products
- macrozheng mall versions up to and including 1.0.3
- mall-security module (JwtTokenUtil class)
- mall-portal module (UmsMemberServiceImpl class)
Discovery Timeline
- 2026-10-12 - CVE-2026-108785 published to the National Vulnerability Database (NVD)
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-108785
Vulnerability Analysis
The mall project is a Spring Boot based e-commerce platform that uses JWT for stateless authentication. The JwtTokenUtil.validateToken method originally verified only that the username in the token matched the UserDetails principal and that the token was not expired. It did not check whether the underlying account was still enabled.
As a result, when an administrator disabled an account, any token issued before the deactivation remained valid until its natural expiration. The /admin/refreshToken endpoint compounded the problem by allowing the holder of such a token to request a refreshed token, effectively extending access for a revoked account.
Root Cause
The root cause is insufficient session expiration logic in JwtTokenUtil.validateToken and the companion refresh path in JwtTokenUtil.refreshHeadToken. The token validation flow checked only username equality and expiration timestamp, omitting a check against UserDetails.isEnabled(). Account state changes performed in the backing user store were therefore not reflected in the JWT verification path.
Attack Vector
An authenticated attacker whose account has been disabled, or who obtains a token belonging to such an account, submits the token to /admin/refreshToken. The server validates the token without consulting the account's enabled state and returns a refreshed JWT. The attacker continues to access protected administrative resources despite the disablement.
// Patch applied in mall-security/src/main/java/com/macro/mall/security/util/JwtTokenUtil.java
public boolean validateToken(String token, UserDetails userDetails) {
String username = getUserNameFromToken(token);
return username != null && username.equals(userDetails.getUsername())
&& !isTokenExpired(token)
&& userDetails.isEnabled();
}
Source: GitHub Commit 9bfc2fd
The added userDetails.isEnabled() check closes the gap by rejecting tokens tied to deactivated accounts during both standard authentication and the refresh-token flow.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-108785
Indicators of Compromise
- Successful requests to /admin/refreshToken originating from user accounts that are flagged as disabled in the ums_admin or ums_member tables.
- Authentication activity on administrative endpoints after an account disablement timestamp recorded in the user management database.
- Repeated token refresh calls from the same client IP outside normal session lifetimes.
Detection Strategies
- Correlate application access logs with user-state change events to identify tokens used after account disablement.
- Instrument the JwtAuthenticationTokenFilter to log userDetails.isEnabled() results for every authenticated request and alert on false outcomes.
- Review audit trails for /admin/refreshToken responses returning HTTP 200 for principals whose status is inactive.
Monitoring Recommendations
- Forward Spring Boot application logs and database audit logs to a centralized logging platform for correlation of account state and token usage.
- Create alerts for any 2xx response on /admin/refreshToken where the subject account has been disabled within the preceding token lifetime window.
- Track baseline refresh rates per account and alert on anomalies that may indicate automated token extension.
How to Mitigate CVE-2026-108785
Immediate Actions Required
- Apply the upstream patch at commit 9bfc2fd2c4aaa4ac519e9152e65d673a5380de1a to both mall-security and mall-portal modules.
- Rebuild and redeploy affected mall services and invalidate existing administrative sessions.
- Audit the ums_admin and ums_member tables for disabled accounts and force token revocation across the environment.
Patch Information
The fix is delivered in the macrozheng mall repository via commit 9bfc2fd2c4aaa4ac519e9152e65d673a5380de1a. It adds a call to userDetails.isEnabled() inside JwtTokenUtil.validateToken, ensuring JWTs tied to disabled accounts are rejected during both normal validation and the /admin/refreshToken flow. Operators tracking upstream releases should apply the latest tagged build that includes this commit. Additional context is available in GitHub Issue #997 and the VulDB entry for CVE-2026-108785.
Workarounds
- Shorten the JWT expiration window in the mall configuration to limit the usability of previously issued tokens.
- Restrict access to /admin/refreshToken via a reverse proxy or Web Application Firewall (WAF) rule that requires an additional server-side session check.
- Implement a server-side token denylist keyed to the subject identifier so disabled accounts invalidate active tokens immediately.
# Example: pin the mall deployment to the patched commit
git fetch origin
git checkout 9bfc2fd2c4aaa4ac519e9152e65d673a5380de1a
mvn clean package -DskipTests
# Redeploy mall-security and mall-portal artifacts to the application servers
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

