Medium · 4.3 PHP packages GHSA-q6wp-fr43-gm9v CVE-2026-107850 PKSA-7n2q-445d-xssj PKSA-6gsv-pjvq-z35p
Contao Preview Links: Misconfigured Voter Lets Backend Users Access Unpublished Pages
A service misconfiguration in Contao's core-bundle caused the preview access voter to be dropped from the dependency injection container, allowing non-admin backend users with the preview_link module to view other users' unpublished pages via their share links. Fixed in 5.7.12.
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 fixed a vulnerability in its preview links module that allowed non-admin backend users to bypass ownership checks on preview share links. The issue stemmed from a service configuration error that silently disabled the intended access control voter. It is tracked as CVE-2026-107850 (GHSA-q6wp-fr43-gm9v) and affects contao/core-bundle versions 5.7.1 up to but not including 5.7.12.
What happened
In contao/core-bundle, the service configuration file registered the preview access voter under the class name Contao\CoreBundle\Security\Voter\DataContainer\PreviewAccessVoter, but the class actually shipped in the codebase was named PreviewVoter. Because the registered class name did not match the real class, Symfony's service container could not apply autoconfiguration to it, and the service was subsequently removed as unused. As a result, the access control logic in PreviewVoter::hasAccess() was never invoked to enforce ownership of preview links.
Technical cause
This is classified as CWE-639, Authorization Bypass Through User-Controlled Key. The root cause is a naming mismatch between the class referenced in core-bundle/config/services.yaml and the actual PreviewVoter class. Symfony's dependency injection container relies on matching class names to apply security voter autoconfiguration; when the names diverge, the voter is treated as an unused private service and dropped from the container entirely, rather than failing loudly. This left no enforcement mechanism in place for checking whether a backend user owned a given preview link record.
Why it matters
A non-admin backend user who has been granted the preview_link module can list every record in the tl_preview_link table, which includes signed share URLs generated by other users. By obtaining these URLs, such a user could use the showUnpublished mechanism to view unpublished pages even though they do not otherwise have permission to access those pages. The advisory does not establish that affected users could edit or delete preview links belonging to others, so the confirmed impact is limited to unauthorized viewing of unpublished content.
Who is affected
Sites running contao/core-bundle between version 5.7.1 and 5.7.12 (exclusive of the fix) that grant the preview_link backend module to non-administrator users are affected. Exploitation requires an authenticated backend account with low privileges (CVSS vector includes PR:L), and no user interaction from a victim is required.
Affected versions
contao/core-bundle versions from 5.7.1 up to but not including 5.7.12 are affected. The issue is fixed in version 5.7.12.
Fixes and mitigation
The vendor has corrected the service registration so that the preview access voter is properly recognized and autoconfigured by the dependency injection container, restoring ownership enforcement in PreviewVoter::hasAccess(). This fix is included in contao/core-bundle version 5.7.12.
Recommended action
Site operators running affected versions of contao/core-bundle should update to version 5.7.12 as soon as practical. As an additional precaution, administrators may want to review which backend users have been granted the preview_link module and audit existing preview links for unexpected access, though the fact package does not describe a specific audit procedure beyond updating.
PatchBriefing score
4.3 / 10 · Medium
Official CVSS: 4.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
EPSS 0.0033 (19 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.7.1 < 5.7.12
- vulnerable
- contao/core-bundle
- vulnerable
- contao/core-bundle >= 5.7.1, < 5.7.12
- vulnerable
- contao/core-bundle >=5.7.1,<5.7.12
- vulnerable
- ≥ 5.7.12
- patched
- contao/contao >=5.7.1,<5.7.12
- vulnerable
Reported fixes
The vendor has corrected the service registration so that the preview access voter is properly recognized and autoconfigured by the dependency injection container, restoring ownership enforcement in PreviewVoter::hasAccess(). This fix is included in contao/core-bundle version 5.7.12.
How this was built
4 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
Revision history
- Generated
- Published
- Generated