Aller au contenu principal
HDWSec
Medium GHSA-h57j-5f5m-789v

Contao CMS: Stored Cross-Site Scripting in the Front End Search Results

Sévérité
Medium
Score CVSS
4.6CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Identifiants CVE
GHSA-h57j-5f5m-789v
Éditeur
Contao
Produit
Contao CMS (contao/core-bundle, search results on legacy templates)
Versions affectées
contao/core-bundle 4.9.0 and later
Version corrigée
5.3.50, 5.7.12
Type de vulnérabilité
Stored Cross-site Scripting (CWE-79) on legacy .html5 templates
Chercheurs
Jean-Jamil KHALIFÉ

Presentation

Contao renders front end search results through a template. Modern Twig templates escape their output automatically, but the legacy .html5 templates inherited from earlier versions do not.

HDW Sec found that a back office page editor can store content that executes as JavaScript in the browser of any visitor running a search, on installations still using the legacy templates.

Issue(s)

  • The search result output is echoed without escaping in the legacy .html5 template path.
  • The payload is stored by a back office user with page editing rights, then triggered for any front end visitor whose search matches the poisoned content.
  • The flaw is conditional: installations that use the default Twig templates escape the value and are not affected. This condition is what bounds the score at 4.6 rather than a full stored XSS rating.
  • Contao published this at 4.6 medium; the HDW Sec report had estimated 5.4.

References

  • GitHub advisory: GHSA-h57j-5f5m-789v
  • Fixed in Contao 5.3.50 and 5.7.12, published 2026-08-25. No CVE assigned as of publication.

Notre R&D traque les vulnérabilités.

Recherche de 0-day, reverse engineering, divulgation coordonnée : découvrez notre pôle R&D.