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-2025-13173 Overview
CVE-2025-13173 is an insufficient session expiration vulnerability [CWE-613] affecting WSO2 products that implement session-bound token binding validation. The flaw causes session-bound tokens to remain valid after the associated user session is terminated. Token revocation only occurs when another Single Sign-On (SSO) request is initiated or when the "Revoke token upon user logout" option is explicitly enabled.
An attacker holding a valid session-bound token can reuse it to access protected applications and resources after the user has logged out. The condition exposes sensitive user data and extends the practical lifetime of stolen tokens beyond their intended session scope.
Critical Impact
Stolen or intercepted session-bound tokens remain usable after user logout, enabling continued unauthorized access to applications and sensitive data.
Affected Products
- WSO2 products with the session-bound token feature enabled and token binding validation active
- Deployments where the "Revoke token upon user logout" option is not enabled
- See the WSO2 Security Advisory WSO2-2025-4727 for the full product and version matrix
Discovery Timeline
- 2026-10-19 - CVE-2025-13173 published to the National Vulnerability Database (NVD)
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2025-13173
Vulnerability Analysis
The vulnerability resides in the session lifecycle logic that handles session-bound OAuth tokens. When token binding validation is enabled, tokens are tied to a specific user session identifier. The expected behavior is that terminating the session invalidates the bound token.
In affected configurations, logout does not trigger token revocation. The token remains valid in the token store until a subsequent SSO request causes cleanup, or until the token reaches its natural expiration. During this window, any party holding the token can present it to protected resources and receive a successful authorization decision.
The weakness aligns with CWE-613 (Insufficient Session Expiration), where the application fails to enforce proper session termination semantics for all associated credentials.
Root Cause
The root cause is a missing revocation step in the logout handler for the session-bound token flow. The handler terminates the user session but does not invoke the token revocation routine against tokens bound to that session identifier. The "Revoke token upon user logout" option, when disabled, leaves the application reliant on the next SSO event to clean up stale tokens.
Attack Vector
Exploitation requires an attacker to possess a valid session-bound access token. Token acquisition paths include token theft through client-side compromise, interception on misconfigured transport, or exposure through logs and telemetry. After the legitimate user logs out, the attacker replays the token against the resource server. The server accepts the token because revocation never occurred.
Attack complexity is high because the attacker must first obtain a valid token and must act within the token lifetime. No user interaction is required at the time of replay. Refer to the WSO2 Security Advisory WSO2-2025-4727 for additional technical context.
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-2025-13173
Indicators of Compromise
- Access token usage from a client or IP address after a logout event has been recorded for the associated user session
- Repeated API calls carrying the same bearer token across multiple session boundaries
- Resource access events that lack a corresponding active session in the identity provider
Detection Strategies
- Correlate identity provider logout events with downstream token usage logs to identify tokens active after session termination
- Audit the configuration of session-bound tokens and confirm whether the "Revoke token upon user logout" option is enabled across tenants
- Review authorization server logs for token introspection calls that succeed for tokens whose binding session no longer exists
Monitoring Recommendations
- Alert on bearer token reuse from new source IP addresses or user agents after a logout event
- Monitor token store metrics for abnormally large populations of non-revoked tokens bound to terminated sessions
- Track changes to WSO2 OAuth and SSO configuration files, especially flags related to token revocation on logout
How to Mitigate CVE-2025-13173
Immediate Actions Required
- Enable the "Revoke token upon user logout" option in affected WSO2 deployments where session-bound token binding validation is active
- Apply the patches and configuration guidance published in the WSO2 Security Advisory WSO2-2025-4727
- Reduce access token lifetimes for applications that depend on session-bound tokens to limit the replay window
Patch Information
WSO2 has published remediation guidance in advisory WSO2-2025-4727. Administrators should review the advisory for the list of affected product versions, fix versions, and specific configuration steps required to enforce token revocation on logout.
Workarounds
- Enable "Revoke token upon user logout" as a configuration-level workaround until patches are applied
- Shorten access token Time-To-Live (TTL) to minimize the exposure window for tokens that outlive their session
- Implement proactive token revocation calls from applications at logout time where feasible
# Configuration guidance - consult the WSO2 advisory for product-specific syntax
# Ensure the following behavior is enforced on affected deployments:
# 1. Session-bound token binding validation remains enabled
# 2. "Revoke token upon user logout" is set to true
# 3. Access token lifetime is reduced to the minimum acceptable value
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

