---
sourceDocument: Brazil Platform security
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-security

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# Enable script sandbox \[Updated in Security Center 1.3\]

# Enable script sandbox \[Updated in Security Center 1.3\] {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Enable script sandbox \[Updated in Security Center 1.3\]

The script sandbox feature in ServiceNow enhances instance security by restricting the execution of client-generated scripts with privileged access.
Enabling this feature prevents unauthorized or unauthenticated users from running potentially harmful scripts, protecting your data and platform integrity.
This setting is controlled by theglide.script.use.sandboxsystem property and applies to scripts such as query filters and GlideAjax expressions sent from the client to the server.
Show full answer Show less  

## Key Features

* Scripts run inside a restricted "sandbox" environment with limited rights.
* Only business rules marked **Client callable** and script includes marked **Sandbox enabled** are accessible within the sandbox.
* Certain API calls, especially those involving direct database access or data modification (e.g., `current.update()`), are disallowed or ignored in the sandbox.
* Scripts running outside the sandbox have no such restrictions, posing security risks.
* Starting with the Xanadu release, script includes marked as Glide AJAX enabled are not accessible in the sandbox unless also marked Sandbox enabled.
* When upgrading to Brazil release from Washington DC or earlier, script includes marked Client callable are automatically marked Sandbox enabled.
* The property **glide.script.use.sandbox** is a safe harbor setting---once enabled, it cannot be reversed.

## Practical Considerations for ServiceNow Customers

* **Enable script sandboxing** by setting `glide.script.use.sandbox` to `true` to enforce script validation and improve security.
* This setting protects against unauthorized script execution that could lead to data breaches or unauthorized CRUD operations.
* Be aware of potential functional impacts if you have custom JavaScript queries performing create, read, update, or delete operations, as these may be restricted inside the sandbox.
* Understand that once enabled, this setting cannot be disabled, so validate custom scripts and integrations for compatibility before applying.

## Security Importance

The script sandbox addresses critical security risks by limiting the scope of client-sent scripts, preventing attackers from exploiting script execution to gain unauthorized access or perform malicious operations on your ServiceNow instance.

## Related Properties

* **glide.script.allow.ajaxevaluate**: Controls AJAXEvaluate functionality.
* **glide.script.secure.ajaxgliderecord**: Requires ACL checking for AJAX GlideRecord operations.

Use these properties in conjunction with script sandboxing to further tighten script execution security on your ServiceNow platform.  
Use the glide.script.use.sandbox property to enable script sandboxing.
Prevent unauthorized or unauthenticated users from executing privileged script on your instance by enabling the script sandbox feature. The script sandbox is used to execute client-generated scripts, such as query conditions and
GlideAjax expressions, in a "sandbox" environment that has restricted rights.

Without the script sandbox, unauthorized/unauthenticated users can execute privileged script on an instance. This can impact security across all areas, including, but not limited to potentially malicious access to all data on
the instance.

Enable the script sandbox feature on your instance by setting the glide.script.use.sandbox system property to true.  
Warning:  
This is a safe harbor property, meaning the value can't be altered once it's changed. It is non-revertible.  
There are two cases in the ServiceNow AI Platform that enable the client to send scripts to the server for evaluation:

Filters or queries
:   It is legal to send a filter to the server such as `assigned_to=JavaScript:getMyGroups()`.

System API
:   API call enables the client to run arbitrary scripts on the server and receive a response.
If you enable the script sandbox, the script being evaluated at either of these two entry points runs in a sandbox with reduced rights, with the following characteristics:

* Only those business rules marked Client callable are available within the sandbox.
* Only script includes marked Sandbox enabled are available within the sandbox.
* Certain API calls (largely, but not entirely, limited to ones dealing with direct DB access are not allowed.)
* You can't insert, update, or delete data from within the sandbox. For example, any calls to `current.update()`, are ignored. If you run the ServiceNow AI Platform without enabling script sandboxing, none of these restrictions apply.

{#sc-client-generated-scripts-sandbox__ul_ty4_zgk_jkb}  
Note:  
Beginning with the Xanadu release, script includes marked as Glide AJAX enabled (previously named Client callable) aren't accessible within the sandbox. Only those marked Sandbox enabled are available within the sandbox. When upgrading to the Brazil release from the Washington DC release or earlier, any script includes marked as Client callable are also marked as Sandbox enabled.

## More information {#sc-client-generated-scripts-sandbox__section_more_information}

{#sc-client-generated-scripts-sandbox__table_ajc_b43_3kb__entry__2}

| Attribute | Description |
|-|-|
| Property name | glide.script.use.sandbox |
| Configuration type | System Properties (/sys_properties_list.do) |
| Category | [Validation, sanitization, and encoding](https://www.servicenow.com/docs/Y54hkYpvZcFtgJ5PMM2JEw "Validation, sanitization, and encoding addresses input validation to prevent against vulnerabilities like Cross-Site Scripting (XSS), SQL injection and other attacks.") |
| Purpose | Enforces validation for the client-side JavaScript queries that are launched against the platform |
| Recommended value | true |
| Default value | true |
| Security risk rating | 10 |
| Functional impact | This remediation enforces validation for the client-side JavaScript queries that are launched against the ServiceNow AI Platform. There is a potential impact if customer has customizations that include hard-coded JavaScript queries to perform CRUD operations. |
| Security risk | (Critical) The ServiceNow AI Platform provides wide variety of features and functionality through JavaScript queries. However, without appropriate authorization and validation, there is a potential for an attacker to perform unauthorized operations against the platform. |
| References | glide.script.use.sandbox belongs to the same family of properties that secure and restrict execution of scripts originating from the client: * glide.script.allow.ajaxevaluate: See [Disable AJAXEvaluate](https://www.servicenow.com/docs/aaJBpfzlGmbG6EOO_l0Odg "Use the glide.script.allow.ajaxevaluate to protect the system API from vulnerabilities of Client script execution through AJAX calls."). * glide.script.secure.ajaxgliderecord: See [Require AJAXGlideRecord ACL checking](https://www.servicenow.com/docs/9RWKhX~4Ovjw78E7RUx9Fg "Use the glide.script.secure.ajaxgliderecord property to perform access control rule (ACL) validation when server-side records, such as tables, are accessed using GlideAjax APIs within a client script."). {#sc-client-generated-scripts-sandbox__ul_bpq_vvq_nkb} |
[ ]

{#sc-client-generated-scripts-sandbox__table_ajc_b43_3kb}

To learn more about adding or creating a system
property, see [Add a system property](https://www.servicenow.com/docs/access?context=t_AddAPropertyUsingSysPropsList&version=brazil&pubname=brazil-platform-administration&ft:locale=en-US).

