Escape Excel formulas \[Updated in Security Center 1.3\]

reference australia Updated Jul 30, 2026 1 min read sc-escape-excel-formula.md
Raw file servicenow.com

Use the glide.export.escape_formulas property to prevent Excel Injection, also, known as formula injection.

Prevent malicious formula execution in Excel by escaping formulas in exported files. Excel injection occurs when websites embed untrusted entries inside Excel files. When you open a file in Microsoft Excel or LibreOffice Calc, any cells starting with +, -, =, or @ are treated as formulas. Malicious formulas can compromise your computer through code execution, even if the spreadsheet contains no sensitive data.

Set the glide.export.escape_formulas system property to true to escape these formulas from executing.

More information

Attribute Description
Property name glide.export.escape_formulas
Configuration type System Properties (/sys_properties_list.do)
Category Validation, sanitization, and encoding
Purpose To prevent application against the Excel or formula injection.
Recommended value true
Default value true
Security risk rating 6.4
Functional impact Maliciously crafted formulas can be used for hijacking the user's computer by exploiting vulnerabilities in the spreadsheet software.
Security risk (Moderate) Malicious formulae pose a risk even when the embedding spreadsheet doesn't contain any sensitive information, as they can be used to compromise the viewer's computer.
Workaround As an alternative consider stripping all trailing white spaces where possible, and limiting all client-supplied data to alpha-numeric characters.
References Available system properties

To learn more about adding or creating a system property, see Add a system property.

Parent Topic:Validation, sanitization, and encoding

Search documentation
Search document titles and file paths on the australia branch