Advisory

GHSA-hgqx-r2hp-jr38

Also known as: CVE-2023-45819

Summary

TinyMCE XSS vulnerability in notificationManager.open API

Details

Impact
A cross-site scripting (XSS) vulnerability was discovered in TinyMCE’s Notification Manager API. The vulnerability exploits TinyMCE's unfiltered notification system, which is used in error handling. The conditions for this exploit requires carefully crafted malicious content to have been inserted into the editor and a notification to have been triggered.

When a notification was opened, the HTML within the text argument was displayed unfiltered in the notification. The vulnerability allowed arbitrary JavaScript execution when an notification presented in the TinyMCE UI for the current user. This issue could also be exploited by any integration which uses a TinyMCE notification to display unfiltered HTML content.

Patches
This vulnerability has been patched in TinyMCE 5.10.8 and TinyMCE 6.7.1 by ensuring that the HTML displayed in the notification is sanitized, preventing the exploit.

Fix
To avoid this vulnerability:

  • Upgrade to TinyMCE 5.10.8 or higher for TinyMCE 5.x.
  • Upgrade to TinyMCE 6.7.1 or higher for TinyMCE 6.x.

References

For more information
If you have any questions or comments about this advisory:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-10-19 16:42 UTC
Modified
2024-02-16 08:21 UTC

Affected packages and fixes

tinymce

npm · All systems

Affected

  • introduced 6.0.0, fixed 6.7.1 (semver)

Fixed versions

6.7.1

Fix

TinyMCE

NuGet · All systems

Affected

  • introduced 6.0.0, fixed 6.7.1 (ecosystem)

Fixed versions

6.7.1

Fix

The export has no generic command for this ecosystem.

tinymce/tinymce

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.7.1 (ecosystem)

Fixed versions

6.7.1

Fix

The export has no generic command for this ecosystem.

tinymce

npm · All systems

Affected

  • introduced 0, fixed 5.10.8 (semver)

Fixed versions

5.10.8

Fix

TinyMCE

NuGet · All systems

Affected

  • introduced 0, fixed 5.10.8 (ecosystem)

Fixed versions

5.10.8

Fix

The export has no generic command for this ecosystem.

tinymce/tinymce

Packagist · All systems

Affected

  • introduced 0, fixed 5.10.8 (ecosystem)

Fixed versions

5.10.8

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences