In short: Shopware 6.7.16.1 increases the security of your shop through stricter rules for uploading files and accessing user data. Additionally, the storefront (the public sales area of your shop) is better protected by a new security policy.

This is a maintenance update with important bug fixes and security adjustments that is relevant for all shop owners who want to ensure their system stability and security.

Summary

  • HTML files can no longer be uploaded to the public media area for security reasons.
  • A new security policy (CSP) in the storefront blocks potentially dangerous scripts and form submissions.
  • The API (interface for data transfer) now checks media paths and filenames more strictly for validity.
  • Users without administrator rights can only manage their own data and API keys.

What is new?

Prohibition of HTML files in public media

For security reasons, Shopware 6.7.16.1 no longer allows the upload of HTML files to the public media area. This means that new attempts to upload such files will fail. Existing HTML files remain in the system and continue to be available. This is configured via the system configuration (shopware.filesystem.allowed_extensions).

Security policy for storefront documents

A so-called Content Security Policy (CSP) has been introduced in the storefront, which is the area your customers see. This policy serves to block the execution of unauthorized scripts and unauthorized form submissions within documents. This increases the protection of your shop against attacks. Document templates in the storefront are particularly affected.

Strict validation of media paths and filenames

The API, through which data is transmitted to Shopware, now performs a stricter check of media paths and filenames. Filenames or paths that are invalid or contain special characters such as the forward slash ("/") will be rejected by Shopware 6.7.16.1. This ensures that the file structure remains consistent and errors in file assignment are avoided.

Restriction of editing rights for users

Permissions within the administration have been clarified. Users who do not have administrator rights can only edit or delete their own user data and their own API keys in Shopware 6.7.16.1. Access to the data of other users is now excluded for this group.

Frequently Asked Questions

Why can I no longer upload HTML files to the media?

Shopware 6.7.16.1 blocks the upload of HTML files to the public media area for security reasons to minimize potential attack vectors.

What happens to HTML files that were uploaded before the update?

Already uploaded HTML files remain in Shopware 6.7.16.1 and are not automatically deleted.

What impact does the new security policy (CSP) in the storefront have?

The policy blocks the execution of scripts and form submissions in storefront documents to increase the security of the sales area.

Who can still edit API keys in Shopware 6.7.16.1?

Administrators retain their full rights; users without administrator rights can only manage or delete their own API keys.

What should you do now?

  1. Use a test system: Install the update to Shopware 6.7.16.1 in a test environment first before going live.
  2. Check media: Review your public media and delete HTML files that are no longer needed.
  3. Test document templates: Check in the storefront whether your custom HTML document templates still function as desired due to the new security policy (CSP).
  4. Check plugins and themes: Ensure that your installed extensions are compatible with the stricter validations for filenames and paths in the API.

Sources