CVE-2025-29790: Contao/core bundle Cross-Site Scripting Vulnerability
MODERATECVE-2025-29790 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Contao/core bundle libraries in the Packagist ecosystem. The issue involves contao vulnerable to cross-site scripting (xss) through svg uploads. Remediation is available by upgrading affected packages to version 4.13.54, 5.3.30, 5.5.6.
CVE-2025-29790 at a Glance
How to Fix CVE-2025-29790
To remediate this vulnerability, upgrade all affected Contao/core bundle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade contao/core-bundle to 4.13.54
Upgrade contao/core-bundle to 5.3.30
Upgrade contao/core-bundle to 5.5.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for contao/core-bundle
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-29790, inspect your project dependencies for Contao/core bundle:
inspect dependencies for contao/core-bundle
Analyze the terminal output to locate any version of Contao/core bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.13.54), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Contao/core bundle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-29790 Affected Contao/core bundle Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
contao/core-bundle
|
Packagist |
≥ 4.0.0
< 4.13.54
|
4.13.54
|
|
contao/core-bundle
|
Packagist |
≥ 5.3.0
< 5.3.30
|
5.3.30
|
|
contao/core-bundle
|
Packagist |
≥ 5.4.0
< 5.5.6
|
5.5.6
|
References
Frequently Asked Questions
What is CVE-2025-29790?
Which Contao/core bundle versions are affected?
What version fixes CVE-2025-29790?
Is contao/core-bundle affected?
What CWE is associated with CVE-2025-29790?
How can I check Packagist dependencies for CVE-2025-29790?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vqqr-fgmh-f626",
"modified" : "2025-04-17T12:44:08Z",
"published" : "2025-03-18T21:07:17Z",
"aliases" : [ "CVE-2025-29790" ],
"summary" : "Contao Vulnerable to Cross-Site Scripting (XSS) through SVG uploads",
"details" : "### Impact\n\nUsers can upload SVG files with malicious code, which is then executed in the back end and/or front end.\n\n### Patches\n\nUpdate to Contao 4.13.54, 5.3.30 or 5.5.6.\n\n### Workarounds\n\nRemove `svg,svgz` from the allowed upload file types in the system settings and from `contao.editable_files` in the `config.yaml`.\n\n### References\n\nhttps://contao.org/en/security-advisories/cross-site-scripting-through-svg-uploads\n\n### For more information\n\nIf you have any questions or comments about this advisory, open an issue in [contao/contao](https://github.com/contao/contao/issues/new/choose).",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.13.54"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.3.0"
}, {
"fixed" : "5.3.30"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.4.0"
}, {
"fixed" : "5.5.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/contao/contao/security/advisories/GHSA-vqqr-fgmh-f626"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-29790"
}, {
"type" : "WEB",
"url" : "https://contao.org/en/security-advisories/cross-site-scripting-through-svg-uploads"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/contao/contao"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-18T21:07:17Z",
"nvd_published_at" : "2025-03-18T19:15:50Z"
}
}