CVE-2026-126111: Code execution through XSLT extension functions in the Velocity XSLT tool
Missing secure processing in the XSLT transformer of the Velocity $xslttool view tool in dotCMS allows a back-end user who can author Velocity code that is allowed to call the tool (the Scripting Developer role, with scripting enabled through ENABLESCRIPTING) to call Java methods from an XSLT stylesheet and so execute arbitrary code on the server as the dotCMS service user. Whether the code runs depends on the Java runtime's default for XSLT extension functions: it is exploitable with a default configuration on releases that run on Java 21 or earlier, which includes every 25.07.10 LTS release and mainline releases through 26.06.02-01. Mainline releases 26.06.04-01 through 26.10.29-01 run on Java 25, which blocks extension functions by default, and are exploitable only when the JVM is started with extension functions enabled. Fixed in 26.11.02-01 and later: the tool's XSLT transformer now always enables secure processing, which disables extension functions regardless of the Java version.
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.11.02-01 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 25.07.10 LTS v28
Event History
Frequently Asked Questions
Which users can exploit this issue?
A back-end user must be able to author Velocity code, have the Scripting Developer role, and be permitted to use scripting through ENABLE_SCRIPTING. The Velocity code must also be allowed to call the $xslttool view tool.
Are default deployments affected?
Deployments running on Java 21 or earlier are exploitable with the default Java configuration, including all 25.07.10 LTS releases and mainline releases through 26.06.02-01. Mainline releases from 26.06.04-01 through 26.10.29-01 run on Java 25 and require the JVM to have XSLT extension functions explicitly enabled.
What can be done before upgrading?
Disable scripting through ENABLE_SCRIPTING or ensure users who can author Velocity code cannot call the $xslttool. On Java 25 deployments, do not start the JVM with XSLT extension functions enabled.
What is the impact if exploitation succeeds?
An authorized back-end user can invoke Java methods from an XSLT stylesheet and execute arbitrary code on the server. The code runs as the dotCMS service user.
Which versions contain the fix?
dotCMS 26.11.02-01 and later enable secure processing for the tool's XSLT transformer, disabling extension functions regardless of the Java version.