CVE-2026-120092: Folder scripts saved by non-scripting users run for anonymous visitors
Missing authorization in the file-based scripting endpoints /api/vtl/{folder} and /api/js/{folder} in dotCMS through 26.10.29-01 allows a backend user with ordinary content-authoring permissions (write and publish) on a folder under /application/apivtl or /application/apijs, and without the Scripting Developer role, to save a Velocity or JavaScript file that the server then executes for any unauthenticated visitor who requests that folder. The inline /api/vtl/dynamic and /api/js/dynamic endpoints require the Scripting Developer role, but the file-based endpoints did not check who wrote the file.
Fixed in 26.11.02-01 and later. Folder scripts now run only when the user who last saved them holds the Scripting Developer role or is a CMS Administrator; otherwise the endpoint answers 403.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
dotCMSto a version that resolves this vulnerability.Fixed in 26.11.02-01 - Upgrade
Upgrade
dotCMSto a version that resolves this vulnerability.Fixed in 25.07.10
Event History
Frequently Asked Questions
Who can exploit this issue?
A backend user with ordinary write and publish permissions on a folder under /application/apivtl or /application/apijs can exploit it. The user does not need the Scripting Developer role.
Are all scripting endpoints affected?
No. The issue affects file-based scripts served through /api/vtl/{folder} and /api/js/{folder}; the inline /api/vtl/dynamic and /api/js/dynamic endpoints require the Scripting Developer role.
What access does an attacker need for the script to execute?
After saving the script in an affected folder, the attacker only needs an unauthenticated visitor to request that folder's endpoint. The server executes the saved Velocity or JavaScript file for that visitor.
How can I determine whether a system is affected?
dotCMS through 26.10.29-01 is affected. Review users with write and publish permissions on folders under /application/apivtl and /application/apijs, and inspect scripts in those locations for files last saved by users who are neither Scripting Developers nor CMS Administrators.
What changes after applying the fix?
In 26.11.02-01 and later, folder scripts run only if the user who last saved them has the Scripting Developer role or is a CMS Administrator. Otherwise, the file-based endpoint returns HTTP 403.