CVE-2026-120103: Privilege escalation to administrator through Velocity session attributes and Logout As
Improper authorization in the Logout As REST endpoint (/api/v1/users/logoutas), combined with insufficient restrictions on the session attributes that Velocity code can write, in dotCMS versions before 26.10.28-02 allows an authenticated backend user who can author Velocity that renders in their own session (for example widget code, containers, templates or VTL files) to switch their session to any user, including a CMS Administrator, without holding the Login As role or knowing that user's password. Fixed in 26.10.28-02 and later. Logout As now restores a user only from an active Login As session record that Velocity code cannot create or change.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 26.10.28-02 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 25.07.10 LTS v26
Event History
Frequently Asked Questions
Which users can exploit this issue?
An authenticated backend user must be able to author Velocity that renders in their own session. Examples given include widget code, containers, templates, or VTL files.
Is a Login As role assignment or an administrator password required?
No. A qualifying backend user can switch their session to any user, including a CMS Administrator, without the Login As role and without knowing the target user's password.
Which installations are affected?
dotCMS versions before 26.10.28-02 are affected. Version 26.10.28-02 and later include the fix.
What changes in the fixed versions?
Logout As restores a user only from an active Login As session record. Velocity code cannot create or modify that record.