See how dotcms compares to other vendors in security performance
Three issues in dotCMS versions prior to 26.10.22-01, and 25.07.10 LTS prior to v23, were reported together. (1) Server-side request forgery in the temporary file upload by URL (POST /api/v1/temp/byUrl): an authenticated back-end user could make the server request internal addresses such as loopback, private networks or cloud metadata services and read the response as a temporary file. (2) Missing authorization on role membership reads (GET /api/v1/roles/{roleid}/users and related role and legacy DWR methods): a back-end user without administrator rights could list the members of any role, including CMS Administrator, with their names, email addresses and last login IP addresses. (3) The push publishing receiver wrote the complete bearer token of inbound requests to the application log at INFO level, so anyone with log access could reuse it. Fixed in 26.10.22-01 and later, and in 25.07.10 LTS v23. URLs fetched on a caller's behalf are now checked against internal address ranges before the request, at every redirect and at DNS resolution; reading role membership requires the CMS Administrator role or access to both the Roles and Users portlets; and the token is no longer logged.
Improper logging in the Login As REST endpoint (POST /api/v1/users/loginas, UserResource) in dotCMS versions before 26.11.18-01 causes several refused Login As requests, such as a request with no target user, a request to log in as oneself, or a request with a missing or wrong password for an administrator target, to write a security-log entry stating that the caller successfully logged in as the target user, directly after the error entry for the same request. A back-end user who holds the Login As role can use this to fill the security log with false impersonation records, which can mislead monitoring and incident response. In addition, a refused Login As request sent while the user is already impersonating another user cleared the stored original identity, so Logout As no longer worked and the session had to be ended. No privileges are gained: the session identity does not change on a refused request.
Fixed in 26.11.18-01 and later. The success entry is now written only after a Login As completes, every refusal returns before it, and a refused or failed request restores the session state it found, so an active Login As can still be ended with Logout As.
SQL injection in the Integrity Checker conflict-fix logic (POST /api/integrity/fixconflictsfromremote and the role, content type, folder and site integrity checkers) in dotCMS Enterprise versions before 26.11.17-01 allows a caller holding either an administrator API token or a configured push publishing endpoint secret to read and modify the dotCMS database. Identifiers taken from an uploaded conflict file were stored and later concatenated into SQL statements. On the endpoint-secret path no dotCMS user or administrator check applies, so a compromised or malicious sending server, or anyone holding the endpoint secret, could reach the receiving server's database.
Fixed in 26.11.17-01 and later. All values used in the integrity fix statements are now bound as parameters.
Missing authorization in legacy DWR role management methods (RoleAjax: addNewRole, updateRole, deleteRole, lockRole, unlockRole and addNewLayout) in dotCMS versions before 26.11.17-01 allows any authenticated back-end user with access to the Users portlet, without being an administrator, to create, modify, move, lock, unlock and delete roles. Because the CMS Administrator role could be moved under a role the user already holds, the user could gain CMS Administrator privileges, and from there any capability available to administrators, including installing plugins that run code on the server.
Fixed in 26.11.17-01 and later. The legacy methods were removed, role and tool group changes from the Roles & Tools screen now go through REST endpoints that require a CMS Administrator, and role moves now take effect immediately.
Exposure of sensitive information in the workflow Velocity context (VelocityUtil.getWorkflowContext) in dotCMS versions before 26.11.17-01 allows a back-end user with access to the Workflow Schemes portlet, without being an administrator, to read the company encryption key through Velocity evaluated by a workflow sub-action. The company key decrypts push publishing endpoint secrets and other values protected with it. In addition, the key was included in any JSON serialization of the company object unless each writer excluded it explicitly.
Fixed in 26.11.17-01 and later. The workflow Velocity context now exposes a view of the company without the key, and the key is excluded from JSON serialization by default.
Missing authorization in the legacy content import action (ImportContentletsAction, CSV template download command) in dotCMS versions before 26.11.17-01 allows any authenticated back-end user who can reach the content import screen through the legacy portlet layer to download the CSV import template of any Content Type, including types the user has no permission on. The template discloses the variable names and order of the type's importable fields and confirms whether a Content Type identifier exists. No content or stored data is disclosed and nothing is modified.
Fixed in 26.11.17-01 and later. The legacy command was removed and the template is now served by a REST endpoint that checks the caller's permission on the Content Type.
Missing authorization in the legacy workflow task screen (EditWorkflowTaskAction, view command) in dotCMS versions before 26.11.18-01 allows any authenticated back-end user who can reach the legacy portlet layer to open the screen for any workflow task by its identifier, including tasks on content the user has no permission to read. The screen loaded the task's content as the system user. The task's title, comments and history were not displayed to such a user, but the response disclosed the content's internal inode and language and confirmed whether a task identifier exists. Exploitation requires knowing a task identifier, which cannot be guessed.
Fixed in 26.11.18-01 and later. The task screen now loads the task and its content with the calling user's permissions and refuses tasks the user cannot access.
Improper authentication in the legacy login path (LoginFactory.doLogin) in dotCMS versions before 26.11.11-01 allows any authenticated user, including a front-end user, to sign in as another account, including a CMS Administrator, with any password on installations configured with the LDAP pre-authenticator (auth.pipeline.pre). When the directory did not authenticate the account, the login accepted the pre-authenticator's fallback result without checking the password stored in dotCMS. The path was reachable through credentials supplied in the request URI to several legacy back-end AJAX actions; in releases where ALLOWBASICAUTH defaults to JWTTOKEN it additionally requires ALLOWBASICAUTH=ALL. Default installations without the LDAP pre-authenticator are not affected. The REST, Basic and WebDAV logins were not affected.
Fixed in 26.11.11-01 and later. The legacy login now requires the password stored in dotCMS after the pre-authenticator answers, as the REST login already did, refuses inactive accounts on the directory path, and the legacy AJAX actions no longer accept user names and passwords in the request URI.
Incorrect authorization in the binary exporter servlet (BinaryExporterServlet, /contentAsset) and in legacy content editing code (the ContentletAjax DWR methods cancelContentEdit and saveContent, and ViewContentletAction) in dotCMS versions before 26.11.10-02 allows an authenticated back-end user who is able to set an attribute in their own HTTP session, for example through Velocity they can author, to delete any content item with all of its versions and to download binary files they have no permission to read. These code paths trusted a list of content identifiers from a session attribute that dotCMS no longer writes, and acted on every listed item as the system user.
Fixed in 26.11.10-02 and later. Every read of the unused session attribute was removed, so these paths now apply only the logged-in user's permissions.
Missing authorization in the publishing bundle API (BundleAPI.deleteAssetFromBundleAndAuditStatus and the bundle asset REST endpoints under /api/v1/bundles) in dotCMS versions before 26.11.17-01 allows any authenticated back-end user, including one with no portlet access and no publishing permissions, to remove queued assets from publishing bundles owned by other users, including scheduled bundles, and to add assets to them. The same check was missing in the legacy unpushed bundles page and the legacy add-to-bundle action. This disrupts the publishing workflow by silently cancelling or altering pending pushes; the underlying content is not deleted.
Fixed in 26.11.17-01 and later. Changing what a bundle contains now requires the bundle owner or a CMS Administrator, the same rule as deleting a bundle; other users receive an access denied response. The 25.07 LTS line is affected through the legacy page and action.
Incorrect authorization in the $macro Velocity view tool (DotCMSMacroWebAPI methods getMediaGalleryFolderFiles and getEvents) in dotCMS versions before 26.11.10-02 allows a back-end user who can author Velocity that renders on a page to list file assets in folders, and event content, that the viewer has no permission to read, on any site the code names. These methods read folders, files, categories and content as the system user instead of the requesting user, so the listing, including file names, titles, paths and descriptions, is also shown to anonymous visitors of the page.
Fixed in 26.11.10-02 and later. Both methods now read as the requesting user (anonymous when nobody is logged in) and honor front-end permissions, so each viewer sees only files and events they can read. Galleries over folders that the visitor cannot read now show fewer files.
Missing authorization in the $crypt Velocity view tool (CryptWebAPI) in dotCMS versions before 26.11.17-01 allows any back-end user who can author Velocity that renders, such as widget, template, container or VTL file code, without the Scripting Developer role, to decrypt any value that dotCMS stores encrypted with the instance company key. This includes push publishing endpoint authentication keys, which give access to the receiving side of other push publishing environments. The tool could also be used as a general encryption and decryption oracle for the company key.
Fixed in 26.11.17-01 and later. $crypt.decrypt now only works in code last saved by a user with the Scripting Developer role, the same rule already applied to other restricted tools; Velocity with no recorded author, such as content fields rendered on a page, can no longer decrypt. Encryption with $crypt.crypt is unchanged.
Observable timing discrepancy in the forgot password REST endpoint (POST /api/v1/forgotpassword) in dotCMS versions before 26.11.06-03 allows an anonymous attacker to determine whether an account exists. The endpoint returned the same status and body for existing and unknown accounts, but the account lookup, reset token write and email delivery ran on the request thread only for existing accounts, so requests for a valid account took measurably longer. An attacker can use repeated timed requests to confirm valid accounts and then target them with phishing or credential attacks. Only account existence is disclosed.
Fixed in 26.11.06-03 and later. The endpoint now validates the input and returns the same response immediately for every value; the account-dependent work runs on a bounded background pool, so response times no longer depend on whether the account exists.
Missing authorization in content creation (ESContentletAPIImpl.checkPermission) and in the Variants REST API (/api/v1/variants) in dotCMS versions before 26.11.17-01 allows a back-end user who holds WRITE permission on a content type to create content, including file assets, on any site or folder of the instance, even without any permission on that site, because new content was checked only against the content type. In the same versions any authenticated back-end user could create variants, and promoting a variant replaced page layouts without checking the user's permission on the affected pages.
Fixed in 26.11.17-01 and later. Creating content now also requires Add Children permission on the destination site or folder, the Variants API requires the Experiments tool, and promoting a variant checks PUBLISH or EDIT permission on every affected content item and PUBLISH permission on every affected page before any change is made.
Missing authorization in the legacy DWR tag service (TagAjax) and the REST tag endpoints (/api/v1/tags, /api/v2/tags) in dotCMS versions before 26.11.17-01 allows any authenticated back-end user, with no portlet access, to add tags to and read tags from another user's profile, which feed personalization, and to rename tags. Users with the Tags portlet could also read other users' profile tags and read or link tags on content they had no permission to read or edit.
Fixed in 26.11.17-01 and later. Profile tags of another user now require that user, an administrator or Users portlet access; tag management requires the Tags portlet; tag operations on content check READ or EDIT permission on that content; and unused DWR tag methods were removed.
Deserialization of untrusted data in the XStream reader used for push publishing bundles (XStreamHandler) in dotCMS versions before 26.11.06-03 allows a back-end user who can upload bundles (Publishing Queue access), or a sender holding a push publishing endpoint credential, to have the server rebuild arbitrary Java types from a crafted bundle. The type trusted list was logged but not enforced, and with gadget classes available on the classpath this can lead to remote code execution as the dotCMS service account.
Fixed in 26.11.06-03 and later. Bundle reads now rebuild only the types on a narrowed trusted list (shaded third-party libraries are excluded); a bundle naming any other type fails to import and the failure names the refused type. Installations whose bundles legitimately carry custom or plugin classes can add their packages with the xstream.trusted.list.extra.patterns property.
Server-side request forgery in the outbound address guard (IPUtils, CircuitBreakerUrl) used by downloads by URL (/api/v1/temp/byUrl), CSV import of binary URLs and the $json/$import Velocity tools in dotCMS versions before 26.11.17-01 allows any authenticated user, and anonymous callers on instances configured to allow anonymous content writes and anonymous temp-file uploads, to make the server request internal addresses when the REMOTECALLSUBNETBLACKLIST property is set. A configured list replaced the built-in checks instead of adding to them, so loopback, link-local and IPv6 internal addresses not named in the list were reachable, and some reserved ranges were missing from the built-in checks. The URL probe also ran before the administrator-only setting for downloads by URL was checked, and the guard settings could be changed by an administrator through the System Table.
Fixed in 26.11.17-01 and later. A configured blacklist now adds to the built-in checks, which cannot be lowered for loopback, unspecified or metadata addresses; the missing reserved ranges are refused; IPv6 targets are refused unless explicitly allowed; the administrator-only check runs before any request leaves the server and the probe is size-capped; downloads by URL are limited to an allow list of file extensions; and the guard settings are read only from environment variables or the properties file.
Path traversal in the legacy DWR methods CalendarAjax.saveEvent and ContentletAjax.saveContent in dotCMS versions before 26.11.17-01 allows any authenticated back-end user, with no portlet access, to use an unsanitized form field name to escape the user's temporary upload folder. Through CalendarAjax.saveEvent this deletes a file elsewhere on the server that the dotCMS process can write, and through ContentletAjax.saveContent it copies a file from outside the temporary folder into the asset store. Exploitation requires that the user's per-field temporary upload folder already exists on the server.
Fixed in 26.11.17-01 and later. CalendarAjax.saveEvent has been removed from the DWR interface, and ContentletAjax.saveContent only looks up a staged file for fields that are real binary fields.
Weak authentication in WebDAV (DotWebdavHelper) in dotCMS versions before 26.11.06-03 and the 25.07 LTS line before v27 allows anyone who holds any valid dotCMS JSON Web Token for a user, including the browser login token issued at back-end login, to use it as the Basic authentication password and get read and write access to the content store over WebDAV as that user. The token was accepted without checking its type or that it belonged to the named account, so a leaked or stolen login token became a long-lived WebDAV credential.
Fixed in 26.11.06-03 and later, and in 25.07 LTS v27. By default WebDAV now accepts only a valid, non-revoked API token belonging to the named account; browser login tokens are rejected, and real passwords are no longer accepted unless an administrator enables them with ALLOWBASICAUTH=ALL. From 26.11.17-01, each token-based WebDAV authentication decision is also recorded in the security log.
Improper access control in the content search and asset delivery paths (GraphQL search and collection queries, the REST content search and content endpoints, and the /dA and /contentAsset asset servlets) in dotCMS versions before 26.11.06-03 allows anonymous users and front-end users to list and read content that is live only in a non-default variant, in practice the variant content of running A/B experiments, including file assets that exist only in a variant. Variant content was not limited to the visitors routed into that variant, so anyone could retrieve every variant of a running experiment, and any content left live in a variant after an experiment ended. Unpublished content in the default variant was not exposed.
Fixed in 26.11.06-03 and later. For callers who are not back-end users, content searches and lookups by identifier or inode now resolve to the default variant, and asset requests for a version that lives in another variant are refused. Back-end users keep access to variant content.
Server-side request forgery in the Edit Mode Anywhere (EMA) proxy (EMAWebInterceptor) in dotCMS versions before 26.11.06-03 allows any authenticated back-end user, without any portlet access, to override the configured EMA proxy endpoint through a request parameter and make the dotCMS server send the full edit-mode page render, including the page's content, containers and template data, as a POST request to an arbitrary URL. The override was not validated against an allowlist or a private-network check, so it could also be used to reach internal network services from the dotCMS server. Only sites that have the Edit Mode Anywhere App configured are affected.
Fixed in 26.11.06-03 and later. Edit Mode Anywhere has been removed; sites that used it should use the Universal Visual Editor App, for which dotCMS makes no server-side request to the external site.
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.
Inclusion of sensitive information in the starter export (Maintenance, Download Starter, /api/v1/maintenance/downloadStarter) in dotCMS through 26.11.03-01 wrote the installation's company encryption key into the starter zip. The key is never used when a starter is imported, but it decrypts data that the same installation stores encrypted, including push publishing endpoint authentication keys (API tokens of receiving servers and AWS S3 access keys) and one layer of Apps secrets. Only a CMS Administrator with the Maintenance tool can export a starter, but anyone who later obtains the zip together with a database dump or backup of the same installation can decrypt those credentials. Fixed in 26.11.06-03 and later: the starter export no longer contains the company key.
Use of a shared cache containing sensitive information in the content REST API in dotCMS through 26.11.03-01 allows later readers of a contentlet to receive the related content that an earlier, more privileged user loaded for it. When a user read content with related content included (GET /api/v1/content/{id}?depth=N, which the content editor requests whenever an editor opens existing content), the related contentlets as that user saw them, including items others may not read, unpublished drafts and never-published content, were written into the cached copy of the contentlet. Every later reader of that contentlet through the content REST endpoints or content search then received them until the entry left the cache. Under the default anonymous content API setting (CONTENTAPISALLOWANONYMOUS=READ) no authentication is required; otherwise any authenticated user who can read the parent contentlet can see the leaked data. Fixed in 26.11.06-03 and later: reading related content no longer changes the cached contentlet.
Improper privilege management in the Job Scheduler in dotCMS allows a back-end user who can save scheduled jobs to schedule the built-in content import job, which then imported the user's CSV file as the system user. The user can create and publish content in content types and sites they have no permission to write, and the job also creates a directory and writes an import report on the server. On releases before 26.10.29-01 any back-end user with access to a single tool could reach the Job Scheduler (see SI-119); from 26.10.29-01 it takes a non-administrator who holds the Scheduler tool. Fixed in 26.11.06-03 and later: a scheduled content import now runs as the user who saved the job, with that user's content permissions.
Missing secure processing in the XSLT transformer of the Velocity $xslttool view tool in dotCMS allows a back-end user who can author Velocity code that is allowed to call the tool (the Scripting Developer role, with scripting enabled through ENABLESCRIPTING) to call Java methods from an XSLT stylesheet and so execute arbitrary code on the server as the dotCMS service user. Whether the code runs depends on the Java runtime's default for XSLT extension functions: it is exploitable with a default configuration on releases that run on Java 21 or earlier, which includes every 25.07.10 LTS release and mainline releases through 26.06.02-01. Mainline releases 26.06.04-01 through 26.10.29-01 run on Java 25, which blocks extension functions by default, and are exploitable only when the JVM is started with extension functions enabled. Fixed in 26.11.02-01 and later: the tool's XSLT transformer now always enables secure processing, which disables extension functions regardless of the Java version.
Two weaknesses in the legacy content type delete dependency check (the StructureAjax.checkDependencies DWR method and the legacy Content Types screens) in dotCMS versions through 26.11.03-01, including the 25.07.10 LTS line. First, the dialog inserted container titles into the page as HTML, so an authenticated back-end user who can edit a container's title could store markup that runs as script in the browser session of an administrator or other user who tries to delete a content type that uses the container. Second, any back-end user with READ on a content type could list every container that uses it, with titles, identifiers and site names, including containers they had no permission to read.
Fixed in 26.11.06-03 and later. The DWR method has been removed; the delete dialog now lists containers through the containers REST API, which returns only the containers the user can read, and displays their titles as text. From 26.11.09-01 the legacy Content Types portlet is retired.
Stored cross-site scripting in the workflow step edit dialog and the legacy Content Search portlet in dotCMS versions before 26.11.10-02 and the 25.07 LTS line before v28 allows a user who can edit workflow schemes, or content type fields and categories, to store markup in a workflow action name, workflow step name, field name, field option or category name that runs in the browser of another back-end user when that user opens the step edit dialog or searches content in the legacy Content Search. Script runs in the victim's authenticated dotCMS session and can act with that user's permissions. Exploitation requires the ability to edit workflow schemes or content types and a victim who opens one of the affected screens. This complements the fix for stored XSS in workflow scheme names and descriptions (SI-98), which did not cover these screens.
Fixed in 26.11.10-02 and later, and in 25.07 LTS v28. The affected names and labels are now HTML-encoded before they are written to the page.
An observable timing difference in username and password authentication (UserManagerImpl) in dotCMS versions before 26.11.17-01 allows an anonymous attacker to determine whether an account exists for a given email address or user ID. A failed login for an existing account took measurably longer than one for a non-existent account, because the password hash was only computed when an account matched, while both returned the same response. The affected paths include the REST login, the back-end login, the API token endpoint and Basic authentication. Exploitation requires repeated timing measurements; no account data other than the existence of the account is disclosed.
Fixed in 26.11.17-01 and later. A login for a non-existent account now runs the same password verification step against a placeholder hash, so both cases take the same time.
An authentication bypass in the native password check (LoginFactory.passwordMatch) in dotCMS versions before 26.11.09-01 allowed a login to succeed when the supplied password equalled the account's stored password value, for any account whose stored value was not in the current secure hash format. Accounts created through SAML single sign-on, and LDAP or CAS directory accounts on some configurations, were stored with such values. An unauthenticated attacker who knew a directory account's login name, or who obtained the stored password value of a SAML-provisioned account, could sign in as that user through the native login, the REST authentication API and other password-checking paths, including as an administrator when the account held administrative roles. Default installations that use only local accounts with hashed passwords had no affected accounts.
Fixed in 26.11.09-01 and later. Passwords are now compared only through the hash verifier, reserved placeholder values are rejected, and SAML, LDAP and CAS accounts are given a secure hash of a random secret.