Fix SVG Upload Not Working After Shopware 6.7.10.0 Update
After updating to Shopware 6.7.10.0, some users may experience an issue where SVG file uploads or generation stop working in the media library or during theme/content uploads.
This issue is related to updated SVG security handling introduced in newer Shopware versions.
Affected Environment
- Shopware 6.7.10.0 and above
- Media Manager / File Uploads
- SVG file uploads in admin or storefront assets
Issue Description
After the latest Shopware update:
- SVG files fail to upload
- SVG rendering or generation is blocked
- Upload process may silently fail or be rejected
- No clear error may be shown in the admin panel
This happens due to stricter SVG sanitization rules introduced for security improvements.
Root Cause
Shopware 6.7.10.0 enforces tighter restrictions on SVG files to prevent malicious scripts or unsafe elements inside SVGs.
By default, only a limited set of:
- SVG elements
- Attributes
- Reference attributes
are allowed.
Any custom or non-whitelisted SVG content gets blocked during upload or processing.
Solution
If you need to allow additional SVG elements or attributes, you can extend the allowlist in your Shopware configuration.
Step 1: Update Configuration
Edit the following file:
| 1 | config/packages/shopware.yaml |
Step 2: Add Allowed SVG Rules
Add or extend the configuration as shown below:
| 1 2 3 4 5 6 7 8 9 10 11 | shopware: media: svg: allowed_elements: - animate allowed_attributes: - custom-attribute allowed_reference_attributes: - href |
Step 3: Clear Cache
After updating the configuration, run:
| 1 2 | bin/console cache:clear bin/console cache:warmup |
Then re-test SVG upload.
Important Notes
- Only allow trusted SVG elements and attributes
- Avoid enabling unsafe or script-related SVG features
- This change is intended to improve system security
Need Help
If SVG uploads still fail after applying the configuration, it may be related to:
- Theme/plugin overrides
- Custom media processing logic
- Server-level file restrictions
You may need a deeper Shopware configuration review. If this solution doesn’t resolve your issue, our Shopware specialists can help diagnose and fix more complex configuration or development problems.
Recent help desk articles
Greetings! I'm Aneesh Sreedharan, CEO of 2Hats Logic Solutions. At 2Hats Logic Solutions, we are dedicated to providing technical expertise and resolving your concerns in the world of technology. Our blog page serves as a resource where we share insights and experiences, offering valuable perspectives on your queries.

