Skip to main content

CVE-2024-34716 — Vulnerability in prestashop/prestashop — CVE Details

CRITICAL

PrestaShop cross-site scripting via customer contact form in FO, through file upload

Published May 14, 2024Updated September 10, 2026Source: OSV

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.

Check my composer.lock

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
Update prestashop/prestashop to 8.1.6 or later
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).

PackageFixed 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-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

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

CVSS Score
9.6

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
4.27%
EPSS percentile: 91.9

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

GHSA-45vm-3j38-7p78

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock