# CVE-2025-12627: Improper Refresh Token Implementation via User Impersonation Flow in WSO2 Identity Server Enables Continued Unauthorized Actions

- Severity: Low 2.4 (CVSS:3.1, scored by WSO2) `CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-06T07:33:12.382Z
- Modified: 2026-09-29T14:10:00.117Z
- Weaknesses: CWE-613
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: WSO2

## 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.

(As written by CVE List.)

## Affected

- WSO2 WSO2 Identity Server: from 7.0.0 before 7.0.0.130; from 7.1.0 before 7.1.0.38
- org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth: from 7.0.26 before 7.0.26.83; from 7.0.259 before 7.0.259.31 (not affected: from x up to *)
- wso2 identity_server: from 7.0.0 before 7.0.0.130; from 7.1.0 before 7.1.0.38

## References

- <https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4619/> (vendor-advisory)

## Sources

- CVE List: [CVE-2025-12627](https://www.cve.org/CVERecord?id=CVE-2025-12627), CVE Terms of Use, modified 2026-08-06
- NVD: [CVE-2025-12627](https://nvd.nist.gov/vuln/detail/CVE-2025-12627), Public domain, modified 2026-09-29

---

Page: https://cve.day/CVE-2025-12627 · Whole record: https://cve.day/CVE-2025-12627.json · Rebuilt by cve.day 2026-11-25T22:59:12.440Z
