GHSA-vqqr-fgmh-f626
Contao Vulnerable to Cross-Site Scripting (XSS) through SVG uploads
Quick fix
GHSA-vqqr-fgmh-f626 — contao/core-bundle: upgrade to the fixed version with the command below.
composer require contao/core-bundle:^4.13.54Details
### Impact
Users can upload SVG files with malicious code, which is then executed in the back end and/or front end.
### Patches
Update to Contao 4.13.54, 5.3.30 or 5.5.6.
### Workarounds
Remove `svg,svgz` from the allowed upload file types in the system settings and from `contao.editable_files` in the `config.yaml`.
### References
https://contao.org/en/security-advisories/cross-site-scripting-through-svg-uploads
### For more information
If you have any questions or comments about this advisory, open an issue in [contao/contao](https://github.com/contao/contao/issues/new/choose).
Are you affected?
Enter the version of the package you're using.
Affected packages
4.0.0Fixed in: 4.13.54composer require contao/core-bundle:^4.13.545.3.0Fixed in: 5.3.30composer require contao/core-bundle:^5.3.305.4.0Fixed in: 5.5.6composer require contao/core-bundle:^5.5.6References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/contao/core-bundle"]}'