# GHSA-q73v-79x3-jv2w: eZ Platform Admin UI Cross-site Scripting vulnerability

> Attackers can inject malicious scripts into the eZ Platform Admin UI, potentially compromising user sessions and data.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 15 May 2024

## What is GHSA-q73v-79x3-jv2w?

GHSA-q73v-79x3-jv2w is a cross-site scripting vulnerability in ezsystems/ezplatform-admin-ui, published on 15 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

This security advisory fixes a severe vulnerability in the eZ Platform Admin UI, and we recommend that you install it as soon as possible. Parts of the Admin UI are vulnerable to XSS injection. All 2.x sites are at risk, and particularly those that allow user generated content. The update adds the necessary escaping of injected code. This resolves the issue both for code that has already been injected, and any future such code.

To install, use Composer to update "ezsystems/ezplatform-admin-ui" and "ezsystems/ezplatform-page-builder" to one of the "Resolving versions" mentioned above. (ezplatform-page-builder exists only in eZ Platform Enterprise Edition.)

## Which versions are affected by GHSA-q73v-79x3-jv2w?

4 open source packages ship an affected version, including ezsystems/ezplatform-admin-ui.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ezsystems/ezplatform-admin-ui` | Packagist | From 1.3.0 | 1.3.5 |
| `ezsystems/ezplatform-admin-ui` | Packagist | From 1.3.0 | 1.3.5 |
| `ezsystems/ezplatform-admin-ui` | Packagist | From 1.4.0 | 1.4.4 |
| `ezsystems/ezplatform-admin-ui` | Packagist | From 1.4.0 | 1.4.4 |

## How do I fix GHSA-q73v-79x3-jv2w?

Upgrade ezsystems/ezplatform-admin-ui to a fixed version for your release line: 1.3.5 or 1.4.4.

## Is GHSA-q73v-79x3-jv2w being exploited?

There is no known exploitation of GHSA-q73v-79x3-jv2w in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-q73v-79x3-jv2w and fix it if it is affected.

What it is: GHSA-q73v-79x3-jv2w is a cross-site scripting vulnerability in ezsystems/ezplatform-admin-ui, published on 15 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of GHSA-q73v-79x3-jv2w in the wild and no public exploit code.

Affected packages and fixed versions:
- ezsystems/ezplatform-admin-ui (Packagist): affected from 1.3.0; fixed in 1.3.5
- ezsystems/ezplatform-admin-ui (Packagist): affected from 1.3.0; fixed in 1.3.5
- ezsystems/ezplatform-admin-ui (Packagist): affected from 1.4.0; fixed in 1.4.4
- ezsystems/ezplatform-admin-ui (Packagist): affected from 1.4.0; fixed in 1.4.4

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-q73v-79x3-jv2w/ (Markdown: https://insights.sbomify.com/GHSA-q73v-79x3-jv2w/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-q73v-79x3-jv2w

---
From sbomify Insights: https://insights.sbomify.com/GHSA-q73v-79x3-jv2w/
Summaries are generated and may contain mistakes; the official description above is the record.
