Contao core-bundle CVE-2026-104884
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as backend page editor
-
DeliveryStore script in indexed page title
-
ExploitVictim submits/view search results
-
ExecutionLegacy html5 template echoes raw link
-
ImpactScript runs in visitor browser
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three concrete conditions to all hold: (1) the search module must be configured to use the legacy |
| Impact | This is a moderate, conditional stored XSS (CWE-79) in Contao core-bundle rated CVSS 5.4 (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N). The signals point to a real but non-urgent issue rather than a widespread emergency. The network vector (AV:N) is offset by meaningful friction: PR:L means an authenticated backend page editor is required to plant the payload, UI:R means a visitor must actually view search results, and - critically - the raw sink only exists when the legacy |
| Exploit ScenarioDerived | An authenticated backend page editor stores a malicious indexed title (e.g. script markup) that the search indexer picks up. On a site whose search module uses the legacy |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Stored cross-site scripting in the Contao core-bundle search module lets an authenticated backend editor with page-title edit rights plant script that executes for anonymous front-end visitors and administrators who view search results, rated CVSS 5.4 (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N). The flaw is configuration-dependent: it only fires when the search module is set to the legacy 'search_default.html5' template, whose line 8 echoes the unescaped 'link' variable, while the default Twig 'search_default.html.twig' on 5.7.9 auto-escapes and is not affected. An earlier hardening commit (23e8cca3136a) escaped the 'title' variable but missed the raw 'link' echo in the legacy template; no public exploit code was identified at time of analysis and there is no confirmed active exploitation (CISA KEV).
RemediationAI
Upgrade contao/core-bundle to 5.3.50 (for the 4.9.x/5.3.x line) or 5.7.12 (for the 5.4.x/5.7.x line) - the fixed releases referenced in the advisory, with the fix delivered via PR github.com/contao/contao/pull/10153 and commits 9519c1049462da35054c114d07efdeecaef32d06 and a58eb71ef5a7a87da9d90980579dbeb6688448b4; full guidance is at github.com/contao/contao/security/advisories/GHSA-h57j-5f5m-789v. If an immediate upgrade is not possible, the most effective compensating control is to stop using the legacy template: select the Twig 'search_default.html.twig' for the search module (or copy the legacy template into a custom override that replaces <?= $this->link ?> with an escaped expression such as StringUtil::specialchars($this->link)), accepting that this changes the markup your front end renders for search results. Additionally, review backend user and group permissions so that only trusted editors can modify page titles, since the payload originates from the entity-decoded indexed title; note this narrows but does not eliminate exposure, and updating remains the only complete fix.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-79 (improper neutralization of input during web page generation) in Contao's frontend search pipeline. An earlier fix hardened search-result titles by assigning $objTemplate->title = StringUtil::specialchars(StringUtil::stripInsertTags($arrResult[$i]['title'])), but the shipped legacy HTML5 template 'search_default.html5' never consumes that 'title' variable - it prints $this->link directly, and ModuleSearch::compile() populates 'link' from the entity-decoded indexed page title without escaping. Because the sink is a raw PHP echo in a .html5 template rather than a Twig template, Twig's context-aware auto-escaping does not apply. The affected package is composer/contao/core-bundle (CPE pkg:composer/contao_core-bundle), and the vulnerable path is only reachable when the legacy template is explicitly selected for the search module, which is most common on installations migrated from older Contao versions or where templates were chosen manually. The supplied patch series (PR 10153 plus commits 9519c1049462da35054c114d07efdeecaef32d06 and a58eb71ef5a7a87da9d90980579dbeb6688448b4) also includes adjacent hardening such as StringUtil::specialcharsUrl for stored website URLs and CSRF/POST enforcement on the opt-in DCA, indicating a broader security cleanup rather than a single-line escaping change. The trigger conditions for the XSS itself are as described in the advisory: non-default legacy template, editor-supplied title content, and victim viewing a matching search result.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Authenticated backend editor stores the payload (PR:L), a visitor must view results (UI:R), and script executes in the victim's browser crossing trust boundary (S:C) with limited C/I and no availability impact.
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
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
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
GHSA-h57j-5f5m-789v
NVD
CVE.org
Exploit-DB