CVE-2021-39170 Improper Encoding or Escaping of Output in Asset Metadata Component
Authenticated users can inject XSS payloads into asset metadata, potentially executing malicious scripts in other users' browsers.
- 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
What is CVE-2021-39170?
CVE-2021-39170 is a high-severity cross-site scripting vulnerability in Pimcore Pimcore, published on 1 Sep 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
Pimcore is an open source data & experience management platform. Prior to version 10.1.2, an authenticated user could add XSS code as a value of custom metadata on assets. There is a patch for this issue in Pimcore version 10.1.2. As a workaround, users may apply the patch manually.
Which versions are affected by CVE-2021-39170?
2 open source packages ship an affected version, including pimcore/pimcore. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pimcore/pimcore Packagist | All versions | 10.1.2 |
pimcore/pimcore Packagist | All versions | 10.1.2 |
Products include Pimcore Pimcore.
How do I fix CVE-2021-39170?
Upgrade pimcore/pimcore to 10.1.2 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-39170 being exploited?
There is no known exploitation of CVE-2021-39170 in the wild and no public exploit code.
Other vulnerabilities in Pimcore Pimcore
- CVE-2022-39365 RCE vulnerability in Pimcore/Mail & Dynamic Text Layout
- CVE-2019-18981 Pimcore Access Control Issues
- CVE-2019-18985 Pimcore 2FA Vulnerable to Brute Forcing
- CVE-2026-23492 Pimcore has a Blind SQL Injection in Admin Search Find API due to an incomplete fix for CVE-2023-30848
- CVE-2023-47637 SQL Injection in Admin Grid Filter API in Pimcore
Sources
Also known as GHSA-2v88-qq7x-xq5f.