CVE-2026-115990: XSS and open redirect in the SAML login callback
Improper neutralization of input in the SAML login callback (DotSamlResource and RedirectUtil) in dotCMS versions before 26.10.19-01, and 25.07.10 LTS before v24, allows the post-login destination, taken from the original request or the SAML RelayState, to be written unencoded and unvalidated into the HTML redirect page returned after a successful SAML login. An unauthenticated attacker can craft a link that, once the victim signs in through the identity provider, runs script on the dotCMS origin in the victim's new session or sends the victim to an external site. Only installations with SAML login configured are affected. Fixed in 26.10.19-01 and later: the redirect page is HTML-attribute-encoded, and the post-login destination is followed only when it points to the same site, one of its aliases, or a host listed in the new auth.relaystate.allowed.hosts setting.
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.19-01 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 25.07.10 LTS v24
Event History
Frequently Asked Questions
Which deployments are exposed?
Only dotCMS installations with SAML login configured are affected. Installations that do not use SAML login are not affected by this issue.
What does an attacker need to exploit this?
The attacker does not need to authenticate. They need to get a victim to use a crafted link and then complete sign-in through the identity provider.
What is the impact after a victim signs in?
The crafted post-login destination can execute script on the dotCMS origin in the victim's newly established session, or redirect the victim to an external site.
What can be done if updating is not immediately possible?
The provided data identifies the affected condition as SAML login being configured. If SAML login can be disabled, that removes the affected login path; otherwise, no interim configuration mitigation is specified for affected versions.
How do the fixed versions restrict post-login destinations?
Fixed versions HTML-attribute-encode the redirect page and only follow destinations targeting the same site, one of its aliases, or a host listed in auth.relaystate.allowed.hosts.