CVE-2026-104884 contao/core-bundle: Cross-site scripting in the frontend search results
- Published
- Unknown
- Updated
- Exploit status
- Proof-of-concept only
- Technology
- PHP
Description
Commit 23e8cca3136a hardened the search-result title against insert-tag/XSS by setting $objTemplate->title = StringUtil::specialchars(StringUtil::stripInsertTags($arrResult[$i]['title'])). But the legacy HTML5 template does not use that title variable - it prints the raw link variable, which is assigned without escaping.
Impact
Affected configuration (important): on 5.7.9 the default search template is the Twig search_default.html.twig, which does not use the raw link variable and auto-escapes - so a default Twig install is not affected. The vulnerable raw echo is in the legacy search_default.html5 template (still shipped and selectable in 5.7.9, line 8: <?= $this->link ?>); exploitation requires that legacy template to be active for the search module (common on sites migrated from earlier Contao / using custom template selection). Where the legacy template is used, the sink is unambiguously raw and ModuleSearch::compile() assigns link from the entity-decoded indexed title.
A backend page editor can store script that executes for anonymous front-end visitors (and admins) viewing search results, a stored XSS crossing the editor -> anonymous-visitor boundary.
Credits
This security vulnerability was found by @HDWSec
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| contao/core-bundle(Packagist) | = 4.9.0; = 4.9.1; = 4.9.2; = 4.9.3 +310 more | 5.3.50, 5.7.12 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| contao/core-bundle(Packagist) | >= 4.9.0, < 5.3.50 | 5.3.50 |
| contao/core-bundle(Packagist) | >= 5.4.0-RC1, < 5.7.12 | 5.7.12 |
| contao/core-bundle(Packagist) | = 4.10.0 | No fix listed |
| contao/core-bundle(Packagist) | = 4.10.0-RC1 | No fix listed |
| contao/core-bundle(Packagist) | = 4.10.0-RC2 | No fix listed |
| contao/core-bundle(Packagist) | = 4.10.0-RC3 | No fix listed |
| contao/core-bundle(Packagist) | = 4.10.0-RC4 | No fix listed |
| contao/core-bundle(Packagist) | = 4.10.1 | No fix listed |
| contao/core-bundle(Packagist) | = 4.10.2 | No fix listed |
| contao/core-bundle(Packagist) | = 4.10.3 | No fix listed |
| contao/core-bundle(Packagist) | = 4.10.4 | No fix listed |
| contao/core-bundle(Packagist) | = 4.10.5 | No fix listed |
| contao/core-bundle(Packagist) | = 4.10.6 | No fix listed |
| contao/core-bundle(Packagist) | = 4.10.7 | No fix listed |
| contao/core-bundle(Packagist) | = 4.11.0 | No fix listed |
| contao/core-bundle(Packagist) | = 4.11.0-RC1 | No fix listed |
| contao/core-bundle(Packagist) | = 4.11.0-RC2 | No fix listed |
| contao/core-bundle(Packagist) | = 4.11.1 | No fix listed |
| contao/core-bundle(Packagist) | = 4.11.2 | No fix listed |
| contao/core-bundle(Packagist) | = 4.11.3 | No fix listed |
| contao/core-bundle(Packagist) | = 4.11.4 | No fix listed |
| contao/core-bundle(Packagist) | = 4.11.5 | No fix listed |
| contao/core-bundle(Packagist) | = 4.11.6 | No fix listed |
| contao/core-bundle(Packagist) | = 4.11.7 | No fix listed |
| contao/core-bundle(Packagist) | = 4.11.8 | No fix listed |
Show 175 more
| Product | Affected versions | Fixed in |
|---|---|---|
| contao/core-bundle(Packagist) | = 4.11.9 | No fix listed |
| contao/core-bundle(Packagist) | = 4.12.0 | No fix listed |
| contao/core-bundle(Packagist) | = 4.12.0-RC1 | No fix listed |
| contao/core-bundle(Packagist) | = 4.12.0-RC2 | No fix listed |
| contao/core-bundle(Packagist) | = 4.12.0-RC3 | No fix listed |
| contao/core-bundle(Packagist) | = 4.12.1 | No fix listed |
| contao/core-bundle(Packagist) | = 4.12.2 | No fix listed |
| contao/core-bundle(Packagist) | = 4.12.3 | No fix listed |
| contao/core-bundle(Packagist) | = 4.12.4 | No fix listed |
| contao/core-bundle(Packagist) | = 4.12.5 | No fix listed |
| contao/core-bundle(Packagist) | = 4.12.6 | No fix listed |
| contao/core-bundle(Packagist) | = 4.12.7 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.0 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.0-RC1 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.0-RC2 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.0-RC3 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.1 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.10 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.11 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.12 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.13 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.14 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.15 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.16 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.17 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.18 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.19 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.2 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.20 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.21 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.22 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.23 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.24 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.25 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.26 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.27 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.28 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.29 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.3 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.30 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.31 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.32 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.33 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.34 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.35 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.36 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.37 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.38 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.39 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.4 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.40 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.41 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.42 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.43 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.44 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.45 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.46 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.47 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.48 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.49 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.5 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.50 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.51 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.52 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.53 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.54 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.55 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.56 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.57 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.58 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.6 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.7 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.8 | No fix listed |
| contao/core-bundle(Packagist) | = 4.13.9 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.0 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.1 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.10 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.11 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.12 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.13 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.14 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.15 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.16 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.17 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.18 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.19 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.2 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.20 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.21 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.22 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.23 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.24 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.25 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.26 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.27 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.28 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.29 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.3 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.30 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.31 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.32 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.33 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.34 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.35 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.36 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.37 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.38 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.39 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.4 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.40 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.41 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.42 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.5 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.6 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.7 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.8 | No fix listed |
| contao/core-bundle(Packagist) | = 4.9.9 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.0 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.0-RC1 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.0-RC2 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.0-RC3 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.0-RC4 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.1 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.10 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.2 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.3 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.4 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.5 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.6 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.7 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.8 | No fix listed |
| contao/core-bundle(Packagist) | = 5.0.9 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.0 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.0-RC1 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.0-RC2 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.0-RC3 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.1 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.10 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.11 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.2 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.3 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.4 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.5 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.6 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.7 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.8 | No fix listed |
| contao/core-bundle(Packagist) | = 5.1.9 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.0 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.0-RC1 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.0-RC2 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.0-RC3 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.0-RC4 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.0-RC5 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.0-RC6 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.1 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.10 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.2 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.3 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.4 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.5 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.6 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.7 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.8 | No fix listed |
| contao/core-bundle(Packagist) | = 5.2.9 | No fix listed |
| contao/core-bundle(Packagist) | = 5.3.0 | No fix listed |
| contao/core-bundle(Packagist) | = 5.3.0-RC1 | No fix listed |
| contao/core-bundle(Packagist) | = 5.3.0-RC2 | No fix listed |
| contao/core-bundle(Packagist) | = 5.3.0-RC3 | No fix listed |
| contao/core-bundle(Packagist) | = 5.3.0-RC4 | No fix listed |
| contao/core-bundle(Packagist) | = 5.3.1 | No fix listed |
| contao/core-bundle(Packagist) | = 5.3.10 | No fix listed |
| contao/core-bundle(Packagist) | = 5.3.11 | No fix listed |
| contao/core-bundle(Packagist) | = 5.3.12 | No fix listed |
| contao/core-bundle(Packagist) | = 5.3.13 | No fix listed |
| contao/core-bundle(Packagist) | = 5.3.14 | No fix listed |
References
- github.com vendor-advisory
- github.com patch
- github.com patch
- github.com patch
- github.com exploit
- github.com exploit
- github.com
- github.com
- github.com
- github.com
- github.com
- github.com product