# GHSA-cfcv-q4qq-2ph4: CKEditor 4 vulnerabilities in versions <4.16.1

> Cross-site scripting vulnerabilities in CKEditor 4 allow attackers to execute arbitrary scripts in the context of other users.

- **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:** 23 Aug 2021

## What is GHSA-cfcv-q4qq-2ph4?

GHSA-cfcv-q4qq-2ph4 is a cross-site scripting vulnerability in pimcore/pimcore, published on 23 Aug 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

Details see: 

https://github.com/ckeditor/ckeditor4/security/advisories/GHSA-m94c-37g6-cjhc ( CVE-2021-37695 )
https://github.com/ckeditor/ckeditor4/security/advisories/GHSA-6226-h7ff-ch6c ( CVE-2021-32808 )
https://github.com/ckeditor/ckeditor4/security/advisories/GHSA-7889-rm5j-hpgg  ( CVE-2021-32809 )

Patch: 
https://github.com/pimcore/pimcore/pull/10032

## Which versions are affected by GHSA-cfcv-q4qq-2ph4?

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `pimcore/pimcore` | Packagist | All versions | 10.1.1 |
| `pimcore/pimcore` | Packagist | All versions | 10.1.1 |

## How do I fix GHSA-cfcv-q4qq-2ph4?

Upgrade pimcore/pimcore to 10.1.1 or later.

## Is GHSA-cfcv-q4qq-2ph4 being exploited?

There is no known exploitation of GHSA-cfcv-q4qq-2ph4 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-cfcv-q4qq-2ph4 and fix it if it is affected.

What it is: GHSA-cfcv-q4qq-2ph4 is a cross-site scripting vulnerability in pimcore/pimcore, published on 23 Aug 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-cfcv-q4qq-2ph4 in the wild and no public exploit code.

Affected packages and fixed versions:
- pimcore/pimcore (Packagist): affected all versions; fixed in 10.1.1
- pimcore/pimcore (Packagist): affected all versions; fixed in 10.1.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-cfcv-q4qq-2ph4/ (Markdown: https://insights.sbomify.com/GHSA-cfcv-q4qq-2ph4/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-cfcv-q4qq-2ph4

---
From sbomify Insights: https://insights.sbomify.com/GHSA-cfcv-q4qq-2ph4/
Summaries are generated and may contain mistakes; the official description above is the record.
