CVE-2024-39318: Ibexa/admin ui Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-qm44-wjm2-pr59
CVSS 5.4
CWE-79
Published
Advisory Summary

CVE-2024-39318 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ibexa/admin ui libraries in the Packagist ecosystem. The issue involves ibexa admin ui vulnerable to dom-based cross-site scripting in file upload widget. Remediation is available by upgrading affected packages to version 4.6.9.

CVE-2024-39318 at a Glance

CVE Identifier CVE-2024-39318
GHSA Identifier GHSA-qm44-wjm2-pr59
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 Ibexa/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 CVE-2024-39318

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

ibexa/admin-ui fixed: 4.6.9
Upgrade ibexa/admin-ui to 4.6.9
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/admin-ui

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-39318, inspect your project dependencies for Ibexa/admin ui:

inspect dependencies for ibexa/admin-ui

Analyze the terminal output to locate any version of Ibexa/admin ui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.6.9), 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/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/ibexa/admin-ui/commit/8dc413fad1045fcfbe65dbcb0bea8516accc4c3e ### Workarounds None. ### References - https://developers.ibexa.co/security-advisories/ibexa-sa-2024-004-dom-based-xss-in-file-upload - https://github.com/ibexa/admin-ui/commit/8dc413fad1045fcfbe65dbcb0bea8516accc4c3e - https://github.com/ezsystems/ezplatform-admin-ui/security/advisories/GHSA-gc5h-6jx9-q2qh ### 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-39318 Affected Ibexa/admin ui Versions

1 component(s)
Fixed Versions:
4.6.9
Product / Package Ecosystem Affected Versions Fixed Version
ibexa/admin-ui
Packagist
≥ 4.6.0-beta1
< 4.6.9
4.6.9

References

Frequently Asked Questions

What is CVE-2024-39318?
CVE-2024-39318 is a security vulnerability in Ibexa/admin ui involving Ibexa 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 Ibexa/admin ui versions are affected?
Affected versions include releases prior to 4.6.9 across affected packages: ibexa/admin-ui.
What version fixes CVE-2024-39318?
Upgrading to 4.6.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ibexa/admin-ui affected?
Yes, ibexa/admin-ui is affected in releases prior to 4.6.9. Upgrade your dependency to 4.6.9 or later.
What is the CVSS score of CVE-2024-39318?
CVE-2024-39318 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 CVE-2024-39318?
CVE-2024-39318 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-39318?
Run the dependency tree command: 'inspect dependencies for ibexa/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-qm44-wjm2-pr59",
  "modified" : "2024-07-31T20:20:36Z",
  "published" : "2024-07-31T15:27:11Z",
  "aliases" : [ "CVE-2024-39318" ],
  "summary" : "Ibexa 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/ibexa/admin-ui/commit/8dc413fad1045fcfbe65dbcb0bea8516accc4c3e\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/ibexa/admin-ui/commit/8dc413fad1045fcfbe65dbcb0bea8516accc4c3e\n- https://github.com/ezsystems/ezplatform-admin-ui/security/advisories/GHSA-gc5h-6jx9-q2qh\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" : "ibexa/admin-ui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.6.0-beta1"
      }, {
        "fixed" : "4.6.9"
      } ]
    } ]
  } ],
  "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" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-39318"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ezsystems/ezplatform-admin-ui/commit/7a9f991b200fa5a03d49cd07f50577c8bc90a30b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ibexa/admin-ui/commit/8dc413fad1045fcfbe65dbcb0bea8516accc4c3e"
  }, {
    "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/ibexa/admin-ui"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-31T15:27:11Z",
    "nvd_published_at" : "2024-07-31T16:15:03Z"
  }
}