--- title: Restrict XML external entities description: Configure system properties to ensure that your instance only processes XML from trusted sources to help prevent XML external entity \(XXE\) attacks. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-security/instance-security-hardening-settings/sc-xml-entity-validation-url-allowlist.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] --- # Restrict XML external entities Configure system properties to ensure that your instance only processes XML from trusted sources to help prevent XML external entity \(XXE\) attacks. Use the **glide.xml.entity.whitelist** and **glide.xml.entity.whitelist** system properties to prevent your instance from processing XML from untrusted sources. XML external entity \(XXE\) attacks occur when a malicious actor modifies incoming XML \(such as adding HTTP requests\) to access data or intact with otherwise restricted systems. To help prevent these attacks, the **glide.xml.entity.whitelist.enabled** system property limits the sources from which your instance executes XML. Use the **glide.xml.entity.whitelist** property to define a set of trusted sources. Ensure that the **glide.xml.entity.whitelist** system property exists in the System Properties \[sys\_properties\] table, and is set to `http://java.sun.com/j2ee/dtds/`. Ensure that the **glide.xml.entity.whitelist.enabled** system property exists in the System Properties \[sys\_properties\] table and is set to the value `true`. **Tip:** Values other than `http://java.sun.com/j2ee/dtds/` can be included in the **glide.xml.entity.whitelist** property, but are unnecessary for the out of the box platform state. Review any additional values to determine if they are safe. ## More information **Warning:** This is a safe harbor property, meaning the value can't be altered once it's changed. It is non-revertible.
Attribute Description
Configuration name - **glide.xml.entity.whitelist** - **glide.xml.entity.whitelist.enabled**
Configuration type System Properties \(/sys\_properties\_list.do\)
Data type - Comma-separated list - Boolean String
Recommended value - http://java.sun.com/j2ee/dtds/ - true
Default value - http://java.sun.com/j2ee/dtds/ - true
Fallback value - http://java.sun.com/j2ee/dtds/ - true
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: 9.8 - CVSS score: Critical - Security risk details: An XML Eternal Entity \(XEE\) attack can allow attackers to access data or perform unauthorized actions via crafted XML payloads.
Functional impact If the customization is using external entity, not inclusion listed in the **glide.xml.entity.whitelist** property, the NOW Platform might block further processing.
Dependencies and prerequisites None
**Parent Topic:**[Validation, sanitization, and encoding](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/validation-sanitization-encoding.md)