CVE-2022-24746 HTML injection possibility in voucher code form

Medium 6.1 Published Updated

Attackers can inject malicious HTML or scripts via the voucher code form in Shopware, potentially compromising user sessions or executing code.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-24746?

CVE-2022-24746 is a medium-severity cross-site scripting vulnerability in Shopware Shopware, published on 9 Mar 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Shopware is an open commerce platform based on the Symfony php Framework and the Vue javascript framework. In affected versions it is possible to inject code via the voucher code form. This issue has been patched in version 6.4.8.1. There are no known workarounds for this issue.

Weakness: CWE-79

Which versions are affected by CVE-2022-24746?

6 open source packages ship an affected version, including shopware/core, shopware/platform and shopware/storefront. It affects 1 product.

PackageAffectedFixed in
shopware/core PackagistAll versions6.4.8.1
shopware/core PackagistAll versions6.4.8.1
shopware/platform PackagistAll versions6.4.8.1
shopware/platform PackagistAll versions6.4.8.1
shopware/storefront PackagistAll versions6.4.8.1
shopware/storefront PackagistAll versions6.4.8.1

Products include Shopware Shopware.

How do I fix CVE-2022-24746?

Upgrade shopware/core to 6.4.8.1 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-24746 being exploited?

There is no known exploitation of CVE-2022-24746 in the wild and no public exploit code.

All Shopware Shopware vulnerabilities

Sources

Also known as GHSA-952p-fqcp-g8pc.

Is CVE-2022-24746 in your software?

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

Check your SBOMs for free