> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/settings-that-prevent-the-application-from-executing-potentially-unsafe-html-or-scripts-are-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Settings that prevent the application from executing potentially unsafe HTML or scripts are enabled

### Synopsis

| Field           | Value                                                                                                      |
| --------------- | ---------------------------------------------------------------------------------------------------------- |
| Rule Type       | Detection                                                                                                  |
| Severity        | Medium                                                                                                     |
| Category        | CONFIGURATION                                                                                              |
| Platform Module | SSPM                                                                                                       |
| Asset Types     | MICROSOFT\_365\_TENANT, MICROSOFT\_TEAMS\_TENANT, SERVICENOW\_INSTANCE, SLACK\_ORGANIZATION, ZOOM\_ACCOUNT |

### Description

Many attackers embed malicious content within HTML or scripts that launch upon execution. To prevent these types of attacks, enable app settings that protect against malicious input. For example, by converting incoming email HTML to images, you prevent damage that could have been caused by malicious HTML.

### Remediation

Microsoft 365:

* Microsoft 365 Tenant - Please follow steps below to remediate violation for : Enable clickjack protection for customer VisualForce pages with standard headers, Please follow steps below to remediate violation for : Enable Content Sniffing protection for Salesforce, Please follow steps below to remediate violation for : Enable Content Security Policy protection for email templates for Salesforce, Please follow steps below to remediate violation for : Ensure Safe Attachments policy is enabled, Please follow steps below to remediate violation for : Disable JavaScript on Adobe Reader 2015, Please follow steps below to remediate violation for : Enable EDR in block mode, Please follow steps below to remediate violation for : Block webpages from automatically running Flash plugins, Please follow steps below to remediate violation for : Block executable content from email client and webmail, Please follow steps below to remediate violation for : Block Office applications from injecting code into other processes, Please follow steps below to remediate violation for : Block JavaScript or VBScript from launching downloaded executable content, Please follow steps below to remediate violation for : Block execution of potentially obfuscated scripts, Please follow steps below to remediate violation for : Block process creations originating from PSExec and WMI commands, Please follow steps below to remediate violation for : Block Adobe Reader from creating child processes, Please follow steps below to remediate violation for : Disable 'Autoplay for non-volume devices', Please follow steps below to remediate violation for : Disable 'Autoplay' for all drives, Please follow steps below to remediate violation for : Disable Flash on Adobe Reader DC, Please follow steps below to remediate violation for : Disable JavaScript on Adobe Reader DC, Please follow steps below to remediate violation for : Disable JavaScript on Adobe Acrobat Pro XI, Please follow steps below to remediate violation for : Block Flash activation in Office documents, Please follow steps below to remediate violation for : Enable Explorer Data Execution Prevention (DEP), Please follow steps below to remediate violation for : Disable JavaScript on Adobe DC, Please follow steps below to remediate violation for : Disable JavaScript on Adobe Reader 2017
* Microsoft Teams Tenant - Please follow steps below to remediate violation for : Giphy content rating (Guest), Please follow steps below to remediate violation for : URL previews, Please follow steps below to remediate violation for : Giphy content rating (Teams)

ServiceNow:

* Servicenow Instance - Please follow steps below to remediate violation for : Convert Inbound Email HTML, Please follow steps below to remediate violation for : Enable AJAXEvaluate, Please follow steps below to remediate violation for : Client Generated Scripts Sandbox, Please follow steps below to remediate violation for : Packages Call Removal Tool, Please follow steps below to remediate violation for : Set Safe Content Security Policy for SVG Files, Please follow steps below to remediate violation for : Set Xframe Options to Prevent Embedding Third-Party Websites, Please follow steps below to remediate violation for : Enable HTML Sanitizer within Virtual Agent, Please follow steps below to remediate violation for : Escape Scripts in Scratchpad, Please follow steps below to remediate violation for : Enforce HTML Sanitization

Slack:

* Slack Organization - Please follow steps below to remediate violation for : Disable attaching GIFs

Zoom:

* Zoom Account - Please follow steps below to remediate violation for : Set the GIPHY content rating


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/settings-that-prevent-the-application-from-executing-potentially-unsafe-html-or-scripts-are-enabled.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
