GHSA-h96f-fc7c-9r55: Tinymce Denial of Service Vulnerability

LOW
CWE-400
Published
Advisory Summary

GHSA-h96f-fc7c-9r55 is a LOW denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Tinymce libraries in the npm ecosystem. The issue involves regex denial of service vulnerability in codesample plugin. Remediation is available by upgrading affected packages to version 5.6.0.

GHSA-h96f-fc7c-9r55 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-h96f-fc7c-9r55
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Tinymce
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-h96f-fc7c-9r55

To remediate this vulnerability, upgrade all affected Tinymce dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

tinymce fixed: 5.6.0
npm install tinymce@5.6.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls tinymce

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-h96f-fc7c-9r55, inspect your project dependencies using npm:

npm ls tinymce

Analyze the terminal output to locate any version of Tinymce in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.6.0), your application is affected.

Note: The npm ls tinymce command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Tinymce, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A regex denial of service (ReDoS) vulnerability was discovered in a dependency of the `codesample` plugin. The vulnerability allowed poorly formed ruby code samples to lock up the browser while performing syntax highlighting. This impacts users of the `codesample` plugin using TinyMCE 5.5.1 or lower. ### Patches This vulnerability has been patched in TinyMCE 5.6.0 by upgrading to a version of the dependency without the vulnerability. ### Workarounds To work around this vulnerability, either: - Upgrade to TinyMCE 5.6.0 or higher - Disable the `codesample` plugin - Disable ruby code samples using the [codesample_languages](https://www.tiny.cloud/docs/plugins/opensource/codesample/#exampleusingcodesample_languages) setting - Override the PrismJS syntax highlighter to version 1.21.0 or higher using the [codesample_global_prismjs](https://www.tiny.cloud/docs/plugins/opensource/codesample/#codesample_global_prismjs) setting ### Acknowledgements Tiny Technologies would like to thank Erik Krogh Kristensen at GitHub 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](http://github.com/tinymce/tinymce/issues) * Email us at [infosec@tiny.cloud](mailto:infosec@tiny.cloud)

GHSA-h96f-fc7c-9r55 Affected Tinymce Versions

1 component(s)
Fixed Versions:
5.6.0
Product / Package Ecosystem Affected Versions Fixed Version
tinymce
npm
< 5.6.0
5.6.0

References

Frequently Asked Questions

What is GHSA-h96f-fc7c-9r55?
GHSA-h96f-fc7c-9r55 is a security vulnerability in Tinymce involving Regex denial of service vulnerability in codesample plugin under CWE-400: Uncontrolled Resource Consumption.
Which Tinymce versions are affected?
Affected versions include releases prior to 5.6.0 across affected packages: tinymce.
What version fixes GHSA-h96f-fc7c-9r55?
Upgrading to 5.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tinymce affected?
Yes, tinymce is affected in releases prior to 5.6.0. Upgrade your dependency to 5.6.0 or later.
What CWE is associated with GHSA-h96f-fc7c-9r55?
GHSA-h96f-fc7c-9r55 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for GHSA-h96f-fc7c-9r55?
Run the dependency tree command: 'npm ls tinymce'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-h96f-fc7c-9r55",
  "modified" : "2021-01-06T19:25:24Z",
  "published" : "2021-01-06T19:25:46Z",
  "aliases" : [ ],
  "summary" : "Regex denial of service vulnerability in codesample plugin",
  "details" : "### Impact\nA regex denial of service (ReDoS) vulnerability was discovered in a dependency of the `codesample` plugin. The vulnerability allowed poorly formed ruby code samples to lock up the browser while performing syntax highlighting. This impacts users of the `codesample` plugin using TinyMCE 5.5.1 or lower.\n\n### Patches\nThis vulnerability has been patched in TinyMCE 5.6.0 by upgrading to a version of the dependency without the vulnerability.\n\n### Workarounds\nTo work around this vulnerability, either:\n- Upgrade to TinyMCE 5.6.0 or higher\n- Disable the `codesample` plugin\n- Disable ruby code samples using the [codesample_languages](https://www.tiny.cloud/docs/plugins/opensource/codesample/#exampleusingcodesample_languages) setting\n- Override the PrismJS syntax highlighter to version 1.21.0 or higher using the [codesample_global_prismjs](https://www.tiny.cloud/docs/plugins/opensource/codesample/#codesample_global_prismjs) setting\n\n### Acknowledgements\nTiny Technologies would like to thank Erik Krogh Kristensen at GitHub for discovering this vulnerability.\n\n### References\nhttps://www.tiny.cloud/docs/release-notes/release-notes56/#securityfixes\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in the [TinyMCE repo](http://github.com/tinymce/tinymce/issues)\n* Email us at [infosec@tiny.cloud](mailto:infosec@tiny.cloud)",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "tinymce"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/tinymce/tinymce/security/advisories/GHSA-h96f-fc7c-9r55"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/tinymce"
  }, {
    "type" : "WEB",
    "url" : "https://www.tiny.cloud/docs/release-notes/release-notes56/#securityfixes"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-01-06T19:25:24Z",
    "nvd_published_at" : null
  }
}