GHSA-gc5h-6jx9-q2qh: Ezsystems/ezplatform admin ui Cross-Site Scripting Vulnerability

MODERATE
CVSS 5.4
CWE-79
Published
Advisory Summary

GHSA-gc5h-6jx9-q2qh is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ezsystems/ezplatform admin ui libraries in the Packagist ecosystem. The issue involves ez platform admin ui vulnerable to dom-based cross-site scripting in file upload widget. Remediation is available by upgrading affected packages to version 3.3.39.

GHSA-gc5h-6jx9-q2qh at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-gc5h-6jx9-q2qh
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Ezsystems/ezplatform admin ui
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.4

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

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

How to Fix GHSA-gc5h-6jx9-q2qh

To remediate this vulnerability, upgrade all affected Ezsystems/ezplatform admin ui 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-admin-ui fixed: 3.3.39
Upgrade ezsystems/ezplatform-admin-ui to 3.3.39
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-admin-ui

How to Check if You Are Affected

To determine whether your application is affected by GHSA-gc5h-6jx9-q2qh, inspect your project dependencies for Ezsystems/ezplatform admin ui:

inspect dependencies for ezsystems/ezplatform-admin-ui

Analyze the terminal output to locate any version of Ezsystems/ezplatform admin ui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.39), 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 admin ui, 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 file upload widget is vulnerable to XSS payloads in filenames. Access permission to upload files is required. As such, in most cases only authenticated editors and administrators will have the required permission. It is not persistent, i.e. the payload is only executed during the upload. In effect, an attacker will have to trick an editor/administrator into uploading a strangely named file. The fix ensures XSS is escaped. ### Patches See "Patched versions". Commit: https://github.com/ezsystems/ezplatform-admin-ui/commit/7a9f991b200fa5a03d49cd07f50577c8bc90a30b ### Workarounds None. ### References - https://developers.ibexa.co/security-advisories/ibexa-sa-2024-004-dom-based-xss-in-file-upload - https://github.com/ezsystems/ezplatform-admin-ui/commit/7a9f991b200fa5a03d49cd07f50577c8bc90a30b - https://github.com/ibexa/admin-ui/security/advisories/GHSA-qm44-wjm2-pr59 ### 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/

GHSA-gc5h-6jx9-q2qh Affected Ezsystems/ezplatform admin ui Versions

1 component(s)
Fixed Versions:
3.3.39
Product / Package Ecosystem Affected Versions Fixed Version
ezsystems/ezplatform-admin-ui
Packagist
≥ 3.3.0
< 3.3.39
3.3.39

References

Frequently Asked Questions

What is GHSA-gc5h-6jx9-q2qh?
GHSA-gc5h-6jx9-q2qh is a security vulnerability in Ezsystems/ezplatform admin ui involving eZ Platform Admin UI vulnerable to DOM-based Cross-site Scripting in file upload widget under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Ezsystems/ezplatform admin ui versions are affected?
Affected versions include releases prior to 3.3.39 across affected packages: ezsystems/ezplatform-admin-ui.
What version fixes GHSA-gc5h-6jx9-q2qh?
Upgrading to 3.3.39 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ezsystems/ezplatform-admin-ui affected?
Yes, ezsystems/ezplatform-admin-ui is affected in releases prior to 3.3.39. Upgrade your dependency to 3.3.39 or later.
What is the CVSS score of GHSA-gc5h-6jx9-q2qh?
GHSA-gc5h-6jx9-q2qh has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with GHSA-gc5h-6jx9-q2qh?
GHSA-gc5h-6jx9-q2qh 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-gc5h-6jx9-q2qh?
Run the dependency tree command: 'inspect dependencies for ezsystems/ezplatform-admin-ui'. 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-gc5h-6jx9-q2qh",
  "modified" : "2024-07-31T17:01:59Z",
  "published" : "2024-07-31T17:01:59Z",
  "aliases" : [ ],
  "summary" : "eZ Platform Admin UI vulnerable to DOM-based Cross-site Scripting in file upload widget",
  "details" : "### Impact\nThe file upload widget is vulnerable to XSS payloads in filenames. Access permission to upload files is required. As such, in most cases only authenticated editors and administrators will have the required permission. It is not persistent, i.e. the payload is only executed during the upload. In effect, an attacker will have to trick an editor/administrator into uploading a strangely named file. The fix ensures XSS is escaped.\n\n### Patches\nSee \"Patched versions\". Commit: https://github.com/ezsystems/ezplatform-admin-ui/commit/7a9f991b200fa5a03d49cd07f50577c8bc90a30b\n\n### Workarounds\nNone.\n\n### References\n- https://developers.ibexa.co/security-advisories/ibexa-sa-2024-004-dom-based-xss-in-file-upload\n- https://github.com/ezsystems/ezplatform-admin-ui/commit/7a9f991b200fa5a03d49cd07f50577c8bc90a30b\n- https://github.com/ibexa/admin-ui/security/advisories/GHSA-qm44-wjm2-pr59\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:L/UI:R/S:C/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezplatform-admin-ui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.0"
      }, {
        "fixed" : "3.3.39"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ezsystems/ezplatform-admin-ui/security/advisories/GHSA-gc5h-6jx9-q2qh"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ibexa/admin-ui/security/advisories/GHSA-qm44-wjm2-pr59"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ezsystems/ezplatform-admin-ui/commit/7a9f991b200fa5a03d49cd07f50577c8bc90a30b"
  }, {
    "type" : "WEB",
    "url" : "https://developers.ibexa.co/security-advisories/ibexa-sa-2024-004-dom-based-xss-in-file-upload"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ezsystems/ezplatform-admin-ui"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-31T17:01:59Z",
    "nvd_published_at" : null
  }
}