CVE-2021-39170 Improper Encoding or Escaping of Output in Asset Metadata Component

High 8.0 Published Updated

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.

Weakness: CWE-79, CWE-116

Which versions are affected by CVE-2021-39170?

2 open source packages ship an affected version, including pimcore/pimcore. It affects 1 product.

PackageAffectedFixed in
pimcore/pimcore PackagistAll versions10.1.2
pimcore/pimcore PackagistAll versions10.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.

All Pimcore Pimcore vulnerabilities

Sources

Also known as GHSA-2v88-qq7x-xq5f.

Is CVE-2021-39170 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free