Enforce KittyScript validation for guest sessions

reference brazil Updated Sep 10, 2026 1 min read sc-kittyscript-validation.md
Raw file servicenow.com

The com.glide.script.kittyscript.validation.mode property controls JavaScript validation for unauthenticated (guest) users before it runs in the server-side sandbox.

  • block or block_guest: Rejects scripts that use syntax or operations outside a minimal, restricted set.
  • warn or ignore: Reduces or removes enforcement, allowing guest scripts to run under the platform's legacy sandbox restrictions only.

Set the com.glide.script.kittyscript.validation.mode property to block or block_guest in the sys_properties table. If it doesn't exist, create it and set it to block.

More information

Attribute

Description

Configuration name

com.glide.script.kittyscript.validation.mode

Configuration type

System Properties (/sys_properties_list.do)

Data type

String

Recommended value

block

Default value

block

Fallback value

block_guest

Category

Validation, sanitization, and encoding

Security risk

  • Severity score: 9.1
  • CVSS rating: Critical
  • Security risk details:

Allowing unauthenticated users to execute server-side JavaScript is a critical security risk. This code runs with server-side privileges and bypasses ordinary access controls. No valid credentials or user interaction is required to trigger it.

An attacker who reaches this capability can use it to read, modify, or exfiltrate data, and to bypass the business logic and access restrictions that would otherwise apply.

Functional impact

This property controls how the server-side sandbox validates JavaScript in guest sessions.

  • ignore: Disables validation. Guest scripts execute without sandbox restrictions.
  • warn: Allows guest script execution. Scripts that violate sandbox restrictions are logged.
  • block_guest or block: Enforces sandbox restrictions. Scripts using unsupported syntax or disallowed operations are blocked.

After enabling enforcement, test guest-facing functionality that uses dynamic script evaluation such as reference qualifiers and scripted default values to confirm it still works.

Dependencies and prerequisites

The com.glide.script.sandbox.ks.watchdog.enabled property must be set to true.

**Parent Topic:**[Validation, sanitization, and encoding](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-security/instance-security-hardening-settings/validation-sanitization-encoding.md)
Keywords kittyscript validationjavascript validation
Search documentation
Search document titles and file paths on the brazil branch