# GHSA-9jp8-cwwx-p64q: XSS in richtext custom tag attributes in ezsystems/ezplatform-richtext

> Attackers with editor access can inject scripts via custom tag attributes, potentially compromising other editors' sessions.

- **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:** 1 Dec 2021

## What is GHSA-9jp8-cwwx-p64q?

GHSA-9jp8-cwwx-p64q is a cross-site scripting vulnerability in ezsystems/ezplatform-admin-ui, published on 1 Dec 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

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.

## Which versions are affected by GHSA-9jp8-cwwx-p64q?

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ezsystems/ezplatform-admin-ui` | Packagist | From 1.5.0 | 1.5.25.1 |
| `ezsystems/ezplatform-admin-ui` | Packagist | From 1.5.0 | 1.5.25.1 |

## How do I fix GHSA-9jp8-cwwx-p64q?

Upgrade ezsystems/ezplatform-admin-ui to 1.5.25.1 or later.

## Is GHSA-9jp8-cwwx-p64q being exploited?

There is no known exploitation of GHSA-9jp8-cwwx-p64q in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-9jp8-cwwx-p64q and fix it if it is affected.

What it is: GHSA-9jp8-cwwx-p64q is a cross-site scripting vulnerability in ezsystems/ezplatform-admin-ui, published on 1 Dec 2021. 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-9jp8-cwwx-p64q in the wild and no public exploit code.

Affected packages and fixed versions:
- ezsystems/ezplatform-admin-ui (Packagist): affected from 1.5.0; fixed in 1.5.25.1
- ezsystems/ezplatform-admin-ui (Packagist): affected from 1.5.0; fixed in 1.5.25.1

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-9jp8-cwwx-p64q/ (Markdown: https://insights.sbomify.com/GHSA-9jp8-cwwx-p64q/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-9jp8-cwwx-p64q

---
From sbomify Insights: https://insights.sbomify.com/GHSA-9jp8-cwwx-p64q/
Summaries are generated and may contain mistakes; the official description above is the record.
