Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Escape Excel Formulas [Updated in Security Center 1.3]

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

Prevent potentially malicious formulas in programs such as Excel from being executed after exporting and opening the file by escaping formulas in these files. Excel injection occurs when websites embed untrusted entries inside Excel files. When you use a spreadsheet application such as Microsoft Excel, or LibreOffice Call, to open a file, any cells starting with +, -, =, or @ are interpreted as a formula unless properly escaped. Malicious formulas pose a risk even when the spreadsheet doesn't contain any sensitive information, as they can be used to compromise the viewer's computer through code execution.

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

More information

AttributeDescription
Property nameglide.export.escape_formulas
Configuration typeSystem Properties (/sys_properties_list.do)
CategoryValidation, sanitization, and encoding
PurposeTo prevent application against the Excel or formula injection.
Recommended valuetrue
Default valuefalse
Security risk rating6.4
Functional impactMaliciously 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.
WorkaroundAs an alternative consider stripping all trailing white spaces where possible, and limiting all client-supplied data to alpha-numeric characters.
ReferencesAvailable system properties

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

Parent Topic:Validation, sanitization, and encoding