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

Medium 4.8 Published Updated

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.

PackageAffectedFixed in
contao/core-bundle PackagistFrom 4.0.04.13.54
contao/core-bundle PackagistFrom 4.0.04.13.54
contao/core-bundle PackagistFrom 5.3.05.3.30
contao/core-bundle PackagistFrom 5.3.05.3.30
contao/core-bundle PackagistFrom 5.4.05.5.6
contao/core-bundle PackagistFrom 5.4.05.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.

Sources

Also known as GHSA-vqqr-fgmh-f626.

Is CVE-2025-29790 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free