{"answers":{"affected":"2 open source packages ship an affected version, including ezsystems/ezplatform-admin-ui.","exploited":"There is no known exploitation of GHSA-gc5h-6jx9-q2qh in the wild and no public exploit code.","fix":"Upgrade ezsystems/ezplatform-admin-ui to 3.3.39 or later.","what":"GHSA-gc5h-6jx9-q2qh is a cross-site scripting vulnerability in ezsystems/ezplatform-admin-ui, published on 31 Jul 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-gc5h-6jx9-q2qh and fix it if it is affected.\n\nWhat it is: GHSA-gc5h-6jx9-q2qh is a cross-site scripting vulnerability in ezsystems/ezplatform-admin-ui, published on 31 Jul 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-gc5h-6jx9-q2qh in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ezsystems/ezplatform-admin-ui (Packagist): affected from 3.3.0; fixed in 3.3.39\n- ezsystems/ezplatform-admin-ui (Packagist): affected from 3.3.0; fixed in 3.3.39\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-gc5h-6jx9-q2qh/ (Markdown: https://insights.sbomify.com/GHSA-gc5h-6jx9-q2qh/index.md)","id":"GHSA-gc5h-6jx9-q2qh","markdown":"https://insights.sbomify.com/GHSA-gc5h-6jx9-q2qh/index.md","name":"GHSA-gc5h-6jx9-q2qh","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"eZ Platform Admin UI","requires_auth":"low_privilege","summary":"Authenticated users can execute arbitrary scripts via DOM-based XSS in the file upload widget by tricking editors into uploading maliciously named files.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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/","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"eZ Platform Admin UI vulnerable to DOM-based Cross-site Scripting in file upload widget","id":"GHSA-gc5h-6jx9-q2qh","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["3.3.39"],"introduced":["3.3.0"],"last_affected":[],"package":"ezsystems/ezplatform-admin-ui","purl":null,"source":"GHSA-gc5h-6jx9-q2qh"},{"ecosystem":"Packagist","fixed":["3.3.39"],"introduced":["3.3.0"],"last_affected":[],"package":"ezsystems/ezplatform-admin-ui","purl":"pkg:composer/ezsystems/ezplatform-admin-ui","source":"GHSA-gc5h-6jx9-q2qh"}],"products":null,"published":"2024-07-31","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Authenticated users can execute arbitrary scripts via DOM-based XSS in the file upload widget by tricking editors into uploading maliciously named files.","url":"https://insights.sbomify.com/GHSA-gc5h-6jx9-q2qh/"}