CVE-2026-120102: Asset store file read through server-side JavaScript module imports
Improper path restriction in the module loader of the server-side JavaScript engine (/api/js) in dotCMS 24.03.01 through 26.10.26-02 allows an authenticated backend user who can author server-side JavaScript, either with the Scripting Developer role or with permission to publish script files under an /application/apijs folder, to read files from the asset store, including file assets they have no permission to view. Fixed in 26.10.28-02 and later, and in LTS 25.07.10 v23 and later. JavaScript modules are now loaded through the content API instead of from raw file system paths.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
dotCMSto a version that resolves this vulnerability.Fixed in 26.10.28-02 - Upgrade
Upgrade
dotCMSto a version that resolves this vulnerability.Fixed in 25.07.10 v23
Event History
Frequently Asked Questions
Which users can exploit this issue?
An attacker must be an authenticated backend user who can author server-side JavaScript. This includes users with the Scripting Developer role or users permitted to publish script files under an /application/apijs folder.
Are all asset-store files exposed to those users?
Affected users may be able to read asset-store file assets even when they do not have permission to view those assets. The issue is limited to file reads through server-side JavaScript module imports.
Which releases contain the fix?
The issue is fixed in dotCMS 26.10.28-02 and later, and in LTS 25.07.10 v23 and later. The fix changes JavaScript module loading to use the content API rather than raw file system paths.