Contao Core Bundle sessions survive 2FA changes in user authentication
- Exploited
- No known exploitation
- Fix
- Fixed in 5.3.54, 5.7.17, 6.0.6
- Who is exposed
- Not reported
Summary
Contao 4.6.0 before 5.3.54, 5.4.0-RC1 before 5.7.17, and 6.0.0-RC1 before 6.0.6 fails to invalidate existing user sessions when two-factor authentication is enabled or disabled. Because Contao\User::isEqualTo() and serialized session data omit two-factor state, attackers already holding a session keep it after the owner changes 2FA settings.
What to do
Upgrade to a fixed version: 5.3.54, 5.7.17, 6.0.6.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-128335 (Contao before 5.3.54, 5.7.17, and 6.0.6 Session Invalidation Failure on 2FA Change), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-128335 (entry last updated 2026-11-13):
Affected:
- Packagist package contao/core-bundle: from 4.6.0, fixed in 5.3.54; from 5.4.0-RC1, fixed in 5.7.17; from 6.0.0-RC1, fixed in 6.0.6
Fixed versions: 5.3.54, 5.7.17, 6.0.6.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-128335 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-128335 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (Packagist): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/contao/contao/security/advisories/GHSA-5mg3-mv6j-57wc
- https://github.com/contao/contao/commit/7e7c821ce6c41c02ae85b3d9f8eff5039de3fe1e
- https://github.com/contao/contao/commit/7618a5757347a30168139e74c7b326e3e296059d
- https://github.com/contao/contao/commit/843da308056402d94ae2dbb999959f9e2ce71fe1
- https://github.com/contao/contao/releases/tag/5.3.54
- https://github.com/contao/contao/releases/tag/5.7.17
- https://github.com/contao/contao/releases/tag/6.0.6
- https://github.com/contao/contao/blob/5.3.53/core-bundle/contao/library/Contao/User.php#L413-L446
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-128335
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-128335"}.Affected versions
cve.now Index
- Exploitation0/40No signal
- Exposure3/25Reachable over the network · Unknown: No advisory context yet
- Reach10/20Affects Packagist packages
- Severity2.1/10CVSS 2.1
- No patch0/5No signal
What would change the score
- Would score about 70 if added to CISA KEV
- Would score about 65 if CISA's SSVC rates exploitation active
- Would score about 34 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Public exploit activity
- EPSS: 0.32%
Since disclosure: the repos PoC-in-GitHub lists and FIRST's daily EPSS score.
Evidence 11
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · contao/contao · Advisory GHSA-5mg3-mv6j-57wc |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-128335 |
| Record | NVD · CVE-2026-128335 |
| Other links 8 | |
| Patch | GitHub · contao/contao · Commit 7e7c821c |
| Patch | GitHub · contao/contao · Commit 7618a575 |
| Patch | GitHub · contao/contao · Commit 843da308 |
| Repository | GitHub · contao/contao · Release 5.3.54 |
| Repository | GitHub · contao/contao · Release 5.7.17 |
| Repository | GitHub · contao/contao · Release 6.0.6 |
| Repository | GitHub · contao/contao · core-bundle/contao/library/Contao/User.php · L413-L446 |
| Link | vulncheck.com · advisories/contao-before-5.3.54-5.7.17-and-6.0.6-session-invalidation-failure-on-2fa-change |
Questions about CVE-2026-128335
Is CVE-2026-128335 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-128335?
contao/core-bundle (Packagist): from 4.6.0 before 5.3.54; from 5.4.0-RC1 before 5.7.17; from 6.0.0-RC1 before 6.0.6.
Source: cve.now feed data
How do I fix CVE-2026-128335?
Upgrade to a fixed version: 5.3.54, 5.7.17, 6.0.6.
Source: cve.now feed data
Related
- CVE-2024-45398Remote command execution through file upload in contao/core-bundle
- CVE-2026-126662Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 Filemount Bypass via Edit-Multiple
- CVE-2025-65960Contao is vulnerable to remote code execution in template closures
- CVE-2026-126663Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 Path Traversal via Image Insert Tag
- CVE-2026-107844Contao: Path traversal in the images controller
- CVE-2026-107843Contao: The registration module re-sends activation mails on any unauthenticated POST, with no throttle and no captcha check
No corrections so far. Something wrong on this page? Report an error.