CVE-2026-66885
Livebook Teams identity callback lacks state binding, allowing login CSRF
Mitigation
- Upgrade livebook to 0.19.9 or later.
- Upgrade livebook to 0.19.9-cuda12 or later.
Who should check
- Anyone running livebook-dev livebook >= 0.15.0, < 0.18.7; >= 0.19.0, < 0.19.9
- Anyone running livebook-dev livebook >= 0.15.0, < 0.18.7; >= 0.15.0-cuda12, < 0.18.7-cuda12; >= 0.19.0, < 0.19.9; >= 0.19.0-cuda12, < 0.19.9-cuda12
- Anyone running livebook-dev livebook >= 4380a411920531223088267ed1c0ad21f96ef660, < *
Vulnerability facts
- Affected
- livebook-dev livebook >= 0.15.0, < 0.18.7; >= 0.19.0, < 0.19.9; livebook-dev livebook >= 0.15.0, < 0.18.7; >= 0.15.0-cuda12, < 0.18.7-cuda12; >= 0.19.0, < 0.19.9; >= 0.19.0-cuda12, < 0.19.9-cuda12; livebook-dev livebook >= 4380a411920531223088267ed1c0ad21f96ef660, < *
- Fixed in
- livebook-dev livebook 0.18.7, livebook-dev livebook 0.19.9, livebook-dev livebook 0.18.7, livebook-dev livebook 0.18.7-cuda12, livebook-dev livebook 0.19.9, livebook-dev livebook 0.19.9-cuda12
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 6.8 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: Low
- User interaction: Active
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
- CWE
- CWE-352
- Modified
Description
Cross-Site Request Forgery (CSRF) vulnerability in livebook-dev livebook allows an attacker to authenticate a victim's browser session under the attacker's own Livebook Teams identity. When Livebook is configured to use Livebook Teams for identity, Livebook.ZTA.LivebookTeams.handle_request/4 in lib/livebook/zta/livebook_teams.ex handles the OAuth-style callback carrying a teams_identity marker and a code parameter. The clause exchanges that code for an access token and writes the token into the browser session without verifying any value that ties the callback to the browser session that started the login. No state or nonce is generated when the flow is initiated: Livebook.Teams.Requests.create_auth_request/1 in lib/livebook/teams/requests.ex sends an empty request body, so no per-attempt value is ever registered, and the callback clause has nothing to compare against. An attacker who holds membership in the same Livebook Teams organisation as the target instance can therefore begin the login flow themselves, retain the resulting authorization code without redeeming it, and induce a victim to open a crafted URL carrying that code. The victim's browser completes the exchange and the resulting session is bound to the attacker's identity rather than the victim's. The victim is not required to hold any particular privilege, and no credential belonging to the victim is involved. The vulnerability does not allow the attacker to authenticate as the victim. The consequence is that a user believes they are working in their own authenticated session while they are in fact operating as another identity. Work performed in that session is attributed to the attacker's account, and secrets, uploaded data, or notebook results the victim produces are exposed to the attacker rather than kept in the victim's own account. The authorization code must be redeemed within a short window after the login flow begins, which constrains the timing of the attack but not its feasibility. This issue affects livebook: from 0.15.0 before 0.18.7 and from 0.19.0 before 0.19.9.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| livebook-dev livebook | >= 0.15.0, < 0.18.7; >= 0.19.0, < 0.19.9 | — | cvelist |
| livebook-dev livebook | >= 0.15.0, < 0.18.7; >= 0.15.0-cuda12, < 0.18.7-cuda12; >= 0.19.0, < 0.19.9; >= 0.19.0-cuda12, < 0.19.9-cuda12 | — | cvelist |
| livebook-dev livebook | >= 4380a411920531223088267ed1c0ad21f96ef660, < * | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-66885. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-66885.md Affected: livebook-dev livebook >= 0.15.0, < 0.18.7; >= 0.19.0, < 0.19.9; livebook-dev livebook >= 0.15.0, < 0.18.7; >= 0.15.0-cuda12, < 0.18.7-cuda12; >= 0.19.0, < 0.19.9; >= 0.19.0-cuda12, < 0.19.9-cuda12; livebook-dev livebook >= 4380a411920531223088267ed1c0ad21f96ef660, < * Fixed in: livebook-dev livebook 0.18.7, livebook-dev livebook 0.19.9, livebook-dev livebook 0.18.7, livebook-dev livebook 0.18.7-cuda12, livebook-dev livebook 0.19.9, livebook-dev livebook 0.19.9-cuda12 Steps: 1. Search this machine and project for livebook-dev livebook: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/livebook-dev/livebook/commit/4380a411920531223088267ed1c0ad21f96ef660
- https://github.com/livebook-dev/livebook/commit/21c16168263275541a6e076d0c31852c40e09a18
- https://github.com/livebook-dev/livebook/commit/33a052daa386c4ce08a9c39a07fc90f353ff6a51
- https://github.com/livebook-dev/livebook/commit/6ed2e213e9d5a19a70d7fcad5a8d616622cd2084
FAQ
Is CVE-2026-66885 being exploited?
There is no confirmed exploitation: CVE-2026-66885 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-66885?
Medium: CVSS 6.8 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-66885?
livebook-dev livebook >= 0.15.0, < 0.18.7; >= 0.19.0, < 0.19.9; livebook-dev livebook >= 0.15.0, < 0.18.7; >= 0.15.0-cuda12, < 0.18.7-cuda12; >= 0.19.0, < 0.19.9; >= 0.19.0-cuda12, < 0.19.9-cuda12; livebook-dev livebook >= 4380a411920531223088267ed1c0ad21f96ef660, < *.
Is there a fix for CVE-2026-66885?
Yes. Fixed in livebook-dev livebook 0.18.7, livebook-dev livebook 0.19.9, livebook-dev livebook 0.18.7, livebook-dev livebook 0.18.7-cuda12, livebook-dev livebook 0.19.9, livebook-dev livebook 0.19.9-cuda12. Upgrade livebook to 0.19.9 or later. Upgrade livebook to 0.19.9-cuda12 or later.
How do I check if I'm affected by CVE-2026-66885?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.