# GHSA-jfxf-4frr-9j3q: XSS in various backend modules due to (un)escaping in JS notification module

> Authenticated users can inject malicious scripts via unescaped HTML in notification messages, potentially compromising other users' 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:** 25 May 2022

## What is GHSA-jfxf-4frr-9j3q?

GHSA-jfxf-4frr-9j3q is a cross-site scripting vulnerability in neos/neos, published on 25 May 2022. 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 notification module displaying flash messages unscapes HTML coming from the server, resulting in XSS vulnerabilities with various names and labels of entities (eg. workspace title or media title). This however means you must be a logged in user with respective rights in the first place to leverage the attack vector.

## Which versions are affected by GHSA-jfxf-4frr-9j3q?

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `neos/neos` | Packagist | From 3.3 | 5.3.10 |
| `neos/neos` | Packagist | From 3.3 | 5.3.10 |
| `neos/neos` | Packagist | From 7.0.0 | 7.0.9 |
| `neos/neos` | Packagist | From 7.0.0 | 7.0.9 |
| `neos/neos` | Packagist | From 7.1.0 | 7.1.7 |
| `neos/neos` | Packagist | From 7.1.0 | 7.1.7 |
| `neos/neos` | Packagist | From 7.2.0 | 7.2.6 |
| `neos/neos` | Packagist | From 7.2.0 | 7.2.6 |
| `neos/neos` | Packagist | From 7.3.0 | 7.3.4 |
| `neos/neos` | Packagist | From 7.3.0 | 7.3.4 |
| `neos/neos` | Packagist | From 8.0.0 | 8.0.2 |
| `neos/neos` | Packagist | From 8.0.0 | 8.0.2 |

## How do I fix GHSA-jfxf-4frr-9j3q?

Upgrade neos/neos to a fixed version for your release line: 5.3.10, 7.0.9, 7.1.7 or 7.2.6.

## Is GHSA-jfxf-4frr-9j3q being exploited?

There is no known exploitation of GHSA-jfxf-4frr-9j3q in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-jfxf-4frr-9j3q and fix it if it is affected.

What it is: GHSA-jfxf-4frr-9j3q is a cross-site scripting vulnerability in neos/neos, published on 25 May 2022. 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-jfxf-4frr-9j3q in the wild and no public exploit code.

Affected packages and fixed versions:
- neos/neos (Packagist): affected from 3.3; fixed in 5.3.10
- neos/neos (Packagist): affected from 3.3; fixed in 5.3.10
- neos/neos (Packagist): affected from 7.0.0; fixed in 7.0.9
- neos/neos (Packagist): affected from 7.0.0; fixed in 7.0.9
- neos/neos (Packagist): affected from 7.1.0; fixed in 7.1.7
- neos/neos (Packagist): affected from 7.1.0; fixed in 7.1.7
- neos/neos (Packagist): affected from 7.2.0; fixed in 7.2.6
- neos/neos (Packagist): affected from 7.2.0; fixed in 7.2.6
- neos/neos (Packagist): affected from 7.3.0; fixed in 7.3.4
- neos/neos (Packagist): affected from 7.3.0; fixed in 7.3.4
- neos/neos (Packagist): affected from 8.0.0; fixed in 8.0.2
- neos/neos (Packagist): affected from 8.0.0; fixed in 8.0.2

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-jfxf-4frr-9j3q/ (Markdown: https://insights.sbomify.com/GHSA-jfxf-4frr-9j3q/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-jfxf-4frr-9j3q

---
From sbomify Insights: https://insights.sbomify.com/GHSA-jfxf-4frr-9j3q/
Summaries are generated and may contain mistakes; the official description above is the record.
