--- title: Ensure Contextual Search Do Not Contain An Unvalidated Redirect \[New in Security Center 7.0\] description: Prevent Contextual Search results from containing referral links outside the current domain with a system property. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-security/instance-security-hardening-settings/sc-ensure-contextual-search-do-not-contain-an-unvalidated-redirect.html release: australia product: Instance Security Hardening Settings classification: instance-security-hardening-settings topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Validation, sanitization, and encoding, Hardening settings, Platform Security] --- # Ensure Contextual Search Do Not Contain An Unvalidated Redirect \[New in Security Center 7.0\] Prevent Contextual Search results from containing referral links outside the current domain with a system property. The Contextual Search plugin displays search results in a new window using the **cxs\_new\_window** UI page. This UI page contains a referral link which can be set by providing a value to **sysparm\_url**. When the **com.snc.contextual\_search.cxs\_new\_window.force\_relative\_link** system property is set to **true**, **sysparm\_url** can only contain links that are relative to the current domain. This restriction prevents the UI page from being used as an unvalidated redirect to an attacker-controlled website. When the property is set to **false**, **sysparm\_url** can link to any website. Set the **com.snc.contextual\_search.cxs\_new\_window.force\_relative\_link** property to **true**. If the property doesn’t exist on the System Properties \[sys\_properties\] table, the default value is **false**. If the property exists on the table, it defaults to **true**. ## More information
| Attribute | Description |
|---|---|
| Configuration name | **com.snc.contextual\_search.cxs\_new\_window.force\_relative\_link** |
| Configuration type | System Properties \(/sys\_properties\_list.do\) |
| Data type | Boolean |
| Recommended value | true |
| Default value | true |
| Fallback value | false |
| Category | [Validation, sanitization, and encoding](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/validation-sanitization-encoding.md) |
| Security risk | - Severity score: 3.1 - CVSS score: Medium - When set to **false**, **sysparm\_url** can link to any website, which allows the UI page to be used as an unvalidated redirect to an attacker-controlled website. |
| Functional impact | When set to **true**, **sysparm\_url** is only allowed to contain links that are relative to the current domain. This restriction means that the UI page can only ever link to web pages on the current domain. However, the UI page is meant to display search results from the current domain and should only ever link to the current domain. |
| Dependencies and prerequisites | The Contextual Search \(com.snc.contextual\_search\) plugin must be active. |