CVE-2022-35933: PrestaShop Product Comments Cross-site Scripting vulnerability
4.3
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.30694%
CWE
Published
8/31/2022
Updated
1/31/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
prestashop/productcomments | composer | < 5.0.2 | 5.0.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows the vulnerability was fixed by adding HTML entity encoding to the username value in renderAuthorName
function. This indicates the function previously lacked proper output encoding for user-controlled input (username), making it susceptible to XSS. The CWE-79 classification and advisory descriptions confirm this was a classic stored XSS vulnerability in comment author name handling.