CVE-2019-11876: PrestaShop Cross-site Scripting vulnerability

prestashop/prestashop Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
6.1

CVE-2019-11876: PrestaShop Cross-site Scripting vulnerability. Affects prestashop/prestashop versions >= 1.7.5.2, < 1.7.6.0. Fixed in 1.7.6.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

PrestaShop is an open-source e-commerce platform that allows users to create and manage online stores. It provides a wide range of features for product management, order processing, and customer management. The vulnerability identified as CVE-2019-11876 affects PrestaShop version 1.7.5.2. This version includes an installation script component called install/index.php. The shop_country parameter in this script is susceptible to a reflected cross-site scripting (XSS) attack. Exploiting this vulnerability requires the user to follow the initial stages of the setup, including accepting terms and conditions, before executing a malicious link.

Vulnerability Detail

The vulnerability in PrestaShop 1.7.5.2 arises from a lack of proper input sanitization in the shop_country parameter of the installation script. This allows an attacker to inject malicious code that will be executed in the context of the victim's browser. The impact of this vulnerability can range from unauthorized access to sensitive information to the execution of arbitrary code on the victim's system. It is important to note that successful exploitation of this vulnerability requires user interaction during the setup process.

How To Fix

Minimum fixed version

1.7.6.0

This is the first release that contains the fix.

composer require prestashop/prestashop:1.7.6.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can manually sanitize the shop_country parameter in the installation script. This can be done by implementing input validation and sanitization techniques, such as HTML entity encoding or using a secure framework that automatically handles input sanitization. Here is an example of how the shop_country parameter can be sanitized using PHP's htmlspecialchars function:

$shop_country = htmlspecialchars($_GET['shop_country'], ENT_QUOTES, 'UTF-8');

Conclusion

In conclusion, the CVE-2019-11876 vulnerability in PrestaShop version 1.7.5.2 allows for a reflected XSS attack through the shop_country parameter in the installation script. Users can mitigate this vulnerability by upgrading to PrestaShop version 1.7.6.0 or later. It is important to regularly update PrestaShop to ensure the latest security patches are applied. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for prestashop/prestashop →

Share this vulnerability

FAQ

PrestaShop is an open-source e-commerce platform that allows users to create and manage online stores. It provides a wide range of features for product management, order processing, and customer management.

A reflected cross-site scripting (XSS) attack is a type of security vulnerability that allows an attacker to inject malicious scripts into web pages viewed by other users. The injected scripts are executed in the victim's browser, potentially leading to unauthorized access to sensitive information or the execution of arbitrary code.

The CVE-2019-11876 vulnerability affects PrestaShop version 1.7.5.2. It allows an attacker to perform a reflected XSS attack by exploiting the shop_country parameter in the installation script. Successful exploitation of this vulnerability requires user interaction during the setup process.

To fix the CVE-2019-11876 vulnerability, users should upgrade to PrestaShop version 1.7.6.0 or later. The updated version includes a fix for the XSS vulnerability in the installation script. Users can download the latest version from the official PrestaShop website and follow the upgrade instructions provided.

As a temporary workaround, users can manually sanitize the shop_country parameter in the installation script. This can be done by implementing input validation and sanitization techniques, such as HTML entity encoding or using a secure framework that automatically handles input sanitization.

Related vulnerabilities

Recent vulnerabilities recorded for prestashop/prestashop.

How To Fix

Minimum fixed version

1.7.6.0

This is the first release that contains the fix.

composer require prestashop/prestashop:1.7.6.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback