Set safe content security policy for SVG files

reference australia Updated Sep 10, 2026 1 min read sc-set-safe-content-security-policy-for-svg-files.md
Raw file servicenow.com

The com.glide.csp.self_script_src_svg property adds the script-src none directive to the HTTP Content-Security-Policy header when Scalable Vector Graphics (SVGs) are accessed through the Translation Memory Index (IIX) file extension.

The com.glide.csp.self_script_src_svg system property adds script-src none to the Content-Security-Policy header when SVGs are accessed via the IIX file extension. This prevents the exploitation of stored XSS from crafted file attachments stored within the instance.

Ensure that the property com.glide.csp.self_script_src_svg is set to true.

Warning: This is a safe harbor property, meaning the value can't be altered once it's changed. It is non-revertible.

More information

Attribute

Description

Configuration name

com.glide.csp.self_script_src_svg

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

Security risk

  • Severity score: 7.1
  • CVSS score: High
  • Security risk details: Without this policy, attackers can inject malicious JavaScript that users unknowingly execute, leading to data exfiltration or session takeover.

Dependencies and prerequisites

None

Functional impact

This property prevents scalable vector graphics (SVG) files from accessing external scripts.

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