CVE-2024-43372: Ezsystems/ezplatform richtext Cross-Site Scripting Vulnerability
HIGHCVE-2024-43372 is a HIGH cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ezsystems/ezplatform richtext libraries in the Packagist ecosystem. The issue involves persistent cross-site scripting in ez platform rich text field type. Remediation is available by upgrading affected packages to version 3.3.40.
CVE-2024-43372 at a Glance
How to Fix CVE-2024-43372
To remediate this vulnerability, upgrade all affected Ezsystems/ezplatform richtext 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 ezsystems/ezplatform-richtext to 3.3.40
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ezsystems/ezplatform-richtext
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-43372, inspect your project dependencies for Ezsystems/ezplatform richtext:
inspect dependencies for ezsystems/ezplatform-richtext
Analyze the terminal output to locate any version of Ezsystems/ezplatform richtext in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.40), 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 Ezsystems/ezplatform richtext, 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
CVE-2024-43372 Affected Ezsystems/ezplatform richtext Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ezsystems/ezplatform-richtext
|
Packagist |
≥ 3.3.0
< 3.3.40
|
3.3.40
|
References
Frequently Asked Questions
What is CVE-2024-43372?
Which Ezsystems/ezplatform richtext versions are affected?
What version fixes CVE-2024-43372?
Is ezsystems/ezplatform-richtext affected?
What CWE is associated with CVE-2024-43372?
How can I check Packagist dependencies for CVE-2024-43372?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rhm7-7469-rcpw",
"modified" : "2024-08-14T20:52:22Z",
"published" : "2024-08-14T18:08:22Z",
"aliases" : [ "CVE-2024-43372" ],
"summary" : "Persistent Cross-site Scripting in eZ Platform Rich Text Field Type",
"details" : "### Impact\nThe validator for the RichText fieldtype blocklists `javascript:` and `vbscript:` in links to prevent XSS. This can leave other options open, and the check can be circumvented using upper case. Content editing permissions for RichText content is required to exploit this vulnerability, which typically means Editor role or higher. The fix implements an allowlist instead, which allows only approved link protocols. The new check is case insensitive.\n\n### Patches\n- See \"Patched versions\".\n- https://github.com/ezsystems/ezplatform-richtext/commit/6131975108fa9756e17043e7a06a4e72f786f842 (and follow-ups https://github.com/ezsystems/ezplatform-richtext/commit/8b75c603dfd1ad6f6f3db15ae2324876683cbaf9 and https://github.com/ezsystems/ezplatform-richtext/commit/7bbc6d024c6146d1e1ba84d27a3ebffe9459613e and https://github.com/ezsystems/ezplatform-richtext/commit/2c652915625c47b493a2be06924f4c87d1df7d8e and https://github.com/ezsystems/ezplatform-richtext/commit/dbe816f3ff4c903cc508dfdcdca8791c8284d292)\n\n### Workarounds\nNone.\n\n### References\n- Same issue in v4.6: https://github.com/ibexa/fieldtype-richtext/security/advisories/GHSA-hvcf-6324-cjh7\n- Ibexa advisory: https://developers.ibexa.co/security-advisories/ibexa-sa-2024-005-persistent-xss-in-richtext\n\n### Credit\nThis vulnerability was discovered and reported to Ibexa by Alec Romano: https://github.com/4rdr\nWe thank them for reporting it responsibly to us.\n\nHow to report security issues:\nhttps://doc.ibexa.co/en/latest/infrastructure_and_maintenance/security/reporting_issues/",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezplatform-richtext"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.3.0"
}, {
"fixed" : "3.3.40"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ezsystems/ezplatform-richtext/security/advisories/GHSA-rhm7-7469-rcpw"
}, {
"type" : "WEB",
"url" : "https://github.com/ibexa/fieldtype-richtext/security/advisories/GHSA-hvcf-6324-cjh7"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-43369"
}, {
"type" : "WEB",
"url" : "https://github.com/ezsystems/ezplatform-richtext/commit/2c652915625c47b493a2be06924f4c87d1df7d8e"
}, {
"type" : "WEB",
"url" : "https://github.com/ezsystems/ezplatform-richtext/commit/6131975108fa9756e17043e7a06a4e72f786f842"
}, {
"type" : "WEB",
"url" : "https://github.com/ezsystems/ezplatform-richtext/commit/7bbc6d024c6146d1e1ba84d27a3ebffe9459613e"
}, {
"type" : "WEB",
"url" : "https://github.com/ezsystems/ezplatform-richtext/commit/8b75c603dfd1ad6f6f3db15ae2324876683cbaf9"
}, {
"type" : "WEB",
"url" : "https://github.com/ezsystems/ezplatform-richtext/commit/dbe816f3ff4c903cc508dfdcdca8791c8284d292"
}, {
"type" : "WEB",
"url" : "https://developers.ibexa.co/security-advisories/ibexa-sa-2024-005-persistent-xss-in-richtext"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ezsystems/ezplatform-richtext"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-08-14T18:08:22Z",
"nvd_published_at" : null
}
}