CVE-2024-43372: Ezsystems/ezplatform richtext Cross-Site Scripting Vulnerability

HIGH
Advisory Identifier: GHSA-rhm7-7469-rcpw
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-43372
GHSA Identifier GHSA-rhm7-7469-rcpw
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Ezsystems/ezplatform richtext
Package Ecosystem Packagist
Published Date
Last Updated

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.

ezsystems/ezplatform-richtext fixed: 3.3.40
Upgrade ezsystems/ezplatform-richtext to 3.3.40
Verify Direct and Transitive Dependencies

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

### Impact The 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. ### Patches - See "Patched versions". - 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) ### Workarounds None. ### References - Same issue in v4.6: https://github.com/ibexa/fieldtype-richtext/security/advisories/GHSA-hvcf-6324-cjh7 - Ibexa advisory: https://developers.ibexa.co/security-advisories/ibexa-sa-2024-005-persistent-xss-in-richtext ### Credit This vulnerability was discovered and reported to Ibexa by Alec Romano: https://github.com/4rdr We thank them for reporting it responsibly to us. How to report security issues: https://doc.ibexa.co/en/latest/infrastructure_and_maintenance/security/reporting_issues/

CVE-2024-43372 Affected Ezsystems/ezplatform richtext Versions

1 component(s)
Fixed Versions:
3.3.40
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?
CVE-2024-43372 is a security vulnerability in Ezsystems/ezplatform richtext involving Persistent Cross-site Scripting in eZ Platform Rich Text Field Type under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Ezsystems/ezplatform richtext versions are affected?
Affected versions include releases prior to 3.3.40 across affected packages: ezsystems/ezplatform-richtext.
What version fixes CVE-2024-43372?
Upgrading to 3.3.40 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ezsystems/ezplatform-richtext affected?
Yes, ezsystems/ezplatform-richtext is affected in releases prior to 3.3.40. Upgrade your dependency to 3.3.40 or later.
What CWE is associated with CVE-2024-43372?
CVE-2024-43372 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Packagist dependencies for CVE-2024-43372?
Run the dependency tree command: 'inspect dependencies for ezsystems/ezplatform-richtext'. 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-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
  }
}