# CVE-2026-107845: Contao: Cross-site scripting in the comments bundle

- Severity: Critical 9.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-10-09T19:29:55.396Z
- Modified: 2026-10-16T17:17:04.113Z
- Also known as: GHSA-628f-v4f6-p37r
- Weaknesses: CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- contao contao: >= 4.0.0, < 5.3.50; >= 5.4.0-RC1, < 5.7.12
- contao/comments-bundle (Packagist): from 4.0.0 before 5.3.50; from 5.4.0-RC1 before 5.7.12

## Every score

- GitHub_M: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`

## References

- <https://github.com/contao/contao/security/advisories/GHSA-628f-v4f6-p37r> (web)
- <https://github.com/contao/contao/commit/22505d5f79bc1a7f52e2cba5fddf6007e1f0408a> (web)
- <https://github.com/contao/contao/releases/tag/5.3.50> (web)
- <https://github.com/contao/contao/releases/tag/5.7.12> (web)
- <https://github.com/contao/contao> (package)

## Sources

- CVE List: [CVE-2026-107845](https://www.cve.org/CVERecord?id=CVE-2026-107845), CVE Terms of Use, modified 2026-10-09
- GitHub Advisory Database: [GHSA-628f-v4f6-p37r](https://github.com/advisories/GHSA-628f-v4f6-p37r), CC-BY-4.0, modified 2026-10-09
- NVD: [CVE-2026-107845](https://nvd.nist.gov/vuln/detail/CVE-2026-107845), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-107845 · Whole record: https://cve.day/CVE-2026-107845.json · Rebuilt by cve.day 2026-11-25T22:59:43.355Z
