NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2025-29790: Contao Vulnerable to Cross-Site Scripting (XSS) through SVG uploads

mediumCVSS 4.0 4.8GHSA-vqqr-fgmh-f626

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.editablefiles in the config.yaml.

Published Mar 18, 2025 · Updated Mar 19, 2025

Affected packages

contao/core-bundle

Ecosystem
Composer (PHP)
Affected
>= 4.0.0, < 4.13.54
Fixed in
4.13.54
Check
composer show contao/core-bundle

contao/core-bundle

Ecosystem
Composer (PHP)
Affected
>= 5.3.0, < 5.3.30
Fixed in
5.3.30
Check
composer show contao/core-bundle

contao/core-bundle

Ecosystem
Composer (PHP)
Affected
>= 5.4.0, < 5.5.6
Fixed in
5.5.6
Check
composer show contao/core-bundle

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries