CVE-2022-35933 PrestaShop module Product Comments vulnerable to cross-site scripting (XSS)
An attacker can steal administrator cookies via cross-site scripting in the Product Comments module, potentially leading to account takeover.
- 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-35933?
CVE-2022-35933 is a medium-severity cross-site scripting vulnerability in PrestaShop productcomments, published on 2 Sep 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
This package is a PrestaShop module that allows users to post reviews and rate products. There is a vulnerability where the attacker could steal an administrator's cookie. The issue is fixed in version 5.0.2.
Weakness: CWE-79
Which versions are affected by CVE-2022-35933?
2 open source packages ship an affected version, including prestashop/productcomments. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
prestashop/productcomments Packagist | All versions | 5.0.2 |
prestashop/productcomments Packagist | All versions | 5.0.2 |
Products include Prestashop Productcomments.
How do I fix CVE-2022-35933?
Upgrade prestashop/productcomments to 5.0.2 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-35933 being exploited?
There is no known exploitation of CVE-2022-35933 in the wild and no public exploit code.
Other vulnerabilities in PrestaShop productcomments
Sources
Also known as GHSA-prrh-qvhf-x788.