CVE-2022-0704:
Cross-site Scripting in Pimcore
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.062%
CWE
Published
3/17/2022
Updated
1/27/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
pimcore/pimcore | composer | <= 10.3.3 | 10.4.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing CSP nonce attributes in script tags, which allowed XSS payloads to execute. The commit adds nonce handling in HeadScript.php
's itemToString
method, indicating this was the vulnerable point. The Twig templates (index.html.twig
) were modified to include nonce attributes in all script tags, confirming that previously they were rendered without CSP protection. The HeadScript
component's failure to include nonces in generated script tags before the patch directly enabled XSS exploitation.