CVE-2025-29790 Contao allows cross-site scripting through SVG uploads
Attackers can execute malicious scripts in Contao CMS by uploading crafted SVG files, potentially compromising user accounts and backend integrity.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-29790?
CVE-2025-29790 is a medium-severity cross-site scripting vulnerability in contao, published on 18 Mar 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2025-29790?
6 open source packages ship an affected version, including contao/core-bundle. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
contao/core-bundle Packagist | From 4.0.0 | 4.13.54 |
contao/core-bundle Packagist | From 4.0.0 | 4.13.54 |
contao/core-bundle Packagist | From 5.3.0 | 5.3.30 |
contao/core-bundle Packagist | From 5.3.0 | 5.3.30 |
contao/core-bundle Packagist | From 5.4.0 | 5.5.6 |
contao/core-bundle Packagist | From 5.4.0 | 5.5.6 |
Products include Contao Contao.
How do I fix CVE-2025-29790?
Upgrade contao/core-bundle to a fixed version for your release line: 4.13.54, 5.3.30 or 5.5.6.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-29790 being exploited?
There is no known exploitation of CVE-2025-29790 in the wild and no public exploit code.
Other vulnerabilities in contao
- CVE-2022-26265 Remote Code Execution in Contao Managed Edition
- CVE-2019-11512 Contao SQL injection in the file manager
- CVE-2012-4383 Contao core SQL Injection Vulnerability
- CVE-2019-19745 Unrestricted file uploads in Contao
- CVE-2024-28235 Contao possible cookie sharing with external domains while checking protected pages for broken links
Sources
Also known as GHSA-vqqr-fgmh-f626.