CVE-2025-29790
JSON

4.8medium

Contao allows cross-site scripting through SVG uploads

Severity
4.8medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.22% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-vqqr-fgmh-f626

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.

Affected

Product or packageVersionsReported by
contao contao>= 4.0.0, < 4.13.54, >= 5.0.0, < 5.3.30, >= 5.4.0, < 5.5.6, from 4.0.0 before 4.13.53, from 5.0.0 before 5.3.30, from 5.4.0 before 5.5.6CVE List, NVD
contao/core-bundle (Packagist)from 4.0.0 before 4.13.54, from 5.3.0 before 5.3.30, from 5.4.0 before 5.5.6GitHub Advisory Database

All scores

GitHub_M4.8medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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.

NVD (es)

Contao es un CMS de código abierto. Los usuarios pueden subir archivos SVG con código malicioso, que se ejecuta en el backend o frontend. Esta vulnerabilidad está corregida en Contao 4.13.54, 5.3.30 o 5.5.6.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-29790 changed 2025-03-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-vqqr-fgmh-f626 changed 2025-04-17CC-BY-4.0
NVDCVE-2025-29790 changed 2026-06-17Public domain