# GHSA-4542-p56h-8xww: Cross-Site Scripting (XSS) vulnerabilities in Neos

> Attackers can exploit XSS in Neos to steal credentials, redirect users, or potentially upload backdoors to compromise the server.

- **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:** 5 Jun 2024

## What is GHSA-4542-p56h-8xww?

GHSA-4542-p56h-8xww is a cross-site scripting vulnerability in typo3/neos, published on 5 Jun 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

It has been discovered that Neos is vulnerable to several XSS attacks. Through these vulnerabilities, an attacker could tamper with page rendering, redirect victims to a fake login page, or capture user credentials (such as cookies). With the potential backdoor upload an attacker could gain access to the server itself, to an extent mainly limited by the server setup.

## Which versions are affected by GHSA-4542-p56h-8xww?

4 open source packages ship an affected version, including typo3/neos.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `typo3/neos` | Packagist | From 1.2.0 | 1.2.13 |
| `typo3/neos` | Packagist | From 1.2.0 | 1.2.13 |
| `typo3/neos` | Packagist | From 2.0.0 | 2.0.4 |
| `typo3/neos` | Packagist | From 2.0.0 | 2.0.4 |

## How do I fix GHSA-4542-p56h-8xww?

Upgrade typo3/neos to a fixed version for your release line: 1.2.13 or 2.0.4.

## Is GHSA-4542-p56h-8xww being exploited?

There is no known exploitation of GHSA-4542-p56h-8xww in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-4542-p56h-8xww and fix it if it is affected.

What it is: GHSA-4542-p56h-8xww is a cross-site scripting vulnerability in typo3/neos, published on 5 Jun 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-4542-p56h-8xww in the wild and no public exploit code.

Affected packages and fixed versions:
- typo3/neos (Packagist): affected from 1.2.0; fixed in 1.2.13
- typo3/neos (Packagist): affected from 1.2.0; fixed in 1.2.13
- typo3/neos (Packagist): affected from 2.0.0; fixed in 2.0.4
- typo3/neos (Packagist): affected from 2.0.0; fixed in 2.0.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-4542-p56h-8xww/ (Markdown: https://insights.sbomify.com/GHSA-4542-p56h-8xww/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-4542-p56h-8xww

---
From sbomify Insights: https://insights.sbomify.com/GHSA-4542-p56h-8xww/
Summaries are generated and may contain mistakes; the official description above is the record.
