CVE-2022-0911: Cross-site Scripting in Pimcore
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.01557%
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 exploitation. The commit adds nonce handling through ContentSecurityPolicyHandler
and modifies HeadScript::itemToString
to include these nonces. In vulnerable versions (<10.4.0), this method lacked nonce injection, making any script tags generated through this helper (including those handling user-influenced content) vulnerable to XSS if output wasn't properly sanitized elsewhere. The Twig template changes adding {{ pimcore_csp.getNonceHtmlAttribute() }}
confirm the injection point for hardening.