CVE-2025-12627
Improper Refresh Token Implementation via User Impersonation Flow in WSO2 Identity Server Enables Continued Unauthorized Actions
Description
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.
INFO
Published Date :
Aug. 6, 2026, 8:16 a.m.
Last Modified :
Aug. 6, 2026, 8:16 a.m.
Remotely Exploit :
No
Source :
ed10eef1-636d-4fbe-9993-6890dfa878f8
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | LOW | ed10eef1-636d-4fbe-9993-6890dfa878f8 | ||||
| CVSS 3.1 | LOW | MITRE-CVE |
Solution
- Apply the latest security patches for WSO2 Identity Server.
- Review and enforce refresh token revocation policies.
- Audit impersonation and token handling logs.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-12627.
| URL | Resource |
|---|---|
| https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4619/ |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-12627 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-12627
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-12627 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-12627 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by ed10eef1-636d-4fbe-9993-6890dfa878f8
Aug. 06, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'WSO2', 'product': 'WSO2 Identity Server', 'versions': [{'status': 'affected', 'version': '7.0.0', 'lessThan': '7.0.0.130', 'versionType': 'custom'}, {'status': 'affected', 'version': '7.1.0', 'lessThan': '7.1.0.38', 'versionType': 'custom'}], 'defaultStatus': 'unaffected'}, {'vendor': 'WSO2', 'product': 'WSO2 Carbon OAuth', 'versions': [{'status': 'affected', 'version': '7.0.26', 'lessThan': '7.0.26.83', 'versionType': 'custom'}, {'status': 'affected', 'version': '7.0.259', 'lessThan': '7.0.259.31', 'versionType': 'custom'}, {'status': 'unaffected', 'version': 'x', 'versionType': 'custom', 'lessThanOrEqual': '*'}], 'packageName': 'org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth', 'defaultStatus': 'unknown'}] Added Description 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. Added CVSS V3.1 AV:A/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N Added CWE CWE-613 Added Reference https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4619/