CVE-2022-35933 PrestaShop module Product Comments vulnerable to cross-site scripting (XSS)

Medium 4.3 Published Updated

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.

PackageAffectedFixed in
prestashop/productcomments PackagistAll versions5.0.2
prestashop/productcomments PackagistAll versions5.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.

Sources

Also known as GHSA-prrh-qvhf-x788.

Is CVE-2022-35933 in your software?

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

Check your SBOMs for free