CVE-2026-120095: Stored XSS in the page template selector via template titles
Improper neutralization of the template title in the template selector label returned by the Templates REST API (/api/v1/templates) in dotCMS versions before 26.10.23-01 allows an authenticated backend user with permission to create or edit templates to store HTML that runs as script in the browser session of an administrator or other user who later opens the page template selector. Fixed in 26.10.23-01 and later. The template title and site name are now HTML-encoded in the selector label.
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.23-01 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 25.07.10
Event History
Frequently Asked Questions
Who can exploit this issue, and who is at risk from the stored payload?
An authenticated backend user who has permission to create or edit templates can store malicious HTML in a template title. The payload runs in the browser session of an administrator or another user who later opens the page template selector.
Are default template selector labels affected?
The issue is triggered by template titles supplied by a user with template creation or editing permissions. The affected selector label also includes the site name, which is HTML-encoded in the fixed release.
How can I determine whether an instance is vulnerable?
dotCMS versions before 26.10.23-01 are affected. Version 26.10.23-01 and later HTML-encode template titles and site names in the template selector label.