CVE-2022-23059 Shopizer - Stored XSS in Manage Images

Medium 4.8 Published Updated

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.

PackageAffectedFixed in
com.shopizer:shopizer MavenFrom 2.0.23.0.0
com.shopizer:shopizer MavenFrom 2.0.23.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.

Sources

Also known as GHSA-p2j7-6g9h-32xh.

Is CVE-2022-23059 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free