Skip to content

TinyMCE Cross-Site Scripting (XSS) vulnerability using noneditable_regexp option

Moderate
EkimChau published GHSA-9hcv-j9pv-qmph Jun 19, 2024

Package

npm TinyMCE (npm)

Affected versions

<5.11.0, >=6.0.0 <6.8.4, >=7.0.0 <7.2.0

Patched versions

5.11.0, 6.8.4, 7.2.0
nuget TinyMCE (NuGet)
<5.11.0, >=6.0.0 <6.8.4, >=7.0.0 <7.2.0
5.11.0, 6.8.4, 7.2.0
composer TinyMCE (Composer)
<5.11.0, >=6.0.0 <6.8.4, >=7.0.0 <7.2.0
5.11.0, 6.8.4, 7.2.0
pip django-tinymce (pip)
<4.0.0
4.1.0
bundler tinymce-rails (RubyGems)
<6.8.4, >=7.0.0 <7.2.0
6.8.4, 7.2.0

Description

Impact

A cross-site scripting (XSS) vulnerability was discovered in TinyMCE’s content extraction code. When using the noneditable_regexp option, specially crafted HTML attributes containing malicious code were able to be executed when content was extracted from the editor.

Patches

This vulnerability has been patched in TinyMCE 7.2.0, TinyMCE 6.8.4 and TinyMCE 5.11.0 LTS by ensuring that, when using the noneditable_regexp option, any content within an attribute is properly verified to match the configured regular expression before being added.

Fix

To avoid this vulnerability:

  • Upgrade to TinyMCE 7.2.0 or higher.
  • Upgrade to TinyMCE 6.8.4 or higher for TinyMCE 6.x.
  • Upgrade to TinyMCE 5.11.0 LTS or higher for TinyMCE 5.x (only available as part of commercial long-term support contract).

References

For more information

If you have any questions or comments about this advisory:

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

CVE ID

CVE-2024-38356

Weaknesses