Every CVE Search/ Get API key

CVE-2024-38356

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

6.1 MediumFix available

TinyMCE is an open source rich text editor. 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. 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. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
None

Exploit likelihood

0.53%Up 0.5 points since Jun 20, 2024
90%50%10%1%

What each source reports

CVE List Score used 6.1

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

TinyMCE is an open source rich text editor. 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. 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. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Record
CVE-2024-38356
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
EUVDEUVD-2024-2005 6.1

TinyMCE is an open source rich text editor. 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. 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. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Record
EUVD-2024-2005
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-03
GitHub AdvisoriesGHSA-9hcv-j9pv-qmph 5.3

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

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:

Record
GHSA-9hcv-j9pv-qmph
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:L
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
GitHub AdvisoriesGHSA-5vm8-hhgr-jcjp No score

Cross-site scripting vulnerability in TinyMCE

Impact

A cross-site scripting (XSS) vulnerability was discovered in the URL sanitization logic of the core parser for form elements. The vulnerability allowed arbitrary JavaScript execution when inserting a specially crafted piece of content into the editor using the clipboard or APIs, and then submitting the form. However, as TinyMCE does not allow forms to be submitted while editing, the vulnerability could only be triggered when the content was previewed or rendered outside of the editor. This impacts all users who are using TinyMCE 5.7.0 or lower.

Patches

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

Workarounds

To work around this vulnerability, either:

  • Upgrade to TinyMCE 5.7.1 or higher
  • Manually sanitize form URL attributes using a TinyMCE node filter.
  • Disable form elements in your content using the invalid_elements setting.

Example: Sanitizing using a node filter

