CVE-2026-121988: Stored XSS in the legacy custom field page of the content editor
Stored cross-site scripting in the legacy custom field page (legacy-custom-field.jsp) that the content editor loads in a frame for legacy VTL custom fields, in dotCMS through 26.10.28-03 (and the 25.07 LTS line through 25.07.10 v25). Contentlet field values and field definitions were written into an inline script without script-context encoding. A low-privileged back-end user who can edit a field on a contentlet of a content type with a legacy custom field could store markup that runs in the session of any editor or administrator who later opens that contentlet, giving the script that user's API access. Fixed in 26.10.29-01 and later, and in LTS 25.07.10 v26. The page now encodes all values it writes into its scripts.
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.29-01 - 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
Who is exposed to this issue?
Instances are exposed when they use a content type with a legacy VTL custom field and a low-privileged back-end user can edit a field on a contentlet of that type. Editors and administrators who subsequently open the affected contentlet can have code run in their authenticated session.
What access does an attacker need?
The attacker needs low-privileged back-end access and permission to edit a field on a contentlet associated with a content type that has a legacy custom field. The attacker does not need the privileges of the eventual victim; the stored payload runs when another editor or administrator opens the contentlet.
Which releases contain the fix?
The issue is fixed in dotCMS 26.10.29-01 and later, and in the 25.07 LTS line beginning with 25.07.10 v26. Affected releases include versions through 26.10.28-03 and the 25.07 LTS line through 25.07.10 v25.