GHSA-gjhc-6xm7-mc8q: Duplicate Advisory Cross-Site Scripting Vulnerability
MODERATEGHSA-gjhc-6xm7-mc8q is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Duplicate Advisory libraries in the npm ecosystem. The issue involves cross-site scripting vulnerability in tinymce. Remediation is available by upgrading affected packages to version 5.9.0.
GHSA-gjhc-6xm7-mc8q at a Glance
How to Fix GHSA-gjhc-6xm7-mc8q
To remediate this vulnerability, upgrade all affected Duplicate Advisory 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.9.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-gjhc-6xm7-mc8q, inspect your project dependencies using npm:
npm ls tinymce
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.9.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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Duplicate Advisory, 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-gjhc-6xm7-mc8q Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tinymce
|
npm |
< 5.9.0
|
5.9.0
|
References
Frequently Asked Questions
What is GHSA-gjhc-6xm7-mc8q?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-gjhc-6xm7-mc8q?
Is tinymce affected?
What CWE is associated with GHSA-gjhc-6xm7-mc8q?
How can I check npm dependencies for GHSA-gjhc-6xm7-mc8q?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gjhc-6xm7-mc8q",
"modified" : "2024-01-03T22:27:29Z",
"published" : "2024-01-03T18:30:51Z",
"withdrawn" : "2024-01-03T21:21:37Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Cross-site scripting vulnerability in TinyMCE",
"details" : "### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-5h9g-x5rv-25wg. This link is maintained to preserve external references.\n\n### Original Description\nTinyMCE versions before 5.9.0 are affected by a stored cross-site scripting vulnerability. An unauthenticated and remote attacker could insert crafted HTML into the editor resulting in arbitrary JavaScript execution in another user's browser.\n\n\n\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "tinymce"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.9.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tinymce/tinymce/security/advisories/GHSA-5h9g-x5rv-25wg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21908"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-5h9g-x5rv-25wg"
}, {
"type" : "WEB",
"url" : "https://vulncheck.com/advisories/vc-advisory-GHSA-5h9g-x5rv-25wg"
}, {
"type" : "WEB",
"url" : "https://www.tiny.cloud/docs/release-notes/release-notes59/#securityfixes"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-03T21:21:37Z",
"nvd_published_at" : "2024-01-03T16:15:08Z"
}
}