Contao
Contao: Cross-site scripting in the comments bundle
Contao is an Open Source CMS. From version 4.0.0 until 5.3.50 and 5.7.12, an unauthenticated visitor can submit a comment whose email or website metadata is rendered without sufficient attribute and URL encoding by listComments() in comments-bundle/contao/dca/tl_comments.php. When a backend user opens the Comments module, attacker-controlled script can execute in the Contao backend origin under that user's session. Unpublished comments remain visible to moderators, so moderation does not prevent exposure. This issue is fixed in versions 5.3.50 and 5.7.12.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.0.0, < 5.3.50
- >= 5.4.0-RC1, < 5.7.12
Fixed in 5.3.50, 5.7.12
Mitigation
Upgrade contao to 5.3.50 or 5.7.12 or later.
References
- Vendor advisory github.com/contao/contao/security/advisories/G…
- Patch github.com/contao/contao/commit/22505d5f79bc1a…
- Release notes github.com/contao/contao/releases/tag/5.3.50
1 more
- Release notes github.com/contao/contao/releases/tag/5.7.12
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.