Restrict XML external entities

reference australia Updated Sep 10, 2026 1 min read sc-xml-entity-validation-url-allowlist.md
Raw file servicenow.com

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

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)
Search documentation
Search document titles and file paths on the australia branch