Security Resilience

CVE-2025-65961

XSS in Contao 4.0.0 – 4.13.57

Published
25 November 2025
Modified
18 October 2026
Patch / advisory
CVSS Score v3.1 3.3
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N
EPSS Score 0.0018 7th percentile
Risk Priority 27 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-65961 is a low-severity Improper Neutralization of Alternate XSS Syntax (CWE-87) vulnerability in Contao. Its CVSS base score is 3.3 (Low).

Operationally, exploitation aligns with the MITRE ATT&CK technique Web Portal Capture (T1056.003); ranked at the 7th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1204 User Execution Execution
An adversary may rely upon specific actions by a user in order to gain execution.
T1491 Defacement Impact
Adversaries may modify visual content available internally or externally to an enterprise network, thus affecting the integrity of the original content.
T1056 Input Capture Collection
Adversaries may use methods of capturing user input to obtain credentials or collect information.
T1056.003 Web Portal Capture Collection
Adversaries may install code on externally facing portals, such as a VPN login page, to capture and transmit credentials of users who attempt to log into the service.
T1189 Drive-by Compromise Initial Access
Adversaries may gain access to a system through a user visiting a website over the normal course of browsing.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-36806Same product: Contao Contao
CVE-2023-35161Shared CWE-79, CWE-87
CVE-2023-20208Shared CWE-79, CWE-87
CVE-2023-35156Shared CWE-79, CWE-87
CVE-2023-20188Shared CWE-79, CWE-87
CVE-2023-35159Shared CWE-79, CWE-87
CVE-2023-35160Shared CWE-79, CWE-87
CVE-2023-25782Shared CWE-79
CVE-2023-48583Shared CWE-79
CVE-2023-43260Shared CWE-79

Affected Assets

contao
contao
4.0.0 — 4.13.57 · 5.0.0 — 5.3.42 · 5.4.0 — 5.6.5

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V1.1.2
  • V1.3.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

SA-11 requires developer testing and analysis that can discover improper neutralization of alternate script syntax after it has been coded.

SI-10 directly requires validation/sanitization of untrusted inputs, which structurally stops alternate XSS syntax from reaching the interpreter.

Output filtering can catch or sanitize unneutralized script content before it is served to users.

SA-8 mandates secure engineering principles such as input neutralization and output encoding that prevent introduction of this class of flaw.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require proper input neutralization and output encoding to prevent alternate XSS syntax.

PR.PS-02 partial match
blocks

Patching and EOL replacement can remediate known XSS instances in libraries or frameworks (partial) but do nothing to enforce input neutralization in application code (none).

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing catches residual XSS but does not itself implement the neutralization controls.

prevents

Training developers about XSS risks and proper neutralization techniques can reduce instances of incomplete denylists like the one CWE-87 describes, but the practice is fallible and the strongest control is secure coding/testing (A.8.28/A.8.29), so only a minority of instances are prevented.

prevents

Secure coding standards require proper neutralization of alternate script syntax, directly eliminating CWE-87.

prevents

A.8.30 carries its effect through the secure development practices (8.25-8.29) it contracts from the supplier, which include proper input neutralization; an organization implementing it faithfully sees a reduction in regular software CWEs like CWE-87, but the clause depends on those other controls and the ceiling is `partial`.

finds

A.8.8's reach is disclosure-based (published advisories and component inventory), so it finds CWE-87 only where the alternate-syntax XSS flaw is already a published vulnerability in a third-party component; most instances live in first-party code that A.8.8 does not read, mirroring the A.8.8 -> CWE-89 anchor.

References