CVE-2026-141334: ValueMelody melody-auth through 1.3.8 Privilege Escalation via User Impersonation
ValueMelody melody-auth through 1.3.8 contains a privilege escalation vulnerability in impersonateUser that allows users with a limited impersonation role to impersonate superadmin accounts. When S2sConfig.impersonationRoles includes a role such as support, attackers can obtain refresh tokens carrying the target's full roles, gaining superadmin control over the authorization server and relying applications.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Deployments of ValueMelody melody-auth through 1.3.8 are exposed when S2sConfig.impersonationRoles includes a role such as support that is intended to have limited user-impersonation capability.
What access does an attacker need to exploit it?
The attacker needs an account assigned a role permitted by S2sConfig.impersonationRoles. No user interaction is required, but exploitation has high attack complexity and requires the documented attack preconditions.
What can an attacker gain?
An attacker can impersonate a super_admin account and obtain refresh tokens containing the target account's full roles. This can provide super_admin control of the authorization server and applications that rely on it.
How can teams assess whether they are affected?
Check whether melody-auth is at version 1.3.8 or earlier and inspect S2sConfig.impersonationRoles. A configuration that grants a limited role, such as support, permission to impersonate users indicates exposure to the vulnerable impersonation path.