---
title: tinyMCE – XSS Vulnerability On Versions Under 5.4.0, In iframe Elements
description: "**Impact area** Security **Severity** High **Affected element** **ServiceNow** UI Script **Salesforce** Static Resource ## Rule number **SN-JSL-TINYMCE-LESSTHAN-V540 (**for ServiceNow) **SF-JSL-TINYMCE-LESSTHAN-V540 **(for Salesforce) ## Impact tinyMCE in versions before 5.4.0 allows XSS attacks by content in an iframe element parsing as DOM…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/vulnerabilities-in-open-source-libraries-salesforce/tinymce-xss-vulnerability-on-versions-under-5-4-0-in-iframe-elements/"
updated: "2025-03-21"
category: Rules
---

# tinyMCE – XSS Vulnerability On Versions Under 5.4.0, In iframe Elements

**Impact area**

Security

**Severity**

High

**Affected element**

**ServiceNow**

UI Script

**Salesforce**

Static Resource

## Rule number

**SN-JSL-TINYMCE-LESSTHAN-V540 (**for ServiceNow)

**SF-JSL-TINYMCE-LESSTHAN-V540 **(for Salesforce)

## Impact

tinyMCE in versions before 5.4.0 allows XSS attacks by content in an iframe element parsing as DOM elements instead of text content.

## Remediation

Update tinyMCE to the latest version.

### Time to fix

30 min

## References

This rule is linked to [Common Weakness Enumeration CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').](https://cwe.mitre.org/data/definitions/79.html)
