GHSA-fxwm-rx68-p5vx: Ezsystems/ezplatform richtext Cross-Site Scripting Vulnerability

MODERATE
CWE-79
Published
Advisory Summary

GHSA-fxwm-rx68-p5vx is a MODERATE 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 xss in richtext custom tag attributes in ezsystems/ezplatform-richtext. Remediation is available by upgrading affected packages to version 2.3.7.1.

GHSA-fxwm-rx68-p5vx at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-fxwm-rx68-p5vx
Severity MODERATE
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 GHSA-fxwm-rx68-p5vx

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: 2.3.7.1
Upgrade ezsystems/ezplatform-richtext to 2.3.7.1
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 GHSA-fxwm-rx68-p5vx, 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 2.3.7.1), 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

The rich text editor does not escape attribute data when previewing custom tags. This means XSS is possible if custom tags are used, for users who have access to editing rich text content. Frontend content view is not affected, but the vulnerability could be used by editors to attack other editors. The fix ensures custom tag attribute data is escaped in the editor.

GHSA-fxwm-rx68-p5vx Affected Ezsystems/ezplatform richtext Versions

1 component(s)
Fixed Versions:
2.3.7.1
Product / Package Ecosystem Affected Versions Fixed Version
ezsystems/ezplatform-richtext
Packagist
≥ 2.3.0
< 2.3.7.1
2.3.7.1

References

Frequently Asked Questions

What is GHSA-fxwm-rx68-p5vx?
GHSA-fxwm-rx68-p5vx is a security vulnerability in Ezsystems/ezplatform richtext involving XSS in richtext custom tag attributes in ezsystems/ezplatform-richtext 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 2.3.7.1 across affected packages: ezsystems/ezplatform-richtext.
What version fixes GHSA-fxwm-rx68-p5vx?
Upgrading to 2.3.7.1 (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 2.3.7.1. Upgrade your dependency to 2.3.7.1 or later.
What CWE is associated with GHSA-fxwm-rx68-p5vx?
GHSA-fxwm-rx68-p5vx 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 GHSA-fxwm-rx68-p5vx?
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-fxwm-rx68-p5vx",
  "modified" : "2021-11-29T20:55:04Z",
  "published" : "2021-12-01T18:28:29Z",
  "aliases" : [ ],
  "summary" : "XSS in richtext custom tag attributes in ezsystems/ezplatform-richtext",
  "details" : "The rich text editor does not escape attribute data when previewing custom tags. This means XSS is possible if custom tags are used, for users who have access to editing rich text content. Frontend content view is not affected, but the vulnerability could be used by editors to attack other editors. The fix ensures custom tag attribute data is escaped in the editor.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezplatform-richtext"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "fixed" : "2.3.7.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ezsystems/ezplatform-richtext/security/advisories/GHSA-fxwm-rx68-p5vx"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ezsystems/ezplatform-richtext/commit/3cebfe2ae4c22e6590632a0ff71893854a16afc5"
  }, {
    "type" : "WEB",
    "url" : "https://developers.ibexa.co/security-advisories/ibexa-sa-2021-010-xss-in-richtext-custom-tag-attributes"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ezsystems/ezplatform-richtext"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-11-29T20:53:09Z",
    "nvd_published_at" : null
  }
}