Servers and applications
CVE-2026-104884
Cross-site scripting in the frontend search results
- Severity
- Medium 4.6
- Published
- 25 Aug 2026
- Last changed
- 2 Oct 2026
- Added to UpHeron
- 3 Nov 2026
- Fixed in
- 5.3.50
- Weakness
- Cross-site scripting (CWE-79)
- Attack
- Over the network · Needs a user account · Needs someone to click or open something
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N- Also known as
- GHSA-h57j-5f5m-789v
- Sources
- Project advisories (GitHub)
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 default template does not use that title variable - it prints the raw link variable, which is assigned WITHOUT escaping.
Honesty caveat (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 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.
Affected software
| Software | Affected versions |
|---|---|
ContaoServers and applications · github:contao/contao |
|
About Contao
Content management system
- Share of all websites
- 0.1%W3Techs, Nov 2026
- Monthly downloads (Packagist)
- 43,303Packagist, 15 Nov 2026
- Total downloads (Packagist)
- 1,787,510Packagist, 15 Nov 2026
- GitHub stars
- 454GitHub, 15 Nov 2026
- Forks
- 180GitHub, 15 Nov 2026
- License
- GNU Lesser General Public LicenseWikidata
- Written in
- PHPWikidata
- First released
- 2006Wikidata
- First published on GitHub
- 15 Aug 2018GitHub
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 6.0 | 6.0.6 | Until 14 Feb 2027 |
| 5.7 (LTS)LTS | 5.7.17 | Until 14 Feb 2030 |
| 5.6 | 5.6.11 | Ended 14 Feb 2026 |
| 5.5 | 5.5.16 | Ended 14 Aug 2025 |
| 5.4 | 5.4.14 | Ended 14 Feb 2025 |
| 5.3 (LTS)LTS | 5.3.54 | Until 14 Feb 2028 |
From endoflife.date.
Vulnerabilities in Contao
- In our list
- 60
- Published in the last 12 months
- 30
- Critical, last 12 months
- 4
- High, last 12 months
- 3
- Known exploited
- 0
- CVE-2026-128335Contao before 5.3.54, 5.7.17, and 6.0.6 Session Invalidation Failure on 2FA ChangeLow 2.1 13 Nov 2026
- CVE-2026-126663Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 Path Traversal via Image Insert TagMedium 5.3 11 Nov 2026
- CVE-2026-126662Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 Filemount Bypass via Edit-MultipleHigh 7.1 11 Nov 2026
- GHSA-xh3r-77ch-frm3Stored cross-site scripting in the file manager via crafted filenamesCritical 9.0 11 Nov 2026
- GHSA-6m74-9w88-r3fhInsert tag injection in the breadcrumb module on 404 pagesMedium 5.3 11 Nov 2026
- GHSA-5mg3-mv6j-57wcSession invalidation upon enabling or disabling 2FALow 3.7 11 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-104884
- GitHub Advisory Database https://github.com/advisories/GHSA-h57j-5f5m-789v
- github.com https://github.com/contao/contao/security/advisories/GHSA-h57j-5f5m-789v