---
id: CVE-2025-12627
title: >-
  The user impersonation flow in WSO2 Identity Server fails to properly manage
  refresh tokens associated with impersonated sessions
summary: >-
  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 …
severity: low
cvss: 2.4
cvssVector: 'CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N'
cwe:
  - CWE-613
vendor: wso2
product: identity_server
affected:
  - 'identity_server >= 7.0.0, < 7.0.0.130'
  - 'identity_server >= 7.1.0, < 7.1.0.38'
patched:
  - identity_server 7.1.0.38
published: '2026-08-06'
updated: '2026-09-29'
sourceUpdated: '2026-09-29T14:10:00.117'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-12627'
references:
  - url: >-
      https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4619/
    label: ed10eef1-636d-4fbe-9993-6890dfa878f8
tags:
  - nvd
epss: 0.00204
epssPercentile: 0.09335
ingestedAt: '2026-09-29T14:36:14.076Z'
---

## Overview

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.

## Affected

- `identity_server >= 7.0.0, < 7.0.0.130`
- `identity_server >= 7.1.0, < 7.1.0.38`

## Remediation

Upgrade past the affected range:

- `identity_server 7.1.0.38`
