CVE-2026-120098: Privilege escalation to administrator through Login As

Published Dec 4, 2026
·
Updated

Improper authorization in the Login As feature (/api/v1/users/loginas) in dotCMS versions before 26.10.28-03 allows an authenticated backend user who holds the Login As role, but is not an administrator, to impersonate an Administrator or CMS Administrator account and gain full administrative access. The same versions placed no upper limit on the lifetime of API tokens a user could issue for themselves. Fixed in 26.10.28-03 and later. Login As to an administrator account now also requires the impersonating user to be an administrator (property LOGINASADMINREQUIRESADMIN, default true), newly issued API tokens are capped by json.web.token.max.allowed.expiration.days (default now 365 days), and an invalid token network restriction is rejected instead of producing an unrestricted token.

Affected Software

1 affected component
dotCMS dotCMS<26.10.28-03

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 26.10.28-03
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 25.07.10 LTS v28
  3. Configuration

    Set LOGIN_AS_ADMIN_REQUIRES_ADMIN to true so Login As to an administrator account requires the impersonating user to be an administrator

    dotCMS Login As LOGIN_AS_ADMIN_REQUIRES_ADMIN = true
  4. Configuration

    Set json.web.token.max.allowed.expiration.days to 365 days to cap newly issued API token lifetimes

    dotCMS API tokens json.web.token.max.allowed.expiration.days = 365

Event History

Dec 4, 2026
CVE Published
via MITRE·07:40 PM
Data Sourced
via MITRE·07:40 PM
RemedyDescriptionWeakness

Frequently Asked Questions

1

Which users can exploit the administrator impersonation issue?

An authenticated backend user must hold the Login As role. In affected versions, that role alone allowed a non-administrator to impersonate an Administrator or CMS Administrator account.

2

Are default deployments affected by the Login As behavior?

Versions before 26.10.28-03 are affected if a non-administrator backend user has the Login As role. In fixed versions, LOGIN_AS_ADMIN_REQUIRES_ADMIN defaults to true, requiring the impersonating user to already be an administrator when targeting an administrator account.

3

What should be done if an immediate upgrade is not possible?

Remove or tightly restrict the Login As role for non-administrator backend users, particularly where Administrator or CMS Administrator accounts can be selected as impersonation targets. Review API-token issuance as well, because affected versions did not enforce an upper token-lifetime limit.

4

What configuration changes apply after upgrading?

Ensure LOGIN_AS_ADMIN_REQUIRES_ADMIN remains enabled, as its default is true in the fixed release. Set json.web.token.max.allowed.expiration.days to an appropriate maximum; the new default is 365 days.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203