CVE-2024-34716 — Vulnerability in prestashop/prestashop — CVE Details
PrestaShop cross-site scripting via customer contact form in FO, through file upload
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (4.27%). Schedule for your next planned update.
Does your project use an affected prestashop/prestashop version?
Paste your composer.lock to check it for CVE-2024-34716 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
Only PrestaShops with customer-thread feature flag enabled are impacted, starting from PrestaShop 8.1.0.
The impact is substantial, when the customer thread feature flag is enabled, through the front-office contact form, a hacker can upload a malicious file containing an XSS that will be executed when an admin opens the attached file in back office.
Consequence: the script injected can access the session and the security token, which allows it to perform any authenticated action in the scope of the administrator's right.
Patches
This vulnerability is patched in 8.1.6.
Workarounds
As long as you have not upgraded to 8.1.6, a simple workaround is to disable the customer-thread feature-flag.
Thank you to Ayoub AIT ELMOKHTAR, who discovered this vulnerability and share it with the PrestaShop team.
Advisory Timeline
- First published May 14, 2024 (926 days ago).
- Last revised September 10, 2026 — 848 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "prestashop/prestashop:^8.1.6"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| prestashop/prestashop Packagist · Affected: 8.1.0, 8.1.1, 8.1.2, 8.1.3 (+2 more) | 8.1.6 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-45vm-3j38-7p78WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-34716ADVISORY
- https://github.com/PrestaShop/PrestaShop/commit/a248898655e56cbcc6c308a5f1c8752231624baeWEB
- https://github.com/PrestaShop/PrestaShopPACKAGE
- https://github.com/PrestaShop/PrestaShop/releases/tag/8.1.6WEB
Frequently Asked Questions
- What is CVE-2024-34716?
- PrestaShop cross-site scripting via customer contact form in FO, through file upload. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.6/10).
- How do I check if my project is affected by CVE-2024-34716?
- CVE-2024-34716 affects prestashop/prestashop. It has a 4.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-34716 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 10% of EPSS-scored vulnerabilities — 91.9% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2023-39526CRITICAL
PrestaShop SQL manager vulnerability
- CVE-2022-31181CRITICAL
PrestaShop eval injection possible if shop vulnerable to SQL injection
- CVE-2023-30839CRITICAL
SQL filter bypass leading to arbitrary write requests using "SQL Manager"
- CVE-2026-63412CRITICAL
Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2026-44212CRITICAL
PrestaShop has a stored XSS executable in customer service view
- CVE-2026-63413CRITICAL
Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)