CVE-2026-126116: Cross-site JavaScript module read in the server-side JavaScript engine
Incorrect authorization in the module loader of the server-side JavaScript engine (/api/js) in dotCMS through 26.11.09-01 allows a back-end user who can run or publish server-side JavaScript (the Scripting Developer role, or permission to publish script files under an /application folder) to read JavaScript modules stored under the /application/ folder of another site by importing them through a site-qualified path, even when the user has no permission on that site or module. Modules imported this way were read with system privileges. An anonymous visitor could also receive such a module through a published folder script that imports it. Fixed in 26.11.10-02 and later: imported modules are now read with the permissions of the user the script runs as, and a module that user cannot read is reported as not found.
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.10-02 - 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
Who can exploit this issue?
A back-end user who can run or publish server-side JavaScript can exploit it. This includes users with the Scripting Developer role or permission to publish script files under an /application folder; an anonymous visitor may receive exposed module content through a published folder script created by such a user.
What content can be accessed across sites?
Affected users can import and read JavaScript modules stored under another site's /application/ folder by using a site-qualified path, even without permission to that site or module. The imported module is read with system privileges in affected versions.
Are default permissions sufficient to prevent exposure?
No. The issue bypasses the target site's and module's read permissions when a qualified import is made by a script that the attacker can run or publish. Restricting who can create, publish, or execute server-side JavaScript is relevant until remediation is applied.
What can be done if updating is not immediately possible?
Limit the Scripting Developer role and remove or restrict permission to publish script files under /application folders. Review published folder scripts for site-qualified imports that reference modules belonging to other sites.
How can I determine whether the issue is fixed?
The issue is fixed in 26.11.10-02 and later. In fixed versions, imported modules are read using the permissions of the user under which the script runs, and inaccessible modules are returned as not found.