CVE-2024-21911: Cross-site scripting vulnerability in TinyMCE

Published Jan 6, 2021
·
Updated

Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-5h9g-x5rv-25wg. This link is maintained to preserve external references.

Original Description TinyMCE versions before 5.6.0 are affected by a stored cross-site scripting vulnerability. An unauthenticated and remote attacker could insert crafted HTML into the editor resulting in arbitrary JavaScript execution in another user's browser.

Other sources

Impact A cross-site scripting (XSS) vulnerability was discovered in the URL sanitization logic of the core parser. The vulnerability allowed arbitrary JavaScript execution when inserting a specially crafted piece of content into the editor using the clipboard or APIs. This impacts all users who are using TinyMCE 5.5.1 or lower.

Patches This vulnerability has been patched in TinyMCE 5.6.0 by improved URL sanitization logic.

Workarounds To work around this vulnerability, either: - Upgrade to TinyMCE 5.6.0 or higher - Manually sanitize iframe, object and embed URL attributes using a TinyMCE node filter. - Disable iframe, object, and embed elements in your content using the invalidelements setting.

Example: Sanitizing using a node filter js editor.parser.addNodeFilter('iframe,object,embed', function(nodes) { nodes.forEach(function(node) { if (node.attributes) { node.attributes.forEach(function(attr) { var name = attr.name; var value = attr.value; // Sanitize the attribute value here or remove it entirely var sanitizedValue = ...; node.attr(name, santizedValue); }); } }); });

Example: Using invalidelements js invalidelements: 'iframe,object,embed'

Acknowledgements Tiny Technologies would like to thank Aaron Bishop at SecurityMetrics for discovering this vulnerability.

References https://www.tiny.cloud/docs/release-notes/release-notes56/#securityfixes

For more information If you have any questions or comments about this advisory: Open an issue in the TinyMCE repo Email us at infosec@tiny.cloud

Affected Software

5 affected componentsFixes available
npm/tinymce<5.6.0
composer/tinymce/tinymce<5.6.0
5.6.0
nuget/TinyMCE<5.6.0
5.6.0
npm/tinymce<5.6.0
5.6.0
Tiny TinyMCE<5.6.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/tinymce/tinymce to a version that resolves this vulnerability.

    Fixed in 5.6.0
  2. Upgrade

    Upgrade nuget/TinyMCE to a version that resolves this vulnerability.

    Fixed in 5.6.0
  3. Upgrade

    Upgrade npm/tinymce to a version that resolves this vulnerability.

    Fixed in 5.6.0
  4. Upgrade

    Upgrade TinyMCE to a version that resolves this vulnerability.

    Fixed in 5.6.0
  5. Configuration

    Disable `iframe`, `object`, and `embed` elements in editor content by setting `invalid_elements` to `iframe,object,embed`.

    TinyMCE content filtering invalid_elements = iframe,object,embed
  6. Compensating control

    Manually sanitize `iframe`, `object`, and `embed` URL attributes using a TinyMCE node filter added via `editor.parser.addNodeFilter('iframe,object,embed', ...)` to sanitize/remove crafted URL attribute values.

Event History

Jan 6, 2021
Advisory Published
07:27 PM
Jan 3, 2024
CVE Published
03:59 PM
Data Sourced
03:59 PM
DescriptionWeakness

Frequently Asked Questions

1

What is the severity of CVE-2024-21911?

CVE-2024-21911 is classified as a stored cross-site scripting vulnerability affecting TinyMCE versions before 5.6.0.

2

How do I fix CVE-2024-21911?

To mitigate CVE-2024-21911, upgrade TinyMCE to version 5.6.0 or later.

3

What versions of TinyMCE are affected by CVE-2024-21911?

CVE-2024-21911 affects TinyMCE versions prior to 5.6.0.

4

What type of vulnerability is CVE-2024-21911?

CVE-2024-21911 is a stored cross-site scripting (XSS) vulnerability.

5

Where can I find more information about CVE-2024-21911?

Detailed information about CVE-2024-21911 can be found in the original advisory related to it.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203