CVE-2026-104884: contao/core-bundle: Cross-site scripting in the frontend search results
Published 2026-11-20 · Updated 2026-11-21 · Also known as GHSA-h57j-5f5m-789v
Summary
A cross-site scripting vulnerability exists in contao/core-bundle due to the legacy HTML5 search template echoing a raw unescaped variable. Engineering and security teams using Contao with the legacy search template should update their packages.
Who is affected
This Stored XSS vulnerability requires the legacy `search_default.html5` template to be active for the search module, which is common on migrated sites or custom template selections. A backend page editor can store malicious script that executes when anonymous front-end visitors or administrators view search results.
Exploitability
The vulnerability has a CVSS base score of 5.4 (MEDIUM) with a vector of CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, indicating network accessibility, low privileges required, user interaction required, and a changed scope. EPSS data is not yet available and CISA KEV status is no.
Remediation
- Update contao/core-bundle to version 5.3.50, 5.7.12, or later.
- Ensure the legacy search template is not active, or switch to the default Twig search template which auto-escapes.
How to check your project
- Check composer.json or composer.lock for the contao/core-bundle package version.
- Inspect the search module configuration to determine if the legacy `search_default.html5` template is currently active.
Automated analysis of the published advisory data, generated 2026-11-21. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Packagist | contao/core-bundle |
>= 4.9.0, < 5.3.50 | 5.3.50 | composer require "contao/core-bundle:>=5.3.50" |
| Packagist | contao/core-bundle |
>= 5.4.0-RC1, < 5.7.12 | 5.7.12 | composer require "contao/core-bundle:>=5.7.12" |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | Required |
| Scope | Changed |
| Confidentiality | Low |
| Integrity | Low |
| Availability | None |
FAQ
What causes the vulnerability?
The legacy HTML5 search template prints the raw unescaped link variable instead of using the hardened title variable.
Are default modern Contao installations affected?
No, default installations use the Twig search_default.html.twig template which auto-escapes variables.
What versions fix the issue?
Fixed versions are 5.3.50, 5.7.12, and later.
Original advisory description
References
- WEB https://github.com/contao/contao/security/advisories/GHSA-h57j-5f5m-789v
- WEB https://github.com/contao/contao/pull/10153
- WEB https://github.com/contao/contao/commit/9519c1049462da35054c114d07efdeecaef32d06
- WEB https://github.com/contao/contao/commit/a58eb71ef5a7a87da9d90980579dbeb6688448b4
- WEB https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2026-104884.yaml
- WEB https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2026-104884.yaml
- PACKAGE https://github.com/contao/contao
- WEB https://github.com/contao/contao/blob/a11109b60dedcbd99e32a4e8550afdadb500f2c5/CHANGELOG.md
- WEB https://github.com/contao/contao/blob/a6543f49a92187a7368f51b290179c4795386e23/CHANGELOG.md
- WEB https://github.com/contao/contao/tree/5.3.50
- WEB https://github.com/contao/contao/tree/5.7.12
Source records: GHSA-h57j-5f5m-789v (OSV.dev).