CVE-2024-43369: Ibexa/fieldtype richtext Cross-Site Scripting Vulnerability

HIGH
Advisory Identifier: GHSA-hvcf-6324-cjh7
CVSS 7.2
CWE-79
Published
Advisory Summary

CVE-2024-43369 is a HIGH (CVSS 7.2) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ibexa/fieldtype richtext libraries in the Packagist ecosystem. The issue involves persistent cross-site scripting in ibexa richtext field type. Remediation is available by upgrading affected packages to version 4.6.10.

CVE-2024-43369 at a Glance

CVE Identifier CVE-2024-43369
GHSA Identifier GHSA-hvcf-6324-cjh7
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Ibexa/fieldtype richtext
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-43369

To remediate this vulnerability, upgrade all affected Ibexa/fieldtype 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.

ibexa/fieldtype-richtext fixed: 4.6.10
Upgrade ibexa/fieldtype-richtext to 4.6.10
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 ibexa/fieldtype-richtext

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-43369, inspect your project dependencies for Ibexa/fieldtype richtext:

inspect dependencies for ibexa/fieldtype-richtext

Analyze the terminal output to locate any version of Ibexa/fieldtype richtext in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.6.10), 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 Ibexa/fieldtype 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/ibexa/fieldtype-richtext/commit/59e9c1a9da60597f60cf7338bf289dccaa7e27ca (and follow-up https://github.com/ibexa/fieldtype-richtext/commit/0a3b830e8806d5169f697351fdc48ffd95a25c67) ### Workarounds None. ### References - Same issue in v3.3: https://github.com/ezsystems/ezplatform-richtext/security/advisories/GHSA-rhm7-7469-rcpw - 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-43369 Affected Ibexa/fieldtype richtext Versions

1 component(s)
Fixed Versions:
4.6.10
Product / Package Ecosystem Affected Versions Fixed Version
ibexa/fieldtype-richtext
Packagist
≥ 4.6.0
< 4.6.10
4.6.10

References

Frequently Asked Questions

What is CVE-2024-43369?
CVE-2024-43369 is a security vulnerability in Ibexa/fieldtype richtext involving Persistent Cross-site Scripting in Ibexa RichText Field Type under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Ibexa/fieldtype richtext versions are affected?
Affected versions include releases prior to 4.6.10 across affected packages: ibexa/fieldtype-richtext.
What version fixes CVE-2024-43369?
Upgrading to 4.6.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ibexa/fieldtype-richtext affected?
Yes, ibexa/fieldtype-richtext is affected in releases prior to 4.6.10. Upgrade your dependency to 4.6.10 or later.
What is the CVSS score of CVE-2024-43369?
CVE-2024-43369 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2024-43369?
CVE-2024-43369 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-43369?
Run the dependency tree command: 'inspect dependencies for ibexa/fieldtype-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-hvcf-6324-cjh7",
  "modified" : "2024-08-16T18:15:38Z",
  "published" : "2024-08-14T18:08:19Z",
  "aliases" : [ "CVE-2024-43369" ],
  "summary" : "Persistent Cross-site Scripting in Ibexa RichText 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/ibexa/fieldtype-richtext/commit/59e9c1a9da60597f60cf7338bf289dccaa7e27ca (and follow-up https://github.com/ibexa/fieldtype-richtext/commit/0a3b830e8806d5169f697351fdc48ffd95a25c67)\n\n### Workarounds\nNone.\n\n### References\n- Same issue in v3.3: https://github.com/ezsystems/ezplatform-richtext/security/advisories/GHSA-rhm7-7469-rcpw\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" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ibexa/fieldtype-richtext"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.6.0"
      }, {
        "fixed" : "4.6.10"
      } ]
    } ]
  } ],
  "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/ibexa/fieldtype-richtext/commit/0a3b830e8806d5169f697351fdc48ffd95a25c67"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ibexa/fieldtype-richtext/commit/59e9c1a9da60597f60cf7338bf289dccaa7e27ca"
  }, {
    "type" : "WEB",
    "url" : "https://developers.ibexa.co/security-advisories/ibexa-sa-2024-005-persistent-xss-in-richtext"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ibexa/fieldtype-richtext"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-14T18:08:19Z",
    "nvd_published_at" : "2024-08-16T02:15:16Z"
  }
}