All vulnerabilities

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.

From contao/contao's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
ContaoServers and applications · github:contao/contao
  • From 4.9.0 before 5.3.50

About Contao

Content management system

From Wikidata, CC0 1.0.
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

ReleaseLatestSecurity fixes
6.06.0.6Until 14 Feb 2027
5.7 (LTS)LTS5.7.17Until 14 Feb 2030
5.65.6.11Ended 14 Feb 2026
5.55.5.16Ended 14 Aug 2025
5.45.4.14Ended 14 Feb 2025
5.3 (LTS)LTS5.3.54Until 14 Feb 2028

From endoflife.date.

References