# GHSA-4q66-g4mm-8rg5: Silverstripe has Cross-site Scripting (XSS) vulnerabilities inherited from TinyMCE

> Attackers can execute arbitrary scripts in Silverstripe CMS 4 admin interfaces via vulnerable TinyMCE components, potentially compromising user accounts.

- **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:** 31 Jul 2023

## What is GHSA-4q66-g4mm-8rg5?

GHSA-4q66-g4mm-8rg5 is a cross-site scripting vulnerability in silverstripe/admin, published on 31 Jul 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

TinyMCE 4.x is vulnerable to several XSS vectors, which had been patched in later versions. Two of these have been identified as affecting `silverstripe/admin`.

Only Silverstripe CMS 4 is affected by this issue. It's not possible to upgrade Silverstripe CMS 4 to use a more recent release of TinyMCE without introducing breaking changes. Instead, the security patches that shipped in later releases of TinyMCE have been backported to the TinyMCE version bundled in `silverstripe/admin`.

Silverstripe CMS 5 is not affected by those vulnerabilities because it uses TinyMCE 6.

You can find more information about the underlying vulnerabilities in those GitHub security advisories:

- [GHSA-5h9g-x5rv-25wg Cross-site scripting vulnerability in TinyMCE](https://github.com/advisories/GHSA-5h9g-x5rv-25wg)
- [GHSA-w7jx-j77m-wp65 Cross-site scripting vulnerability in TinyMCE](https://github.com/advisories/GHSA-w7jx-j77m-wp65)

## Which versions are affected by GHSA-4q66-g4mm-8rg5?

2 open source packages ship an affected version, including silverstripe/admin.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `silverstripe/admin` | Packagist | All versions | 1.13.6 |
| `silverstripe/admin` | Packagist | All versions | 1.13.6 |

## How do I fix GHSA-4q66-g4mm-8rg5?

Upgrade silverstripe/admin to 1.13.6 or later.

## Is GHSA-4q66-g4mm-8rg5 being exploited?

There is no known exploitation of GHSA-4q66-g4mm-8rg5 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-4q66-g4mm-8rg5 and fix it if it is affected.

What it is: GHSA-4q66-g4mm-8rg5 is a cross-site scripting vulnerability in silverstripe/admin, published on 31 Jul 2023. 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-4q66-g4mm-8rg5 in the wild and no public exploit code.

Affected packages and fixed versions:
- silverstripe/admin (Packagist): affected all versions; fixed in 1.13.6
- silverstripe/admin (Packagist): affected all versions; fixed in 1.13.6

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-4q66-g4mm-8rg5/ (Markdown: https://insights.sbomify.com/GHSA-4q66-g4mm-8rg5/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-4q66-g4mm-8rg5

---
From sbomify Insights: https://insights.sbomify.com/GHSA-4q66-g4mm-8rg5/
Summaries are generated and may contain mistakes; the official description above is the record.
