Hotfixes enable you to fix problems and apply updates to your Kentico Xperience instance. You can view the list of fixed bugs on the Kentico DevNet portal (opens in a new tab).
To obtain source code hotfixes, please use the Kentico Client Portal (opens in a new tab).
The instructions on this page apply only to the source code version of Xperience. For standard installations, please see Hotfix Instructions - Xperience 13.
Note
Always back up your project files and database before applying a hotfix.
To successfully complete the hotfix, your administration project, database and live site project must all be updated to exactly the same version. See Applying the hotfix and its subsections for details.
Kentico Xperience 13 Refreshes are released in the form of hotfixes. Follow the standard hotfix instructions described on this page to apply Refreshes to your project.
Release | Hotfix | Additional information |
|---|---|---|
Refresh 1 | 13.0.16 or newer | Instructions and manual stepsRelease notes |
Refresh 2 | 13.0.31 or newer | Instructions and manual stepsRelease notes |
Refresh 3 | 13.0.43 or newer | Release notes |
Refresh 4 | 13.0.52 or newer | Release notes |
Refresh 5 | 13.0.64 or newer | Release notes |
Refresh 6 | 13.0.73 or newer | Release notes |
Refresh 7 | 13.0.83 or newer | Instructions and manual stepsRelease notes |
Refresh 8 | 13.0.94 or newer | Release notes |
Refresh 9 | 13.0.104 or newer | Release notes |
Refresh 10 | 13.0.115 or newer | Release notes |
Refresh 11 | 13.0.131 or newer | Release notes |
Refresh 12 | 13.0.142 or newer | Release notes |
Refresh 13 | 13.0.167 or newer | Release notes |
Refresh 13 | 13.0.197 or newer | Release notes |
By default, the installer places the hotfix into the C:\Program Files\Kentico\<version>\Hotfix<version> folder.
To apply the hotfix to websites that use a local source code development instance, use the following general process:
Hotfixing Microsoft Azure applications
If your website is hosted on Microsoft Azure, the recommended hotfix process is the same as outlined above. First apply the hotfix to a local instance, then redeploy to Azure and run the hotfix SQL script against your production database.
Note: For further information, see: Upgrading and hotfixing an instance
Run Kentico Hotfix Utility (Hotfix.exe) from the location where you installed the hotfix (C:\Program Files\Kentico\<version>\Hotfix<version> folder by default).
Select your project folder using the Browse button or type in the path to the project manually.
Use the utility to back up your project files and/or database (or skip these steps if you already have backups).
Select which components you want to update. Click Switch to advanced mode if you wish to change the settings.
Source files – all files in the source code, except for the administration web project in the CMS folder
Setup files – the Xperience installer and external utilities (which are separate from the web project)
SQL script – the database structure and data
Kentico Xperience files – the administration project files in the CMS folder
We recommend updating all components. To successfully complete the hotfix, you need to update the files of your web project and apply the SQL script to the database.
Choose a method of taking the project offline and back online.
Click Next to start the update procedure.
After the update finishes, click Next to view any problems that may have occurred and the instructions to solve them.
Errors that can commonly occur are conflicts with customized files. By default, the hotfix does not overwrite modified files (unless you enable the Overwrite all files option in advanced mode):
Open the solution in Visual Studio and Rebuild the solution.
Access the URL of your Xperience administration application in a browser (opening the live site is not sufficient).
If you do not wish to go through the user interface of the Hotfix Utility, you can create the hotfixed project files manually using the command line. For example, this can be useful if you wish to integrate the hotfix into a more complex scripted procedure.
Navigate to the location where you installed the hotfix (C:\Program Files\Kentico\<version>\Hotfix<version> folder by default).
Run Hotfix.exe from the command line with the /deploy and /path parameters:
Example: Hotfix.exe /deploy /path=Deploy
Creates a folder named Deploy in the directory from which the utility was executed, and copies all files and folders necessary for updating a source code project to the given hotfix version.
Copy the update files created by the Hotfix Utility into your Xperience project (overwrite the original files).
Open DeletedFiles.xml in the update file directory and delete all of the listed files from your web project (you can prepare a batch file to automate the process).
Open the solution in Visual Studio and perform the following steps:
In addition to applying the hotfix to your Xperience source code project (see above), you also need to update the Xperience code used by your live site (MVC) application:
Update your production database as the last step in the hotfix process, after you test the hotfix locally. This ensures minimum downtime for your live site while avoiding loss of data.
The hotfix version of the database must match the version of the web project, so you need to perform the update together with the redeployment of the hotfixed project files.
Note: On websites that contain a very large amount of data (particularly pages), the database hotfix process can be very resource intensive. You may need to temporarily scale up the performance of your database server and/or increase the database connection timeout.
To update your production database, manually execute the hotfix database scripts (for example using SQL Management Studio). The script files are located in the SQL folder of your hotfix installation directory.
Once the database update is complete, you need to access the URL of your Xperience administration application in a browser (opening the live site is not sufficient). When handling the first request, the system performs certain tasks required to complete the hotfix. Processing of the first request may take longer than usual.
After your administration application loads up, open the Event log application to validate that the hotfix procedure was completed successfully. Check for the presence of any error events with the HotfixProcedure Source.
All users who work with the Xperience administration interface should clear the cache in their browsers after applying the hotfix. Otherwise, some features in the administration interface may not be displayed correctly.
After applying the hotfix to a development instance that has continuous integration enabled, you need to run complete serialization for all objects to recreate the content of the CIRepository folder (use the Continuous integration application in the Xperience administration interface). Apply the hotfix separately for each instance in your development environment. After one developer commits the hotfixed changes to the source control, other developers CANNOT commit or load changes until they apply the hotfix to their own instance.
Hotfixes provide bug fixes for all files related to the Xperience installation, which includes the installer and other external utilities, such as Kentico Installation Manager and Kentico Service Manager.
To update these files and utilities, you need to apply the hotfix to the setup files:
The hotfix makes any required changes to the files in the directory where you installed your Xperience setup files.
Adding media files using the Rich text widget in page builder content
Adding media files using the editor for page fields based on the the Rich text editor form control
Selecting media files in page fields based on the Media selection form control
Note: Files accessed through a direct path are not handled by the Xperience system – no permission or security restrictions are enforced and image resizing is not applied. Additionally, direct file links may become broken in certain deployment scenarios if your instances each use a different location or container for media files.
Important
After applying hotfix 13.0.5, you may encounter an error when creating new media libraries.
To fix the problem, either apply hotfix 13.0.9 or newer, or alternatively re-sign macros using the System application in Macros -> Signatures.
Filesystem handling for ASP.NET Core applications on Linux – The hotfix addresses a number of filesystem-related issues encountered when hosting ASP.NET Core live site applications in Linux environments. The issues were primarily caused by a dependency on Windows-like filesystem conventions, so mostly impacted features reliant on Input/Output operations. The following is a non-exhaustive list of affected features: media library operations (insert, modify, delete), smart search (running indexing tasks, index rebuilds), web farm synchronization, scheduler functionality run on the live site.
The hotfix additionally introduces a new approach for detecting absolute and relative paths on Unix-like filesystems. This applies only to ASP.NET Core applications hosted on Linux. Since both relative and absolute paths on Unix-like filesystems begin with a forward slash ('/'), Xperience cannot determine whether a path segment is absolute or relative. For example, this is important when determining the location of media library content, or in general whenever it is necessary to prepend relative path fragments with the physical path to the web application.
By default, the system uses the following process to detect the path type:
You can override this behavior by adding the CMSUnixRootedPathPrefixes configuration key to the Core application. Adding the key disables the process described above. Instead, the key needs to contain a semicolon-delimited list of all path prefixes (e.g., /etc/, /var/, /mnt/share/) the system should treat as absolute. The list must be case-sensitive.
{
"CMSUnixRootedPathPrefixes": "/etc/;/var/;/mnt/share/"
}Only use the CMSUnixRootedPathPrefixes configuration key if your project contains non-standard filesystem mapping (e.g., for media library files), or if you encounter issues with the built-in path type detection mechanism. The default functionality covers all expected cases and filesystem configurations.
Rich text editor – The hotfix updates the Rich text editor component for the page builder to use version 3.2.6 of the Froala WYSIWYG editor. The update resolves an issue where adding a new line caused the page to scroll down to the bottom of the rich text editor content (when the content was very long).
Search – The Search fields tab in the page type editing interface was only available for page types that had the URL feature enabled. After applying the hotfix, the search configuration is displayed for all page types that have either custom fields or the URL feature. The change allows searching for page items that hold content, but do not need their own URL.
For detailed information about the new features and changes in Xperience 13 Refresh 1, refer to the Release notes.
Source code – To ensure that source code projects work and compile correctly after applying the refresh, you need to install the AngleSharp NuGet package into the Search project (right-click the project in the Solution Explorer and select Manage NuGet Packages). The package version must be 0.14.0 (or newer).
Search – Applying the Refresh automatically converts all existing page search indexes to a new type that combines the original Pages crawler and Pages indexes. The data source for indexing (page HTML output and/or structured fields) can instead be configured separately for individual page types. See Defining local page indexes to learn more.
Web farms – In hosting environments that dynamically adjust the number of instances (e.g., autoscaling in Azure App Services), deactivated web farm servers always remained in the system with the Not responding status for 24 hours. See Troubleshooting web farms. This could cause performance problems and heavy database load due to large numbers of unnecessary synchronization tasks generated after scaling down the number of servers. The hotfix adds the option to adjust the interval for which web farm servers stay in the Not responding status before being deleted. To change the default interval of 24 hours, set the new CMSWebFarmNotRespondingInterval configuration key to the required number of minutes, e.g., 120 for 2 hours.
"CMSWebFarmNotRespondingInterval": 120,<add key="CMSWebFarmNotRespondingInterval" value="120" />Azure Search – It was not possible to change the domain name suffix of requests generated by the system for Azure search services (e.g., myazuresearchservice.search.windows.net). By default, the system assumes your Azure Search services are hosted on the search.windows.net domain (true for the majority of commercial subscriptions). Search requests for Azure indexes are generated using this suffix and the provided search service name. However, certain Azure subscriptions or licenses host search services under a different domain. For example, Azure Government (opens in a new tab) subscriptions use the search.azure.us domain. The hotfix introduces the new CMSAzureSearchDnsSuffix configuration key, which allows you to change the suffix used by the system when generating Azure search requests.
"CMSAzureSearchDnsSuffix": "search.azure.us",<!-- Configures the system to generate requests in format: myazureservice.search.azure.us -->
<add key="CMSAzureSearchDnsSuffix" value="search.azure.us" />Navigate to the FormEngine project in the solution (under Libraries/Platform/BaseModules).
Select the project to edit the FormEngine.csproj file.
Update the <!-- Full framework references --> section to include a reference to the System.Net.Http assembly:
<!-- Full framework references -->
<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
<Reference Include="System.Web" />
<Reference Include="System.Net.Http" /> <!-- Reference added for hotfix 13.0.51 -->
</ItemGroup>Save the changes and rebuild your solution.
Skip the 13.0.55 instructions if you are applying hotfix 13.0.57 or newer.
Performance – The system incorrectly streamed data into the application memory when serving non-HTML content. This could lead to heavy memory allocation when returning large files or other types of data in action results. For example, the problem occurred for the default file handlers, such as /getresource and /getmedia or for custom endpoints that returned file content. The hotfix optimizes this type of memory usage for ASP.NET Core projects. Additionally, the hotfix introduces the DisableUrlResolutionAttribute, which developers can use to disable memory allocation for custom controller actions that return non-HTML content (e.g., PhysicalFileResult).
using System.IO;
using Microsoft.Extensions.FileProviders;
using Kentico.Web.Mvc;
...
[DisableUrlResolutionAttribute]
public ActionResult Index()
{
PhysicalFileProvider? fileProvider = new PhysicalFileProvider(Directory.GetCurrentDirectory());
IFileInfo? file = fileProvider.GetFileInfo("./large_file.txt");
HttpContext.Response.Headers.Add("Cache-Control", "no-store");
return PhysicalFile(file.PhysicalPath, "application/octet-stream", file.Name, true);
}DisableUrlResolutionAttribute disables resolution of relative URLs, and should not be added to endpoints that return HTML content from Xperience.
Security – Visitors can potentially submit forms containing malicious HTML values. By default, form notification and autoresponder emails do not encode displayed field values. This can lead to potential HTML injection if the recipient’s email client is configured to display HTML content. The hotfix adds a new CMSBizFormMailEncodeFields configuration key, which you can add to the project’s appsettings.json or web.config file. If set to true, autoresponder and notification emails encode the values of the submitted form’s fields. Add the key to both your live site and administration projects.
"CMSBizFormMailEncodeFields": true,<add key="CMSBizFormMailEncodeFields" value="true" />To use OAuth authentication for an email server, you need to prepare credentials in Xperience and generate an access token. For detailed information, see OAuth for email servers.
By default, the system includes an OAuth provider for Microsoft Exchange Online. Other services require implementation of a custom provider.
Applying the hotfix hides obsolete settings related to the protocol (Is SSL) and authentication mechanism of the email server connection. The new email implementation automatically uses the most secure protocol (HTTPS) and authentication mechanism (NTLM, SCRAM, MD5, Plain, etc.) supported by the email server.
MailKit NuGet package
The hotfix adds the MailKit 3.3.0 (opens in a new tab) NuGet package as a dependency to both the administration and live site projects. This may cause conflicts if your projects contain custom functionality using other versions of this package. In this case, you may need to delay the hotfix and adjust your custom implementation to be compatible.
For detailed information about the new features and changes in Xperience 13 Refresh 7, refer to the Release notes.
To ensure that source code projects compile correctly after applying the refresh, you need to manually change the target framework for the following projects from ASP.NET Core 3.1 to .NET 6:
This requirement is temporary and will be fixed within the next couple of hotfix releases.
To change the target framework, follow these steps individually for each project:
The solution is now compilable.
Rich text editor – To improve security of the Rich text editor component for the page and form builder, the hotfix introduces sanitization of the content's HTML code, performed by the HtmlSanitizer NuGet package (opens in a new tab).
Breaking change
The sanitization may result in modified or broken HTML code, for example when adding content via the editor's Code View option. To learn which HTML tags and attributes are allowed, see the default options described in HtmlSanitizer (opens in a new tab).
Later hotfixes update the HTML sanitization:
Source code – To ensure that source code projects compile correctly after applying the hotfix, you need to install the HtmlSanitizer NuGet package (opens in a new tab) into the Kentico.Content.Web.Mvc project (right-click the project in the Solution Explorer and select Manage NuGet Packages). The package version must be 5.0.376.
Scheduler – The hotfix introduces two new configuration keys that facilitate the development and testing of scheduled tasks in local environments. When developing on local instances that run on specific ports, you need to use the following keys to set the full application URL to ensure correct scheduler functionality:
CMSSchedulerAdministrationUrl | Ensures the URL of the administration application for local scheduler development. Supply the full URL of the administration project in the format: <scheme><domain><port><virtual directory> Add this key to the web.config file of the administration project: XMLExample - web.config |
CMSSchedulerPresentationUrl | Ensures the URL of the live site application for local scheduler development. Supply the full URL of the live site application in the format: <scheme><domain><port><virtual directory> Add this key to the web.config or appsettings.json files of both the administration and live site projects: XMLExample - web.config JSExample - appsettings.json |
For more information, see Scheduling custom tasks.
The hotfix updates many project files in the source code solution to the SDK-style format (opens in a new tab). Applying the hotfix replaces the affected existing project files. If you have any custom NuGet packages or projects referenced in the affected files, you will need to add the references again after applying the hotfix.
The following project files are affected:
Test projects:
Due to a background maintenance issue identified at the last second, the source code solution will not be compilable after applying hotfix 13.0.100.
To make the solution compile, place the following web.config file into ~/CMS/App_Data/Setup/WebConfig/net48/
<?xml version="1.0"?>
<configuration>
<appSettings />
<connectionStrings />
<system.web>
<customErrors mode="RemoteOnly">
<error statusCode="500" redirect="~/CMSMessages/Error.aspx" />
</customErrors>
<sessionState mode="InProc" timeout="20" />
</system.web>
<system.webServer>
<modules />
</system.webServer>
</configuration>This fixes the compilation issues. However, tests that derive from the WebAppInstanceTests class will not be runnable (tests that require a running web app instance). This will be fixed in the following hotfix – 13.0.101. But note that official support for this test type was never intended to be made available.
Hotfix – The hotfix utility incorrectly added file references (Content Include statements) for sample site assets to the Xperience administration project file (CMSApp.csproj) during each hotfix application. To fix the issue, this hotfix must be applied to the Setup files (switch to advanced mode in the hotfix utility). After applying this hotfix, the utility no longer adds the unnecessary references. However, if the CMSApp project already contains the references from previous hotfix applications, they will not be deleted. You can delete these references manually. Find the full list of unnecessary file references attached below for both MVC 5 and ASP.NET Core projects.
<Content Include="DancingGoatMvc\media\CoffeeGallery\Bakery-And-Coffee.jpg" />
<Content Include="DancingGoatMvc\media\CoffeeGallery\Brew-Bar.jpg" />
<Content Include="DancingGoatMvc\media\CoffeeGallery\Cauca-Farmer.jpg" />
<Content Include="DancingGoatMvc\media\CoffeeGallery\Coffee-Cherries.jpg" />
<Content Include="DancingGoatMvc\media\CoffeeGallery\Coffee-Region.jpg" />
<Content Include="DancingGoatMvc\media\CoffeeGallery\Coffee-Shop.jpg" />
<Content Include="DancingGoatMvc\media\CoffeeGallery\Coffee-Triangle.jpg" />
<Content Include="DancingGoatMvc\media\CoffeeGallery\Colombia-Coffee.jpg" />
<Content Include="DancingGoatMvc\media\CoffeeGallery\Kona-Coffee.jpg" />
<Content Include="DancingGoatMvc\media\CoffeeGallery\Robusta.jpg" />
<Content Include="DancingGoatMvc\media\CoffeeGallery\St-Helena-Coffee.jpg" />
<Content Include="DancingGoatMvc\media\CoffeeGallery\Thailand-Coffee.jpg" />
<Content Include="DancingGoatMvc\media\CoffeeGallery\Work-And-Coffee.jpg" />
<Content Include="DancingGoatMvc\media\EmailCampaigns\coffee-101-lesson-1.jpg" />
<Content Include="DancingGoatMvc\media\EmailCampaigns\coffee-101-lesson-2.jpg" />
<Content Include="DancingGoatMvc\media\EmailCampaigns\colombia-coffee-promotion.jpg" />
<Content Include="DancingGoatMvc\media\Graphics\banner-default.jpg" />
<Content Include="DancingGoatMvc\media\Graphics\colombia-coffee.jpg" />
<Content Include="DancingGoatMvc\media\Graphics\default-image-product.png" />
<Content Include="DancingGoatMvc\media\Graphics\hero-image.jpg" />
<Content Include="DancingGoatMvc\media\Graphics\Logos\logo-dancing-goat-inverted.png" />
<Content Include="DancingGoatMvc\media\Graphics\Manufacturers\aerobie.png" />
<Content Include="DancingGoatMvc\media\Graphics\Manufacturers\chemex.png" />
<Content Include="DancingGoatMvc\media\Graphics\Manufacturers\Espro.png" />
<Content Include="DancingGoatMvc\media\Graphics\Manufacturers\Hario.png" /><Content Include="DancingGoatCore\media\CoffeeGallery\Bakery-And-Coffee.jpg" />
<Content Include="DancingGoatCore\media\CoffeeGallery\Brew-Bar.jpg" />
<Content Include="DancingGoatCore\media\CoffeeGallery\Cauca-Farmer.jpg" />
<Content Include="DancingGoatCore\media\CoffeeGallery\Coffee-Cherries.jpg" />
<Content Include="DancingGoatCore\media\CoffeeGallery\Coffee-Region.jpg" />
<Content Include="DancingGoatCore\media\CoffeeGallery\Coffee-Shop.jpg" />
<Content Include="DancingGoatCore\media\CoffeeGallery\Coffee-Triangle.jpg" />
<Content Include="DancingGoatCore\media\CoffeeGallery\Colombia-Coffee.jpg" />
<Content Include="DancingGoatCore\media\CoffeeGallery\Kona-Coffee.jpg" />
<Content Include="DancingGoatCore\media\CoffeeGallery\Robusta.jpg" />
<Content Include="DancingGoatCore\media\CoffeeGallery\St-Helena-Coffee.jpg" />
<Content Include="DancingGoatCore\media\CoffeeGallery\Thailand-Coffee.jpg" />
<Content Include="DancingGoatCore\media\CoffeeGallery\Work-And-Coffee.jpg" />
<Content Include="DancingGoatCore\media\EmailCampaigns\coffee-101-lesson-1.jpg" />
<Content Include="DancingGoatCore\media\EmailCampaigns\coffee-101-lesson-2.jpg" />
<Content Include="DancingGoatCore\media\EmailCampaigns\colombia-coffee-promotion.jpg" />
<Content Include="DancingGoatCore\media\Graphics\banner-default.jpg" />
<Content Include="DancingGoatCore\media\Graphics\banner2.png" />
<Content Include="DancingGoatCore\media\Graphics\colombia-coffee.jpg" />
<Content Include="DancingGoatCore\media\Graphics\default-image-product.png" />
<Content Include="DancingGoatCore\media\Graphics\hero-bg.jpg" />
<Content Include="DancingGoatCore\media\Graphics\hero-bg3.jpg" />
<Content Include="DancingGoatCore\media\Graphics\hero_image.jpg" />
<Content Include="DancingGoatCore\media\Graphics\Logos\logo-dancing-goat.png" />
<Content Include="DancingGoatCore\media\Graphics\Manufacturers\aerobie.png" />
<Content Include="DancingGoatCore\media\Graphics\Manufacturers\chemex.png" />
<Content Include="DancingGoatCore\media\Graphics\Manufacturers\Espro.png" />
<Content Include="DancingGoatCore\media\Graphics\Manufacturers\Hario.png" />WYSIWYG editor – The HTML sanitizer in the Rich text editor component for the page and form builder, introduced in hotfix 13.0.89, removed various HTML tags from the content even if the tags were allowed in the editor configuration. This hotfix introduces new configuration keys to customize the set of allowed tags and attributes: CMSHtmlSanitizerAllowedTags and CMSHtmlSanitizerAllowedAttributes. For examples of usage, see Configuring the rich text editor for page builder.
Security – The hotfix updates and changes several third-party dependencies used by the system.
Source code – To ensure that source code projects compile correctly after applying the hotfix, you need to update the following NuGet packages throughout the solution:
CMS.Base.ContextUtils class was introduced into the public API. The class’s PropagateCurrent and ResetCurrent methods allow developers to propagate or clear the system’s thread context, such as the database connection, when executing asynchronous or parallel code, for example using Task.Run. See Best practices for customization.Security - Cookies – In .NET Framework (MVC 5) projects, cookies set via CookieHelper.SetValue disregarded the requireSSL attribute (opens in a new tab) configurable for the httpCookies web.config element.
<httpCookies requireSSL="true" />To correct the issue, the hotfix introduces the following changes:
All overloads of CookieHelper.SetValue now reflect the requireSSL attribute, if set.
The following overload of CookieHelper.SetValue, responsible for suppressing the requireSSL configuration in .NET Framework projects (via the secure parameter which defaulted to false) was made obsolete:
CookieHelper.SetValue(string name, string value, DateTime expires, string path = null, bool? httpOnly = null, string domain = null, SameSiteMode sameSiteMode = SameSiteMode.Lax, bool secure = false)The method was replaced with SetValue(CookieHelperValueSettingParameters parameters). The CookieHelperValueSettingParameters object contains the parameters from the obsolete method and can be used identically. For example:
CookieHelper.SetValue(new CookieHelperValueSettingParameters {
Name = "CustomCookie",
Value = "CustomValue",
Expires = DateTime.Now.AddYears(1)
});Note that due to shared code base, this method change also affects .NET Core projects. However, the functional behavior remains unchanged. Since .NET Core does not expose any global security settings for cookies, the value was always false by default.
Explicitly configuring CookieHelperValueSettingParameters.Secure when setting cookies overrides the configuration from the httpCookies element.
CookieHelper.SetValue(new CookieHelperValueSettingParameters {
Name = "CustomCookie",
Value = "CustomValue",
Expires = DateTime.Now.AddYears(1),
SameSiteMode = SameSiteMode.None,
Secure = true
});If you do not wish to introduce the functional change related to the requireSSL attribute to your solution, you can revert the system to its previous behavior by adding the CMSIgnoreRequireSSLAttribute configuration key to the web.config of both the live site (MVC 5) and administration applications.
<configuration>
<appSettings>
<add key="CMSIgnoreRequireSSLAttribute" value="true"/>
</appsettings>
</configuration>Security - Authorization bypass in content staging – Due to a vulnerability in a third-party library used by the product, the content staging authentication mechanism could be bypassed. Only instances with the staging functionality enabled were affected.
If you don't use staging and want to completely mitigate all possible vulnerabilities, you can limit which external services can access the staging endpoint /CMSPages/Staging/SyncServer.asmx by editing the <location path="Staging/SyncServer.asmx"> node in the config file under ~/CMS/CMSPages/Web.config. To deny access to all users, set authorization to <deny users="*" />.
<location path="Staging/SyncServer.asmx">
<system.web>
<authorization>
<deny users="*" />
</authorization>
...
</location>If you use content staging, the following paragraphs contain recommended manual steps after hotfixing your project.
Verify that the web.config file ~/CMS/CMSPages/Web.config on your target staging instance contains the following soapExtensionTypes node under the webServices element in the <location path="Staging/SyncServer.asmx"> section:
<location path="Staging/SyncServer.asmx">
<webServices>
<!-- Add this node if missing -->
<soapExtensionTypes>
<add type="CMS.Synchronization.WSE3.AuthenticationCheckerExtension, CMS.Synchronization.WSE3"
priority="1"
group="High" />
</soapExtensionTypes>
...
</webServices>
</location>If your target staging instance contains any customizations to the staging functionality via web.config files (for example according to the SOAP header security not understood part of the staging troubleshooting guide), add the following section under the webServices element.
<webServices>
<soapExtensionTypes>
<add type="CMS.Synchronization.WSE3.AuthenticationCheckerExtension, CMS.Synchronization.WSE3"
priority="1"
group="High" />
</soapExtensionTypes>
...
</webServices>For example, if you use the customization described under SOAP header security not understood, the full webServices element should now look like the following:
<webServices>
<!-- Add this node if missing -->
<soapExtensionTypes>
<add type="CMS.Synchronization.WSE3.AuthenticationCheckerExtension, CMS.Synchronization.WSE3" priority="1" group="High" />
</soapExtensionTypes>
<soapExtensionImporterTypes>
<add type="Microsoft.Web.Services3.Description.WseExtensionImporter, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</soapExtensionImporterTypes>
<soapServerProtocolFactory type="Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<protocols>
<add name="HttpSoap"/>
<remove name="HttpPost" />
<remove name="HttpGet" />
</protocols>
</webServices>You can verify that staging is configured correctly by sending a staging request to the target server. The configuration is correct if the target server does not log any warnings related to staging security to the event log. Example of the logged warning: "Staging security was validated later than expected. This might result in reduced security."
Security - Stored XSS when uploading files – It was possible to distribute a malicious payload as an unauthenticated user when uploading multiple files to the application. A similar vulnerability could have also been exploited by authenticated users.
After applying the hotfix, zipped image resources accessed via the ~/getresource handler must first be registered in the system via Path.RegisterMappedZippedFolder.
using CMS;
using CMS.IO;
[assembly: RegisterModule(typeof(ZippedResourcesRegisterModule))]
public class ZippedResourcesRegisterModule : Module
{
// Module class constructor, inherits from the base constructor with the code name of the module as the parameter
public ZippedResourcesRegisterModule() : base("ZippedResourcesRegister")
{
}
// Initializes the module. Called when the application starts.
protected override void OnInit()
{
base.OnInit();
// Registers a .zip archive for access via the '/getresource' endpoint
// This example registers the ~/relative/path/to/folder/archive.zip archive
// After the registration, the archive is accessible under
// <domain>/CMSPages/GetResource.ashx?image=/relative/path/to/folder/[archive.zip]/myimage.jpg
Path.RegisterMappedZippedFolder("~/relative/path/to/folder", "archive.zip");
}
}Attempting to access unregistered ZIP archives results in the following error: "Processing of zip archives not explicitly registered by the system is forbidden."
Breaking change
Applying the hotfix may result in behavioral breaking changes to the Content staging feature. The full scope of changes will depend on the configuration of your environment and existing customizations. Please carefully evaluate the impact the changes introduced by the hotfix may have on your environment.
It was possible to launch denial-of-service (DoS) attacks by exploiting the system's Content staging functionality. Staging did not need to be enabled, the vulnerability was exploitable under all circumstances.
The vulnerability exists in the Microsoft.Web.Services3 SOAP extensions library (opens in a new tab) used by the Content staging codebase. The library is no longer maintained and was recently discovered to contain several vulnerabilities. Consequently, we decided to isolate the library from the codebase and introduce a custom solution that circumvents calls to the library, preventing all possible exploits.
For backward compatibility, the legacy code paths making calls to the vulnerable library remain in the system and can be re-enabled, but this comes with significant risks, such as re-introducing the DoS vulnerability to your project, and is not recommended.
After installing the hotfix, the following changes will be applied to your project:
The system defaults to a new staging implementation that bypasses the vulnerable library.
The legacy staging handler – ~/CMSPages/Staging/SyncServer.asmx – which exposes a SOAP-based service that processes staging requests, gets reconfigured to by default deny all requests via the ~/CMSPages/Web.config file.
If this web.config file is customized in your instance, it will not be automatically edited by the hotfix utility. Manually make the following changes:
<!-- Find the following location node -->
<location path="Staging/SyncServer.asmx">
<system.web>
<!-- Under authorization, change '<allow users="*" />' to '<deny users="*" />' -->
<authorization>
<deny users="*" />
</authorization>
<!-- ... -->
</location>
<!-- Add the following location node to the file -->
<location path="Staging/SyncServer.ashx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>Changing this configuration is important. Without it, the vulnerability remains exploitable even with Content staging disabled.
A new staging handler – ~/CMSPages/Staging/SyncServer.ashx – gets added. As this is an HTTP-based handler, SOAP-specific customizations, such as the ones described on Troubleshooting staging, are not supported. The handler also does not allow for any other customizations.
The hotfix adds an option to revert to the legacy staging implementation via the following process:
Important!
Reverting to the legacy staging implementation re-enables code paths that make calls to the vulnerable Microsoft.Web.Services3 library. This comes with significant risks, such as re-introducing the DoS vulnerability to your project, and is not recommended without carefully considering the impact and possibly implementing custom preventative measures.
<location path="Staging/SyncServer.asmx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
<!-- ... -->Other Content staging features and functionality remain unchanged.
The hotfix updates the MimeKit NuGet package dependency to version '4.15.1' to address security vulnerabilities from previous versions. As a result of the update, the MailKit NuGet package dependency was also updated to '4.15.1'.
Important: The MimeKit update introduces a dependency on System.Threading.Tasks.Extensions version 4.2.1.0. If you use the Continuous Integration console utility (ContinuousIntegration.exe), you must manually update the assembly binding redirect in Lib\ContinuousIntegration.exe.config to avoid a FileLoadException on startup. Find the System.Threading.Tasks.Extensions entry and update it as follows:
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.1.0" newVersion="4.2.1.0" />
</dependentAssembly>Make this change in the Lib folder, not in CMS\bin. Changes made directly to CMS\bin\ContinuousIntegration.exe.config are overwritten when you rebuild the solution.
Additionally, if your live site application targets .NET 10, you may encounter the following build error after applying the hotfix: Detected package downgrade: System.Security.Cryptography.Pkcs from 10.0.0 to 8.0.1. To resolve this, add the following package reference to your live site project file:
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="10.0.0" />The hotfix updates the picomatch library used by Page and Form builder client scripts to version 2.3.2. The update addresses security vulnerabilities from previous versions.
A "Could not load file or assembly" error occurred when running the ContinuousIntegration.exe utility. The issue occurred only after installing hotfix 13.0.203.
Important: This hotfix resolves the ContinuousIntegration.exe startup error introduced in hotfix 13.0.203 for new installations only. If you have an existing project, you must still apply the manual steps described in the 13.0.203 section.
The hotfix updates the postcss client library used by Page and Form builder scripts to version 8.5.12 to address security vulnerabilities.
The hotfix updates the following NuGet package dependencies to address security vulnerabilities from previous versions:
The hotfix removes the query-string library and its decode-uri-component dependency from Page and Form builder client scripts to address security vulnerabilities.
Security – Password reset and account unlock emails – The system now sends these emails only when their links can be built on a trusted domain: the host specified by the CMSUrlHost configuration key, the site's Administration domain name, or one of its administration domain aliases. If the administration runs on a domain that is not registered for any site (for example, an IP address or an internal host name on an instance with multiple sites), the email is not sent. The system instead logs an error to the event log under the PasswordRetrievalRequest or UnlockAccountRequest event code. To ensure the emails are delivered, register every domain used to access the administration as the site's administration domain name or administration domain alias, or set the CMSUrlHost key.
The sign-in page displays the same message whether or not the email was sent, so that it does not reveal which user accounts exist. Users therefore do not see an error when the email is not sent.
For a full list of bugs covered by the hotfix, open the Hotfixes page (opens in a new tab) on DevNet and click Fixed bugs for the appropriate version.