Define restricted downloadable MIME types

reference australia Updated Mar 12, 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, dangerous files could be rendered inline in the browser. This can lead to cross-site scripting attacks (XSS).

This property is the list of comma-separated attachment mime types that 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 prevents XSS attacks.

Note: This check is only relevant when glide.ui.attachment.force_download_all_mime_types is set to false.

If 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, and application/xhtml+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

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

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 glide.ui.attachment.download_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