Define restricted downloadable MIME types

reference australia Updated Sep 10, 2026 1 min read sc-downloadable-mime-types.md
Raw file servicenow.com

Use the glide.ui.attachment.force_download_all_mime_types property to download MIME types and not to render inline in the browser.

If the glide.ui.attachment.download_mime_types property doesn't include dangerous MIME types such as text/html, image/svg, image/svg+xml, application/xml, and application/xhtml+xml, then those dangerous files could be rendered inline in the browser, which could lead to Cross-Site Scripting (XSS) attacks.

This property is a comma-separated list of attachment MIME types that are downloaded to the client and don't render inline in the browser. For example, including text/html forces HTML files to be downloaded to the client as attachments rather than viewed inline in the browser. Maintaining this list properly by including all dangerous MIME types prevents Cross-Site Scripting attacks.

Note: This property's protection is only relevant when the glide.ui.attachment.force_download_all_mime_types property is set to false.

If the glide.ui.attachment.force_download_all_mime_types is set to false, verify that the glide.ui.attachment.download_mime_types system property includes the dangerous MIME types text/html,image/svg,image/svg+xml,application/xml.

More information

Attribute

Description

Configuration name

glide.ui.attachment.force_download_all_mime_types

Configuration type

System Properties (/sys_properties_list.do)

Data type

String (Comma-separated list of MIME types)

Recommended value

text/html,image/svg,image/svg+xml,application/xml,application/xhtml+xml

Default value

text/html,image/svg,image/svg+xml,application/xml,application/xhtml+xml

Fallback value

''

Category

Validation, sanitization, and encoding

Security risk

  • Severity score: 6.3
  • CVSS score: Medium
  • Security Risk: Maintaining this list properly can prevent cross site scripting attacks.

Dependencies and prerequisites

This check is only relevant when the glide.ui.attachment.force_download_all_mime_types is set to false or doesn't exist in the System Properties [sys_properties] table.

**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