CVE-2022-23059 Shopizer - Stored XSS in Manage Images
An attacker can inject malicious JavaScript via SVG uploads in the Manage Images tab, potentially leading to session hijacking or code execution.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-23059?
CVE-2022-23059 is a medium-severity cross-site scripting vulnerability in shopizer-ecommerce Shopizer, published on 29 Mar 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
A Stored Cross Site Scripting (XSS) vulnerability exists in Shopizer versions 2.0 through 2.17.0 via the “Manage Images” tab, which allows an attacker to upload a SVG file containing malicious JavaScript code.
Weakness: CWE-79
Which versions are affected by CVE-2022-23059?
2 open source packages ship an affected version, including com.shopizer:shopizer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.shopizer:shopizer Maven | From 2.0.2 | 3.0.0 |
com.shopizer:shopizer Maven | From 2.0.2 | 3.0.0 |
Products include Shopizer Shopizer.
How do I fix CVE-2022-23059?
Upgrade com.shopizer:shopizer to 3.0.0 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-2022-23059 being exploited?
There is no known exploitation of CVE-2022-23059 in the wild and no public exploit code.
Other vulnerabilities in shopizer-ecommerce Shopizer
Sources
Also known as GHSA-p2j7-6g9h-32xh.