Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

Critical · 9.3 PHP packages GHSA-x2rp-9qf7-2fmq CVE-2026-107842 PKSA-bmqh-y7sv-p1st PKSA-vy31-xjc7-3g2h

Contao CMS: Four Vulnerabilities Fixed, Including High-Severity Backend XSS

Contao, an open source CMS, has fixed four vulnerabilities affecting versions from 4.0.0 through 5.7.12, including an information disclosure issue in search, a path traversal flaw in image handling, an email-verification abuse issue, and a high-severity stored XSS in the comments bundle that can execute in the backend session of logged-in users.

By PatchBriefing ·

Produced automatically from official sources with the help of AI. How we work →

AI summary

Contao, an open source content management system, has published fixes for four separate vulnerabilities identified in its core bundle and comments bundle. The issues range from information exposure and path traversal to a high-severity cross-site scripting flaw that can affect backend administrator sessions. All four are fixed in the same two release lines, and site operators running affected versions should plan an update.

Four separate issues identified and fixed in Contao

Four distinct vulnerabilities were identified in Contao's core-bundle and comments-bundle packages. CVE-2026-107842 concerns the search module (ModuleSearch), which can disclose protected page titles, URLs, and indexed text snippets to unauthenticated visitors after the setting contao.search.index_protected is switched from enabled to disabled, because previously indexed rows retain stale authorization data. CVE-2026-107843 affects the registration module (ModuleRegistration), where a missing check on form submission state allows an unauthenticated attacker to trigger repeated activation emails and determine whether a pending registration exists for a given address, without rate limiting. CVE-2026-107844 is a path traversal issue in ImagesController, where user-controlled path input is joined to an image directory without verifying the resulting path stays within that directory, potentially allowing retrieval of files elsewhere in the project directory under certain extension conditions. CVE-2026-107845 is a cross-site scripting vulnerability in the comments bundle, where comment metadata (email or website fields) is rendered without sufficient encoding, allowing injected script to execute when a backend user views the Comments module.

Root causes

For CVE-2026-107842, authorization metadata for search index rows is stored per-row in tl_search, but disabling index protection removes the protected-row filter without deleting rows that were indexed while protection was active, so old indexed content remains queryable. For CVE-2026-107843, ModuleRegistration::compile() enters a follow-up registration branch on any POST request to a page containing the registration module, without verifying FORM_SUBMIT or a prior captcha result, allowing resendActivationMail() to call OptInToken::send() repeatedly; this path is reachable only when reg_activate is enabled and a target address has an unconfirmed registration and opt-in token. For CVE-2026-107844, ImagesController joins the user-supplied {path} parameter to the configured image directory using Path::join() but does not call Path::isBasePath() to confirm the canonical resulting path stays inside that directory; encoded parent-directory segments can cause BinaryFileResponse to return files elsewhere in the project directory if their extension matches contao.image.valid_extensions, and the route can also reveal whether arbitrary paths exist, with debug responses potentially disclosing absolute filesystem paths. For CVE-2026-107845, listComments() in comments-bundle/contao/dca/tl_comments.php renders comment email or website metadata without sufficient attribute and URL encoding, allowing injected script to run in the Contao backend origin when a backend user opens the Comments module; because unpublished comments remain visible to moderators, moderation review does not prevent exposure.

Why this matters

CVE-2026-107845 carries the highest severity of the four and is rated with a CVSS score of 9.3, reflecting that it can be triggered without authentication, requires only that a backend user view the affected module, and can lead to high impact on confidentiality and integrity within the scope of the backend session. The description notes that moderation does not prevent exposure, since unpublished comments are still visible to moderators who open the module. The other three issues (CVE-2026-107842, CVE-2026-107843, CVE-2026-107844) are each scored 5.3, indicating lower impact: they involve limited confidentiality exposure or response-discrepancy abuse without affecting integrity or availability, and none require authentication. None of the four vulnerabilities are listed as known to be exploited, and no public exploit code is referenced in the available facts.

Who is affected

Sites running contao/core-bundle are affected by CVE-2026-107842, CVE-2026-107843, and CVE-2026-107844. Sites running contao/comments-bundle are affected by CVE-2026-107845. CVE-2026-107842 affects core-bundle from version 4.0.0 onward; CVE-2026-107843 affects core-bundle from version 4.1.0 onward; CVE-2026-107844 affects core-bundle from version 5.0.0 onward; CVE-2026-107845 affects comments-bundle from version 4.0.0 onward. All four issues also affect a separate range starting at version 5.4.0-RC1. Exploitation of CVE-2026-107843 additionally requires that the reg_activate setting is enabled and a target address has a pending, unconfirmed registration.

