Skip to main content

WSO2 Identity Server CVE-2025-12627

| EUVDEUVD-2025-210629 LOW
Insufficient Session Expiration (CWE-613)
2026-08-06 WSO2 GHSA-8j24-697m-8w28
2.4
CVSS 3.1 · Vendor: WSO2
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Compromise or abuse high-privilege WSO2 admin account
  2. Delivery
    Initiate user impersonation via Identity Server
  3. Exploit
    Acquire impersonated user's access token and refresh token
  4. Install
    Wait for impersonation session to expire or be terminated
  5. C2
    Submit refresh token to OAuth token endpoint
  6. Execute
    Obtain new access token for impersonated user
  7. Impact
    Perform unauthorized actions attributed to victim in audit logs

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session expiration enforcement
Exploitation Conditions

The WSO2 Identity Server user impersonation feature must be enabled and the attacker must hold high-privilege credentials sufficient to initiate an impersonation session (PR:H). The attacker must operate from an adjacent network segment (AV:A) - internet-based remote exploitation is not supported by the CVSS vector. Crucially, the attacker must have already successfully initiated an impersonation session and obtained the resulting access token; the vulnerability is in what happens after that token expires, not in the impersonation initiation itself. Factors limiting exploitation: the high privilege bar for impersonation blocks low-privilege or unauthenticated attackers entirely; adjacent network access excludes internet-scale opportunistic exploitation; and impact is confined to integrity and audit log corruption with no confidentiality or availability consequence, limiting usefulness to actors seeking attribution evasion rather than data theft.

Impact

The vendor-assigned CVSS base score of 2.4 (AV:A/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N) accurately constrains real-world risk. Two hard prerequisites block broad exploitation: the attacker must operate from an adjacent network segment (AV:A, ruling out internet-scale attacks) and must already hold high-privilege credentials sufficient to invoke the impersonation feature (PR:H). The impact is limited to integrity (I:L) with no confidentiality or availability consequence, reflecting audit log corruption rather than data exfiltration or service disruption. No EPSS score was provided in the input, and the CVE is not listed in the CISA KEV catalog. No public exploit code has been identified. The practical threat model is narrow: a malicious insider, a compromised administrator account, or a red-team actor who has already escalated to admin-level access. For organizations relying on WSO2 impersonation audit trails for regulatory compliance or incident response forensics, the integrity and traceability impact carries disproportionate operational significance relative to the low numeric CVSS score.

Exploit ScenarioDerived

A malicious administrator or attacker who has compromised an admin account on an adjacent network segment invokes WSO2 Identity Server's impersonation feature to obtain an access token for a target user. When the impersonation session is intended to conclude - whether by timeout or manual termination - the attacker retains the associated refresh token and submits it against the OAuth token endpoint to obtain a fresh access token, silently extending unauthorized access. All subsequent actions performed against WSO2-protected resources appear in audit logs under the victim's identity, with no record linking them to the true actor or the original impersonation event.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 06, 2026

Insufficient refresh token invalidation in WSO2 Identity Server's user impersonation flow allows a privileged attacker who has already obtained an impersonated access token to silently renew that authorization via the OAuth refresh token grant, sustaining unauthorized access well beyond the intended session lifetime. The integrity impact is two-fold: the attacker continues performing actions on behalf of the legitimate user, and audit logs attribute those actions to the victim identity rather than the true actor, corrupting traceability and compliance posture. No public exploit is identified and exploitation is bounded by high privilege prerequisites (PR:H) and adjacent network access (AV:A), placing realistic risk firmly in insider-threat and compromised-administrator scenarios.

RemediationAI

Patch available per vendor advisory - consult the WSO2 security advisory WSO2-2025-4619 at https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4619/ for specific patched versions and upgrade procedures, as exact fixed version numbers are not independently confirmable from available CPE data. Pending patch application, administrators should configure the shortest operationally acceptable refresh token lifetime for impersonation sessions within WSO2 Identity Server's OAuth settings, reducing the window during which a stale refresh token can be leveraged. Enabling active token revocation on impersonation session termination - if configurable in the deployed version - closes the gap directly. Audit logging for refresh token grant requests should be enhanced to flag token renewals originating from impersonation-scoped sessions, enabling detection of exploitation attempts. The impersonation feature itself should be restricted to the minimum required set of administrators, reducing the blast radius of a compromised privileged account.

Affected VersionsENISA

