CVE-2025-12627 PUBLISHED

Improper Refresh Token Implementation via User Impersonation Flow in WSO2 Identity Server Enables Continued Unauthorized Actions

Assigner: WSO2
Reserved: 03.11.2025 Published: 06.08.2026 Updated: 06.08.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N
CVSS Score: 2.4

Product Status

Vendor WSO2
Product WSO2 Identity Server
Versions Default: unaffected
  • affected from 7.0.0 to 7.0.0.130 (excl.)
  • affected from 7.1.0 to 7.1.0.38 (excl.)
Vendor WSO2
Product WSO2 Carbon OAuth
Versions Default: unknown
  • affected from 7.0.26 to 7.0.26.83 (excl.)
  • affected from 7.0.259 to 7.0.259.31 (excl.)
  • unaffected from x to * (incl.)

Solutions

Follow the instructions given on https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4619/#solution

References

Problem Types

  • CWE-613: Insufficient Session Expiration CWE

Impacts

  • CAPEC-10 CAPEC-10: Token Impersonation