Affected and fixed versions

Each of the four vulnerabilities is fixed in version 5.3.50 for the 5.3.x line and version 5.7.12 for the 5.4.0-RC1 through 5.7.x range. CVE-2026-107842 affects contao/core-bundle from version 4.0.0 up to the fixed versions. CVE-2026-107843 affects contao/core-bundle from version 4.1.0 up to the fixed versions. CVE-2026-107844 affects contao/core-bundle from version 5.0.0 up to the fixed versions. CVE-2026-107845 affects contao/comments-bundle from version 4.0.0 up to the fixed versions. All four also apply to installations starting at version 5.4.0-RC1, with the fix in version 5.7.12.

Fixes available

All four vulnerabilities are fixed in version 5.3.50 and version 5.7.12 of the respective packages (contao/core-bundle for the first three, contao/comments-bundle for CVE-2026-107845). No additional mitigation steps beyond updating to these fixed versions are described in the available facts.

Recommended action

Site operators running affected versions of contao/core-bundle or contao/comments-bundle should update to version 5.3.50 or version 5.7.12, depending on their current release line, as soon as practical. Given that CVE-2026-107845 is rated at the high end of severity and affects backend sessions, prioritizing this update is advisable, particularly for sites that accept public comments and have active backend moderation.

PatchBriefing score

9.3 / 10 · Critical

Official CVSS: 9.3

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

EPSS 0.0047 (33 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

contao/core-bundle ≥ 5.4.0-RC1 < 5.7.12
vulnerable
contao/core-bundle
vulnerable
contao/core-bundle >= 5.4.0-RC1, < 5.7.12
vulnerable
contao/core-bundle >=4.0.0,<5.3.50|>=5.4.0,<5.7.12
vulnerable
≥ 5.3.50
patched
≥ 5.7.12
patched
contao/contao >=4.0.0,<5.3.50|>=5.4.0,<5.7.12
vulnerable
contao/core-bundle ≥ 5.4.0-RC1 < 5.7.12
vulnerable
contao/core-bundle
vulnerable
contao/core-bundle >= 5.4.0-RC1, < 5.7.12
vulnerable
contao/core-bundle >=4.1.0,<5.3.50|>=5.4.0,<5.7.12
vulnerable
≥ 5.3.50
patched
≥ 5.7.12
patched
contao/contao >=4.1.0,<5.3.50|>=5.4.0,<5.7.12
vulnerable
contao/core-bundle ≥ 5.4.0-RC1 < 5.7.12
vulnerable
contao/core-bundle
vulnerable
contao/core-bundle >= 5.4.0-RC1, < 5.7.12
vulnerable
contao/core-bundle >=5.0.0,<5.3.50|>=5.4.0,<5.7.12
vulnerable
≥ 5.3.50
patched
≥ 5.7.12
patched
contao/contao >=5.0.0,<5.3.50|>=5.4.0,<5.7.12
vulnerable
contao/comments-bundle ≥ 5.4.0-RC1 < 5.7.12
vulnerable
contao/comments-bundle
vulnerable
contao/comments-bundle >= 5.4.0-RC1, < 5.7.12
vulnerable
contao/comments-bundle >=4.0.0,<5.3.50|>=5.4.0,<5.7.12
vulnerable
≥ 5.3.50
patched
≥ 5.7.12
patched
contao/contao >=4.0.0,<5.3.50|>=5.4.0,<5.7.12
vulnerable

Reported fixes

All four vulnerabilities are fixed in version 5.3.50 and version 5.7.12 of the respective packages (contao/core-bundle for the first three, contao/comments-bundle for CVE-2026-107845). No additional mitigation steps beyond updating to these fixed versions are described in the available facts.

How this was built

17 source records were collected, matched and used to prepare the report above.

  • OSV.dev database
  • Packagist Security Advisories registry
  • GitHub Advisory Database database
  • NVD (NIST) database
  • OSV.dev database
  • Packagist Security Advisories registry
Unified report
Contao CMS: Four Vulnerabilities Fixed, Including High-Severity Backend XSS
1 article · 17 sources cited
Revision history
  1. Generated
  2. Generated
  3. Published
  4. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email