editor.parser.addNodeFilter('form', 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 invalid_elements

invalid_elements: 'form'

Acknowledgements

Tiny Technologies would like to thank Mikhail Khramenkov at Solar Security Research Team for discovering this vulnerability.

References

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

For more information

If you have any questions or comments about this advisory:

Record
GHSA-5vm8-hhgr-jcjp
Weakness
CWE-79
Updated
2026-11-02
NVD 6.1

TinyMCE is an open source rich text editor. 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. 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. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Record
CVE-2024-38356
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
OSV 6.1

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

TinyMCE is an open source rich text editor. 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. 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. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Record
CVE-2024-38356
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
Show 7 moreShow less
OSVGHSA-9hcv-j9pv-qmph 5.3

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

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:

Record
GHSA-9hcv-j9pv-qmph
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:L
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
OSVPYSEC-2026-1301 5.3

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

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:

Record
PYSEC-2026-1301
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:L
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2024-38356 6.1

TinyMCE is an open source rich text editor. 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. 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. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Record
UBUNTU-CVE-2024-38356
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVCLSA-2026-1777423184 No score

TuxCare security update for tinymce (12 CVEs)

TuxCare rebuilt tinymce to address 12 CVEs. Fixed in 4.9.11-tuxcare.1.

Record
CLSA-2026-1777423184
Updated
2026-11-02
OSVCLSA-2026-1777423186 No score

TuxCare security update for tinymce (4 CVEs)

TuxCare rebuilt tinymce to address 4 CVEs. Fixed in 5.10.9-tuxcare.1.

Record
CLSA-2026-1777423186
Updated
2026-11-02
OSVCLSA-2026-1792761444 No score

TuxCare security update for 3 packages (2 CVEs)

TuxCare rebuilt 3 packages to address 2 CVEs. Fixed in 2.9.18-tuxcare.3.

Record
CLSA-2026-1792761444
Updated
2026-11-02
OSVGHSA-5vm8-hhgr-jcjp No score

Cross-site scripting vulnerability in TinyMCE

Impact

A cross-site scripting (XSS) vulnerability was discovered in the URL sanitization logic of the core parser for form elements. The vulnerability allowed arbitrary JavaScript execution when inserting a specially crafted piece of content into the editor using the clipboard or APIs, and then submitting the form. However, as TinyMCE does not allow forms to be submitted while editing, the vulnerability could only be triggered when the content was previewed or rendered outside of the editor. This impacts all users who are using TinyMCE 5.7.0 or lower.

Patches

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

Workarounds

To work around this vulnerability, either:

  • Upgrade to TinyMCE 5.7.1 or higher
  • Manually sanitize form URL attributes using a TinyMCE node filter.
  • Disable form elements in your content using the invalid_elements setting.

Example: Sanitizing using a node filter

editor.parser.addNodeFilter('form', 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 invalid_elements

invalid_elements: 'form'

Acknowledgements

Tiny Technologies would like to thank Mikhail Khramenkov at Solar Security Research Team for discovering this vulnerability.

References

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

For more information

If you have any questions or comments about this advisory:

Record
GHSA-5vm8-hhgr-jcjp
Weakness
CWE-79
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
tinymce
npm
before 5.7.1
5.7.1
tinymce
npm
before 5.11.0
5.11.0
TinyMCE
NuGet
before 5.11.0
5.11.0
tinymce/tinymce
Packagist
before 5.11.0
5.11.0
tinymce
npm
6.0.0 up to 6.8.4
6.8.4
tinymce
npm
7.0.0 up to 7.2.0
7.2.0
TinyMCE
NuGet
6.0.0 up to 6.8.4
6.8.4
TinyMCE
NuGet
7.0.0 up to 7.2.0
7.2.0
tinymce/tinymce
Packagist
6.0.0 up to 6.8.4
6.8.4
tinymce/tinymce
Packagist
7.0.0 up to 7.2.0
7.2.0
Show 18 moreShow less
Affected packages
PackageAffectedFixed
django-tinymce
PyPI
through 4.0.0
4.1.0
tinymce
TuxCare:npm
From an advisory covering 11 CVEs
4.9.11-tuxcare.0 up to 4.9.11-tuxcare.1, plus listed versions
4.9.11
4.9.11-tuxcare.1
tinymce
TuxCare:npm
From an advisory covering 4 CVEs
5.10.9-tuxcare.0 up to 5.10.9-tuxcare.1, plus listed versions
5.10.9
5.10.9-tuxcare.1
@vitejs/plugin-legacy
TuxCare:npm
From an advisory covering 2 CVEs
2.9.18-tuxcare.0 up to 2.9.18-tuxcare.3, plus listed versions
2.9.182.9.18-tuxcare.12.9.18-tuxcare.2
2.9.18-tuxcare.3
create-vite
TuxCare:npm
From an advisory covering 2 CVEs
2.9.18-tuxcare.0 up to 2.9.18-tuxcare.3, plus listed versions
2.9.182.9.18-tuxcare.12.9.18-tuxcare.2
2.9.18-tuxcare.3
vite
TuxCare:npm
From an advisory covering 2 CVEs
2.9.18-tuxcare.0 up to 2.9.18-tuxcare.3, plus listed versions
2.9.182.9.18-tuxcare.12.9.18-tuxcare.2
2.9.18-tuxcare.3
TinyMCE
NuGet
before 5.11.0, plus listed versions
3.4.3.23.4.43.4.53.4.73.5.0
Show 45 moreShow less
3.5.0.13.5.13.5.1.13.5.23.5.33.5.43.5.4.13.5.53.5.63.5.73.5.84.0.04.0.14.0.104.0.114.0.134.0.144.0.154.0.164.0.174.0.184.0.194.0.24.0.204.0.214.0.224.0.234.0.244.0.254.0.264.0.274.0.284.0.44.0.54.0.64.0.84.0.94.1.04.1.14.1.104.1.24.1.34.1.44.1.54.1.6
5.11.0
tinymce/tinymce
Packagist
before 5.11.0, plus listed versions
4.0.04.0.14.0.104.0.114.0.12
Show 45 moreShow less
4.0.134.0.144.0.154.0.164.0.174.0.184.0.194.0.24.0.204.0.214.0.224.0.234.0.244.0.254.0.264.0.274.0.284.0.34.0.44.0.54.0.64.0.74.0.84.0.94.1.04.1.14.1.104.1.24.1.34.1.44.1.54.1.64.1.74.1.84.1.94.2.04.2.14.2.24.2.34.2.44.2.54.2.64.2.74.2.84.3.0
5.11.0
TinyMCE
NuGet
6.0.0 up to 6.8.4, plus listed versions
6.0.16.0.26.0.36.1.06.1.1
Show 19 moreShow less
6.1.26.2.06.3.06.3.16.3.26.4.06.4.16.4.26.5.06.5.16.6.26.7.06.7.16.7.26.7.36.8.06.8.16.8.26.8.3
6.8.4
TinyMCE
NuGet
7.0.0 up to 7.2.0, plus listed versions
7.0.17.1.07.1.17.1.2
7.2.0
tinymce/tinymce
Packagist
6.0.0 up to 6.8.4, plus listed versions
6.0.16.0.26.0.36.1.06.1.1
Show 21 moreShow less
6.1.26.2.06.3.06.3.16.3.26.4.06.4.16.4.26.5.06.5.16.6.06.6.16.6.26.7.06.7.16.7.26.7.36.8.06.8.16.8.26.8.3
6.8.4
tinymce/tinymce
Packagist
7.0.0 up to 7.2.0, plus listed versions
7.0.17.1.07.1.17.1.2
7.2.0
django-tinymce
PyPI
before 4.1.0, plus listed versions
1.01.11.21.31.4
Show 45 moreShow less
1.4.11.51.5.11.5.1.dev1001.5.1.dev1011.5.1a11.5.1a21.5.1a31.5.1b11.5.1b21.5.1b31.5.1b41.5.21.5.31.5.42.0.02.0.12.0.22.0.32.0.42.0.52.0.62.0.72.1.02.2.02.3.02.4.02.5.02.6.02.6.12.7.02.7.12.8.02.9.03.0.13.0.23.1.03.2.03.3.03.4.03.5.03.6.03.6.13.7.03.7.1
4.1.0
roundcube
Ubuntu:Pro:22.04:LTS
before 1.5.0+dfsg.1-2ubuntu0.1~esm6, plus listed versions
1.4.11+dfsg.1-41.5.0+dfsg.1-21.5.0+dfsg.1-2ubuntu0.1~esm11.5.0+dfsg.1-2ubuntu0.1~esm21.5.0+dfsg.1-2ubuntu0.1~esm31.5.0+dfsg.1-2ubuntu0.1~esm41.5.0+dfsg.1-2ubuntu0.1~esm5
1.5.0+dfsg.1-2ubuntu0.1~esm6
roundcube
Ubuntu:Pro:24.04:LTS
before 1.6.6+dfsg-2ubuntu0.1+esm3, plus listed versions
1.6.2+dfsg-11.6.4+dfsg-11.6.5+dfsg-11.6.6+dfsg-11.6.6+dfsg-21.6.6+dfsg-2ubuntu0.11.6.6+dfsg-2ubuntu0.1+esm11.6.6+dfsg-2ubuntu0.1+esm2
1.6.6+dfsg-2ubuntu0.1+esm3
roundcube
Ubuntu:25.10
All versions, plus listed versions
1.6.10+dfsg-11.6.10+dfsg-21.6.11+dfsg-1
None known
roundcube
Ubuntu:26.10
All versions, plus listed versions
1.6.11+dfsg-1
None known
roundcube
Ubuntu:Pro:26.04:LTS
All versions, plus listed versions
1.6.11+dfsg-11.6.11+dfsg-1ubuntu0.26.04.1~esm1
None known

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-38356 is a medium vulnerability (CVSS 6.1) in Tinymce, published May 28, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.53%, the 45th percentile. Fixed in tinymce 5.7.1.

References

Show 11 moreShow less
This page doesn't list everything

Left out here: 256 versions. The JSON record has them.

MoveEnter Open