# Security

This article explains how to ensure information about the RadEditor configuration is secure and non-readable. Its transmission between the client and the server must be encrypted and impossible to decode, so the data cannot be used by a malicious entity in an attack against the server.

Configuration information includes dialog settings and upload configuration.

There are three `appSettings` keys you should add to your `web.config` to ensure information security with the dialogs:

* set a custom `Telerik.Web.UI.DialogParametersEncryptionKey`.

* set a custom `Telerik.AsyncUpload.ConfigurationEncryptionKey`

* set a custom `Telerik.Upload.ConfigurationHashKey`

Additionally, you can use `Telerik.Web.UI.FileBrowserAllowedPaths` to enforce containment of the folders that the file browser dialogs (and `RadFileExplorer`) can access on the server—see the [FileBrowserAllowedPaths](https://www.telerik.com/products/aspnet-ajax/documentation/controls/editor/functionality/dialogs/security#filebrowserallowedpaths) section below.

> important As of **2026.2.708** (R2 2026 SP1), the custom key settings have been improved, since the control now encrypts the values with AES-GCM, which provides stronger protection than the machine key fallback. It is strongly recommended to upgrade to this version or newer. For more information, refer to the [Critical Security Bulletin - July 2026](https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/kb-security-critical-rce-chain-bulletin-july-2026) article.
>
> note If these keys are not set, the controls fall back to the .NET `MachineKey` for encryption and integrity. While this is functional, setting the keys explicitly on v2026.2.708+ is recommended because AES-GCM provides stronger protection. If you choose not to set the keys, ensure you have a strong, explicitly configured `<machineKey>` in web.config. You can [use the IIS MachineKey Validation Key generator to get them (make sure to avoid the ,IsolateApps portion)](https://www.telerik.com/products/aspnet-ajax/documentation/assets/fa20871458bebdeba42844a1b5f8facb/generate-keys-iis.png).

> tip To add a layer of security on the user actions from the file browser dialogs (such as Image Manager), follow the [RadFileExplorer Security](https://docs.telerik.com/devtools/aspnet-ajax/controls/fileexplorer/security) article. To attach to the `ItemCommand` event, you must use the `FileBrowser` and `MobileImageManager` dialogs as [external dialogs](https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/dialogs/externaldialogspath-property) and add the file with the event handler and business logic to them. You can find an example in the [item-command-in-external-dialogs.zip](https://www.telerik.com/products/aspnet-ajax/documentation/assets/938664d0e1b0e15931642f1b4c81d56b/item-command-in-external-dialogs.zip) archive.

> tip You can [encrypt the appSettings section in the web.config](https://www.telerik.com/support/kb/aspnet-ajax/details/how-to-encrypt-the-telerik-appsettings-keys).

## DialogParametersEncryptionKey

To provide secure encryption, we strongly advise that you set a custom encryption key for **Telerik.Web.UI.DialogParametersEncryptionKey**:

```XML
<appSettings>
	<add key="Telerik.Web.UI.DialogParametersEncryptionKey" value="YOUR-THIRD-UNIQUE-STRONG-RANDOM-VALUE-UNIQUE-TO-YOUR-APP&" />
</appSettings>
```

## ConfigurationEncryptionKey

To provide secure encryption, we strongly advise that you set a custom encryption key for **Telerik.AsyncUpload.ConfigurationEncryptionKey**:

```XML
<appSettings>
	<add key="Telerik.AsyncUpload.ConfigurationEncryptionKey" value="YOUR-FIRST-UNIQUE-STRONG-RANDOM-VALUE-UNIQUE-TO-YOUR-APP&" />
</appSettings>
```

## ConfigurationHashKey

The additional **Telerik.Upload.ConfigurationHashKey** key is used to hash the encrypted text. The value returned from the client is checked in the upload handler for integrity.

```XML
<appSettings>
	<add key="Telerik.Upload.ConfigurationHashKey" value="YOUR-SECOND-UNIQUE-STRONG-RANDOM-VALUE-UNIQUE-TO-YOUR-APP&" />
</appSettings>
```

## FileBrowserAllowedPaths

Enforce server-side path containment for the `RadEditor` file browser dialogs (Image Manager, Document Manager, and so on) and `RadFileExplorer` by setting the `Telerik.Web.UI.FileBrowserAllowedPaths` key in the `appSettings` section of `web.config`.

Its value is a semicolon-separated list of virtual path roots. Before any file system access (view, upload, or delete), the server verifies that the resolved path falls within one of these roots. Paths that do not match are discarded before the file system is accessed.

This restriction is independent of the `ViewPaths`, `UploadPaths`, and `DeletePaths` configured on each control. Those properties define the default locations for browsing and uploading. `FileBrowserAllowedPaths` is a separate, server-enforced allowlist that applies regardless of what the control properties specify.

> note This setting is optional (opt-in). When it is not set, all controls behave exactly as before - there is no change for existing applications.

```XML
<appSettings>
	<add key="Telerik.Web.UI.FileBrowserAllowedPaths" value="~/Upload/;~/Images/" />
</appSettings>
```

## Prevent Cross-site Scripting (XSS)

Please check out the dedicated [Prevent Cross-site Scripting (XSS)](https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/managing-content/prevent-cross-site-scripting-\(xss\)) article to learn how to enable the anti-XSS mechanism of RadEditor.

## See Also

* [web.config Settings Overview](https://www.telerik.com/products/aspnet-ajax/documentation/getting-started/installation/web-config-settings-overview)

* [Prevent Cross-site Scripting (XSS)](https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/managing-content/prevent-cross-site-scripting-\(xss\))

* [RadAsyncUpload Client-State Decrypt-vs-Parse Oracle Vulnerability (CVE-2026-13182)](https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/kb-security-rau-padding-oracle-cve-2026-13182)