WSO2 Identity Server 7.0.0 <7.0.0.130
WSO2 Identity Server 7.1.0 <7.1.0.38
WSO2 Carbon OAuth 7.0.26 <7.0.26.83
WSO2 Carbon OAuth 7.0.259 <7.0.259.31

Affected Packages

euvd wso2_carbon_oauth fix: 7.0.26.83, 7.0.259.31
euvd wso2_identity_server fix: 7.0.0.130, 7.1.0.38

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

WSO2 Identity Server is an enterprise identity and access management platform implementing OAuth 2.0 token flows, including a user impersonation capability that allows privileged administrators to act on behalf of other users. The affected component is WSO2 Carbon OAuth (cpe:2.3:a:wso2:wso2_carbon_oauth), the underlying OAuth 2.0 engine embedded in WSO2 Identity Server (cpe:2.3:a:wso2:wso2_identity_server). CWE-613 (Insufficient Session Expiration) identifies the root cause: when an impersonated access token expires or the impersonation session is administratively terminated, the refresh tokens bound to that impersonation context are not properly scoped or invalidated. This allows the attacker to submit a standard OAuth refresh token grant request - an operation not typically audited with the same scrutiny as impersonation initiation - to silently obtain new access tokens and perpetuate the impersonated session without detection.

Know when Wso2 Identity Server gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (WSO2) PRIMARY 2.4 LOW
AV:A/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 2.4 LOW

High privileges required to invoke impersonation (PR:H); adjacent vector reflects admin session context; integrity-only impact captures audit corruption with no data disclosure.

3.1 AV:A/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N
4.0 AV:A/AC:L/AT:N/PR:H/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (WSO2).

CVSS VectorVendor: WSO2

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Aug 06, 2026 - 09:01 EUVD

DescriptionCVE.org

The user impersonation flow in WSO2 Identity Server fails to properly manage refresh tokens associated with impersonated sessions. This allows an attacker who has obtained an access token for an impersonated user to leverage the refresh token grant to obtain new access tokens, extending their ability to act as the legitimate user.

An attacker who gains access to an impersonated user's access token can exploit this weakness to renew their authorization. This results in the continued ability to perform actions on behalf of the actual user, compromising log integrity and traceability by masking the true actor.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
enterprise IAM platform deployed in regulated industries and large organizations
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-15039 CRITICAL
9.4 Aug 06

Authentication bypass in WSO2 Identity Server and multiple WSO2 platform products (API Manager, Open Banking AM/IAM/KM,

CVE-2025-10470 HIGH
8.6 May 11

Memory exhaustion denial-of-service in WSO2 Identity Server's Magic Link authenticator allows remote unauthenticated att

CVE-2025-12737 HIGH
8.4 Sep 03

OS command injection (CWE-78) in WSO2's shared Carbon Console administrative interface allows an authenticated administr

CVE-2025-14260 HIGH
8.3 Oct 28

Server-side request forgery in WSO2 API Manager and related WSO2 products lets a remote attacker direct the server to ar

CVE-2025-10149 HIGH
8.2 Oct 19

The SCIM provisioning endpoints in WSO2 Identity Server, Identity Server as Key Manager, and Open Banking IAM fail to di

CVE-2024-2374 HIGH
7.5 Apr 16

The XML parsers within multiple WSO2 products accept user-supplied XML data without properly configuring to prevent the

CVE-2026-6647 HIGH
7.4 Oct 28

OAuth token revocation in WSO2 Identity Server fails to invalidate access and refresh tokens for accounts whose username

CVE-2025-10908 HIGH
7.3 May 11

Account-lockout bypass in WSO2 Identity Server (6.0.0, 6.1.0, 7.0.0, 7.1.0) and the Carbon MagicLink Authenticator Modul

CVE-2025-9973 HIGH
7.2 May 11

Adaptive authentication flows in WSO2 Identity Server 7.1.0 (up to 7.1.0.26) and the Conditional Authentication User and

CVE-2025-13173 MEDIUM
6.5 Oct 19

WSO2 Carbon OAuth, as shipped in WSO2 Identity Server, API Manager, and related WSO2 products, can leave session-bound t

CVE-2025-8591 MEDIUM
6.1 Jul 06

Reflected cross-site scripting across at least eight WSO2 platform products - including Identity Server, API Manager, AP

CVE-2025-10503 MEDIUM
6.1 Apr 29

Reflected cross-site scripting in WSO2 Identity Server's authentication endpoint allows remote unauthenticated attackers

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy