Skip to content

TinyMCE XSS vulnerability in notificationManager.open API

Moderate severity GitHub Reviewed Published Oct 19, 2023 in tinymce/tinymce • Updated Nov 7, 2023

Package

nuget TinyMCE (NuGet)

Affected versions

>= 6.0.0, < 6.7.1
< 5.10.8

Patched versions

6.7.1
5.10.8
npm tinymce (npm)
>= 6.0.0, < 6.7.1
< 5.10.8
6.7.1
5.10.8
composer tinymce/tinymce (Composer)
>= 6.0.0, < 6.7.1
< 5.10.8
6.7.1
5.10.8

Description

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:

References

@mkzhx mkzhx published to tinymce/tinymce Oct 19, 2023
Published to the GitHub Advisory Database Oct 19, 2023
Reviewed Oct 19, 2023
Published by the National Vulnerability Database Oct 19, 2023
Last updated Nov 7, 2023

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

EPSS score

0.070%
(33rd percentile)

Weaknesses

CVE ID

CVE-2023-45819

GHSA ID

GHSA-hgqx-r2hp-jr38

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.