/

CVE-2026-71531

Severity:

HIGH RISK

(8.1)

Authorization Bypass (CWE-863) in PrestaShop Webservice

CVE-2026-71531

Deferred

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-863

Impact:

Unauthorized cross-shop data access and modification

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

PrestaShop's Webservice API can fail to enforce a key's shop-level permissions when a request expands its shop context. A holder of a key restricted to one shop may be able to access, change, or delete data belonging to other shops by submitting requests with certain shop-scope parameters.

Affected context

The flaw is in PrestaShop's Webservice API authorization handling in classes/webservice/WebserviceRequest.php. It may affect installations where a Webservice key is limited to particular shops but requests can specify id_shop=all or an id_shop_group value that expands the effective shop context without checking that the key is associated with those shops.

Exploit preconditions

  • Attack surface: The PrestaShop Webservice API must be reachable.
  • Required access: The attacker must hold a valid Webservice key, such as one restricted to a single shop.
  • Trigger point: A request supplies id_shop=all or an id_shop_group value to broaden the shop context.
  • Why exploitation is possible: The expanded context is not adequately checked against the key's shop associations, allowing authorization evaluation to grant access based on the broader set.

Why this happens

The authorization check does not reliably bind the requested shop context to the shops assigned to the Webservice key. Expanding the context and evaluating rights across that set as a disjunction can allow access when the key lacks permission for the specific shop containing the requested data. This is an authorization bypass, mapped to CWE-863: Incorrect Authorization.

Potential impact

  • An attacker may read data belonging to shops they are not authorized to access.
  • An attacker could modify or delete data across other shops.
  • Customer records, including email addresses, secure keys, and password hashes, may be exposed.
  • Cross-shop access could affect the confidentiality and integrity of data across the installation.

General mitigation guidance

Defensive patterns focus on enforcing authorization against the exact resources requested:

  • Bind each request's effective shop scope to the Webservice key's explicit shop associations.
  • Deny requests that expand scope beyond the key's granted permissions.
  • Apply authorization checks to each target shop and resource, rather than relying on a broad context-level result.
  • Follow least-privilege practices when creating and distributing Webservice keys.
  • Limit exposure of the Webservice API and monitor use of keys and shop-scope parameters.

How teams detect issues like this

  • Review authorization code for request parameters that broaden shop or tenant scope without rechecking the caller's assigned permissions.
  • Use static analysis and code review to trace shop-context expansion through authorization checks, including disjunctive or "any match" permission logic.
  • Test that keys restricted to one shop cannot access resources in other shops when requests specify broader shop or group scopes.
  • Apply API policies that reject scope-expanding parameters unless the caller is explicitly authorized for the resulting scope.
  • Monitor logs for unusual use of id_shop=all or id_shop_group values by narrowly scoped keys.

Sources

SourceLink
codeant.aicodeant.ai/security-research/cve-2026-71531-prestashop-webservice-id-shop-authorization-bypass
github.comgithub.com/PrestaShop/PrestaShop/releases/tag/8.2.9
github.comgithub.com/PrestaShop/PrestaShop/releases/tag/9.2.1
github.comgithub.com/PrestaShop/PrestaShop/security/advisories/GHSA-3f36-4qv4-vfgh
vulncheck.comvulncheck.com/advisories/prestashop-webservice-api-authorization-bypass-via-id-shop-parameter

Frequently asked

questions

An attacker needs a valid Webservice key. A key restricted to one shop may still be abused if requests can expand the shop context without validating the key's associations.

Yes. The API must be reachable, and the attacker must be able to submit requests using a valid key.

Check every requested shop and resource against the key's explicit permissions, and reject any request that exceeds them.

Keep authorization decisions tied to the caller and the exact requested resource, use least-privilege credentials, and test that scope-expanding inputs cannot bypass permission checks.

Find out what's already
exploitable in your codebase.