CVE-2026-84186: Incorrect access control in PrestaShop
Vulnerability involving incorrect access control in the Tools::getRemoteAddr() function in PrestaShop, which allows the client’s IP address to be spoofed via the X-Forwarded-For header when the application is running behind a reverse proxy, load balancer or CDN. The application incorrectly processes the IP address string and uses the address controlled by the visitor rather than the one provided by the trusted infrastructure, allowing an unauthenticated remote attacker to cause the application to interpret their connection as originating from an arbitrary IP address. This condition allows IP-based controls, such as the maintenance mode allowlist, to be bypassed, as well as enabling the forgery of security and audit logs and the evasion of third-party mechanisms that rely on the IP address, such as geolocation checks, fraud detection or request throttling.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
PrestaShopto a version that resolves this vulnerability.Fixed in 9.1.5 - Upgrade
Upgrade
PrestaShopto a version that resolves this vulnerability.Fixed in 8.2.8
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
PrestaShop deployments running behind a reverse proxy, load balancer, or CDN are exposed when the application processes the X-Forwarded-For header incorrectly. Deployments that do not use this infrastructure are not identified as affected by the provided information.
What does an attacker need to exploit it?
An attacker can exploit the issue remotely without authentication by supplying a controlled X-Forwarded-For header. They can cause the application to treat the request as if it came from an arbitrary IP address.
What security controls can be bypassed or undermined?
IP-based controls, including a maintenance-mode allowlist, can be bypassed. IP-dependent geolocation, fraud detection, request throttling, security logs, and audit logs can also be evaded or forged.