CVE-2025-29790: Contao allows cross-site scripting through SVG uploads

Published Mar 18, 2025
·
Updated

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.

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.

Other sources

Contao is an Open Source CMS. Users can upload SVG files with malicious code, which is then executed in the back end and/or front end. This vulnerability is fixed in Contao 4.13.54, 5.3.30, or 5.5.6.

— MITRE

Affected Software

7 affected componentsFixes available
Contao Contao<4.13.54, <5.3.30, <5.5.6
composer/contao/core-bundle>=5.4.0<5.5.6
5.5.6
composer/contao/core-bundle>=5.3.0<5.3.30
5.3.30
composer/contao/core-bundle>=4.0.0<4.13.54
4.13.54
Contao Contao>=4.0.0<4.13.53
Contao Contao>=5.0.0<5.3.30
Contao Contao>=5.4.0<5.5.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/contao/core-bundle to a version that resolves this vulnerability.

    Fixed in 5.5.6
  2. Upgrade

    Upgrade composer/contao/core-bundle to a version that resolves this vulnerability.

    Fixed in 5.3.30
  3. Upgrade

    Upgrade composer/contao/core-bundle to a version that resolves this vulnerability.

    Fixed in 4.13.54
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.13.54
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.3.30
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.5.6
  7. Configuration

    Remove `svg,svgz` from the allowed upload file types in the system settings.

    Contao system settings (allowed upload file types) allowed upload file types = remove svg,svgz
  8. Configuration

    In `config.yaml`, remove `svg,svgz` from `contao.editable_files`.

    Contao configuration contao.editable_files (config.yaml) = remove svg,svgz

Event History

Mar 18, 2025
CVE Published
via MITRE·06:36 PM
Data Sourced
via MITRE·06:36 PM
DescriptionWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyAffected Software
Advisory Published
via GitHub·09:07 PM
May 25, 58462
Event
via NVD·04:54 AM

Frequently Asked Questions

1

What is the severity of CVE-2025-29790?

CVE-2025-29790 is considered a critical vulnerability due to the potential execution of malicious code from uploaded SVG files.

2

How do I fix CVE-2025-29790?

To fix CVE-2025-29790, upgrade to Contao versions 4.13.54, 5.3.30, or 5.5.6.

3

What software is affected by CVE-2025-29790?

CVE-2025-29790 affects various versions of the Contao open-source CMS that allow SVG file uploads.

4

Can CVE-2025-29790 lead to data loss?

Yes, CVE-2025-29790 can potentially lead to data loss or compromise by allowing execution of harmful code.

5

Is there a workaround for CVE-2025-29790?

No official workaround for CVE-2025-29790 exists other than upgrading to the fixed versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203