GHSA-h96f-fc7c-9r55: Tinymce Denial of Service Vulnerability
LOWGHSA-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
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.
npm install tinymce@5.6.0
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
GHSA-h96f-fc7c-9r55 Affected Tinymce Versions
1 component(s)| 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?
Which Tinymce versions are affected?
What version fixes GHSA-h96f-fc7c-9r55?
Is tinymce affected?
What CWE is associated with GHSA-h96f-fc7c-9r55?
How can I check npm dependencies for GHSA-h96f-fc7c-9r55?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}