Skip to content
XSS Disclosed report Beginner CVE-2021-39170

Improper Encoding or Escaping of Output in Asset Metadata Component

An authenticated user could add XSS code as a value of custom metadata on assets, allowing script execution in the context of other users who view the metadata. The issue was fixed in version 10.1.2.

pimcore/pimcore

Originally disclosed on huntr

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.

From the GitHub Advisory Database (GHSA-2v88-qq7x-xq5f, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

What the attacker needed

Authenticated user account; victim views asset metadata

The fix

The issue was fixed in Pimcore version 10.1.2, and a manual patch is available as a workaround.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Cross-site scripting (XSS) is when a website shows user-supplied content without properly escaping it, so a malicious script runs in another user's browser. Here, a logged-in user could put a script into asset metadata, and anyone who viewed that metadata might run the script unknowingly.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from pimcore/pimcore

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.