CVE-2025-65961: Contao/core bundle Cross-Site Scripting Vulnerability
LOWCVE-2025-65961 is a LOW (CVSS 3.3) cross-site scripting vulnerability (CWE-87: Improper Neutralization of Alternate XSS Syntax) affecting Contao/core bundle libraries in the Packagist ecosystem. The issue involves contao is vulnerable to cross-site scripting in templates. Remediation is available by upgrading affected packages to version 4.13.57, 5.3.42, 5.6.5.
CVE-2025-65961 at a Glance
Security Impact
CVSS: 3.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2025-65961
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.57
Upgrade contao/core-bundle to 5.3.42
Upgrade contao/core-bundle to 5.6.5
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-65961, 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.57), 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-87: Improper Neutralization of Alternate XSS Syntax, where the product does not neutralize or incorrectly neutralizes user-controlled input for alternate script syntax. 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-65961 Affected Contao/core bundle Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
contao/core-bundle
|
Packagist |
≥ 4.0.0
< 4.13.57
|
4.13.57
|
|
contao/core-bundle
|
Packagist |
≥ 5.0.0-RC1
< 5.3.42
|
5.3.42
|
|
contao/core-bundle
|
Packagist |
≥ 5.4.0-RC1
< 5.6.5
|
5.6.5
|
References
Frequently Asked Questions
What is CVE-2025-65961?
Which Contao/core bundle versions are affected?
What version fixes CVE-2025-65961?
Is contao/core-bundle affected?
What is the CVSS score of CVE-2025-65961?
What CWE is associated with CVE-2025-65961?
How can I check Packagist dependencies for CVE-2025-65961?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-68q5-78xp-cwwc",
"modified" : "2025-11-27T08:59:34Z",
"published" : "2025-11-25T20:48:13Z",
"aliases" : [ "CVE-2025-65961" ],
"summary" : "Contao is vulnerable to cross-site scripting in templates",
"details" : "### Impact\n\nIt is possible to inject code into the template output that will be executed in the browser in the front end and back end.\n\n### Patches\n\nUpdate to Contao 4.13.57, 5.3.42 or 5.6.5.\n\n### Workarounds\n\nDo not use the affected templates or patch them manually.\n\n### Refsources\n\nhttps://contao.org/en/security-advisories/cross-site-scripting-in-templates",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.13.57"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0-RC1"
}, {
"fixed" : "5.3.42"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.4.0-RC1"
}, {
"fixed" : "5.6.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/contao/contao/security/advisories/GHSA-68q5-78xp-cwwc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-65961"
}, {
"type" : "WEB",
"url" : "https://contao.org/en/security-advisories/cross-site-scripting-in-templates"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/contao/contao"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79", "CWE-87" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-25T20:48:13Z",
"nvd_published_at" : "2025-11-25T19:15:51Z"
}
}