GHSA-9j5w-2cqc-cwj9: Openmage/magento lts Cross-Site Scripting Vulnerability
HIGHGHSA-9j5w-2cqc-cwj9 is a HIGH (CVSS 7.5) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Openmage/magento lts libraries in the Packagist ecosystem. The issue involves magento lts vulnerable to stored xss via tinymce wysiwyg editor. Remediation is available by upgrading affected packages to version 20.2.0.
GHSA-9j5w-2cqc-cwj9 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:L).
How to Fix GHSA-9j5w-2cqc-cwj9
To remediate this vulnerability, upgrade all affected Openmage/magento lts dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade openmage/magento-lts to 20.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for openmage/magento-lts
How to Check if You Are Affected
To determine whether your application is affected by GHSA-9j5w-2cqc-cwj9, inspect your project dependencies for Openmage/magento lts:
inspect dependencies for openmage/magento-lts
Analyze the terminal output to locate any version of Openmage/magento lts in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 20.2.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
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 Openmage/magento lts, 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-9j5w-2cqc-cwj9 Affected Openmage/magento lts Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
openmage/magento-lts
|
Packagist |
< 20.2.0
|
20.2.0
|
References
Frequently Asked Questions
What is GHSA-9j5w-2cqc-cwj9?
Which Openmage/magento lts versions are affected?
What version fixes GHSA-9j5w-2cqc-cwj9?
Is openmage/magento-lts affected?
What is the CVSS score of GHSA-9j5w-2cqc-cwj9?
What CWE is associated with GHSA-9j5w-2cqc-cwj9?
How can I check Packagist dependencies for GHSA-9j5w-2cqc-cwj9?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9j5w-2cqc-cwj9",
"modified" : "2023-12-08T15:15:14Z",
"published" : "2023-12-08T15:15:14Z",
"aliases" : [ ],
"summary" : "Magento LTS vulnerable to Stored XSS via TinyMCE WYSIWYG Editor",
"details" : "From HackerOne report [#1948040](https://hackerone.com/reports/1948040) by Halit AKAYDIN (hltakydn)\n\n### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nThe TinyMCE WYSIWYG editor fails to filter scripts when rendering the HTML in specially crafted HTML tags.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nThis vulnerability was fixed in version 20.2.0 by upgrading TinyMCE to a recent version in https://github.com/OpenMage/magento-lts/pull/3220\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nThe WYSIWYG editor features could be disabled in the configuration. Possibly some WAF appliances would filter this attack.\n\n### References\n_Are there any links users can visit to find out more?_\n\nThe attack is simply an exploit of the \"onmouseover\" attribute of an `img` element as described on [OWASP XSS Filter Evasion](https://cheatsheetseries.owasp.org/cheatsheets/XSS_Filter_Evasion_Cheat_Sheet.html)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "openmage/magento-lts"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "20.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/OpenMage/magento-lts/security/advisories/GHSA-9j5w-2cqc-cwj9"
}, {
"type" : "WEB",
"url" : "https://github.com/OpenMage/magento-lts/pull/3220"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/1948040"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/OpenMage/magento-lts"
}, {
"type" : "WEB",
"url" : "https://github.com/OpenMage/magento-lts/releases/tag/v20.2.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-12-08T15:15:14Z",
"nvd_published_at" : null
}
}