Advisory

GHSA-628f-v4f6-p37r

Also known as: CVE-2026-107845

Summary

Contao: Cross-site scripting in the comments bundle

Details

An unauthenticated front end visitor can post a comment containing a XSS injection. The victim is any back end user who opens the Comments module, and moderation makes exposure certain rather than preventing it. No Content-Security-Policy header is sent on the Contao back end, so nothing mitigates the inline handler.

Impact

Anyone on the internet can inject script that executes in the Contao back end origin, under the session of whichever user opens the Comments module, with no click and no hover. From there the payload acts as that user through the back end: reading any module they can reach, creating a new administrator, or editing a template, which on Contao is a documented path from back end write access to code execution. Moderation does not help and in fact guarantees exposure, since unpublished comments are still inserted and a moderator has to open the list to act on them.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-10-09 20:53 UTC
Modified
2026-10-09 21:00 UTC

Affected packages and fixes

contao/comments-bundle

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 5.3.50 (ecosystem)

Fixed versions

5.3.50

Fix

The export has no generic command for this ecosystem.

contao/comments-bundle

Packagist · All systems

Affected

  • introduced 5.4.0-RC1, fixed 5.7.12 (ecosystem)

Fixed versions

5.7.12

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences