GUYCOLLE GmbH

← Blog

· Shopware 6 · 3 min read

Shopware 6.7.16.1 fixes critical SQL injection without login

Shopware published two security releases on 18 November 2026. They close an unauthenticated SQL injection and a route by which installed apps could pick up admin tokens.

Shopware 6.7.16.1 schliesst kritische SQL-Injection ohne Login Shopware

What 6.7.16.1 and 6.6.10.32 fix

The first critical flaw (GHSA-4frp-8844-m589) sits in the validation of aggregation identifiers that the client can control. If the shop runs on PHP 8.2 or 8.3 with PDO emulated prepares enabled, an attacker can send SQL through the shop's database connection without logging in. All that is required is a valid sales channel access key, and that key is present in every storefront and every headless frontend. Every release before 6.6.10.32 is affected, as is 6.7 before 6.7.16.1. Shopware names PHP 8.4 or newer as a workaround, provided the installed version runs on it.

The second critical flaw (GHSA-28fx-g7qc-7c24) is in the Administration. Responses from the ExtensionAPI were filtered insufficiently, so auth tokens belonging to the signed-in user could reach an installed and active app. The app has to execute admin content in the browser and hold the matching entity permission. With an administrator account, that amounts to full administrative access. On top of that come two advisories rated high, covering insufficient authorisation for user accounts and integrations as well as an XXE flaw in extension processing. The exact number of fixes and the CVSS scores are still open and are best read directly on the advisory page.

The patch changes API behaviour

This release carries more than security fixes. It moves behaviour in the middle of a patch line, and that affects existing integrations.

Routes that act on the signed-in admin user now require a directly authenticated user. Integrations that have so far worked on behalf of a user through the sw-app-user-id header receive 403 with FRAMEWORK__API_EXPECTED_USER. The replacement is GET or PATCH on /api/user/{id} with the user:read and user:update privileges. Further changes affect scripts and deployments:

  • Non-administrators can only change or delete their own user and their own access keys through the Admin API.

  • The user behind an access key is fixed at creation time and stays bound to that key for every role, including administrators.

  • Presigned media upload endpoints now require ACL privileges.

  • HTML files in the public media area are blocked, configurable via shopware.filesystem.allowed_extensions.

  • A new CSP in the storefront blocks critical scripts and form submissions to external targets.

  • Browser-based MCP clients from other origins need an entry in shopware.mcp.allowed_origins.

What this means for your shop

Start by recording the Shopware version, the PHP version and the value of PDO::ATTR_EMULATE_PREPARES for each shop. Installations on PHP 8.2 or 8.3 with emulated prepared statements belong at the front of the queue.

If the core update cannot happen the same day, install the Security Plugin. The current versions are 4.0.18 for 6.7 and 3.0.22 for 6.6, both dated 20 November 2026, with a fix for DAL definition validation and a Twig compatibility fix. For 6.5, the current version is 2.0.27. Composer installations pull the package from store.shopware.com/swagplatformsecurity, store installations through Extensions in the Administration.

Test the core update to 6.7.16.1 or 6.6.10.32 on staging first. Check every integration that uses sw-app-user-id, any script that manages other users or access keys, media uploads and storefront extensions with inline scripts.

Go through the app inventory of each client shop. Disable apps with Administration content that nobody needs any more or whose origin is unclear. If you suspect a token has leaked, revoke sessions and review admin activity over the past few weeks.

Shops on 6.5 get no core patch. Those installations depend on the plugin for the long run. Plan the migration with a budget and a date before 6.8 arrives. A rushed move over the next few days brings more risk than benefit.

More posts

Get in touch.

Tell us what's stuck or what you want to build. You'll reach someone who knows the answer, not a switchboard.