CVE-2026-66885
Livebook Teams identity callback lacks state binding, allowing login CSRF
Check your servers for CVE-2026-66885
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-66885 affects livebook, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- active: a user has to take a deliberate step, such as installing or running something
- Impact on the vulnerable system
- confidentiality high, integrity none, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 6 Aug 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-352 Cross-Site Request Forgery
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
livebook
package
livebook |
affected from 0.15.0, before 0.18.7 affected from 0.19.0, before 0.19.9
Other versions: unaffected
|
|
livebook
package
livebook-dev/livebook |
affected from 0.15.0, before 0.18.7 affected from 0.15.0-cuda12, before 0.18.7-cuda12 affected from 0.19.0, before 0.19.9 affected from 0.19.0-cuda12, before 0.19.9-cuda12
Other versions: unaffected
|
|
livebook
package
livebook-dev/livebook |
affected 4380a411920531223088267ed1c0ad21f96ef660 and later (unaffected from 21c16168263275541a6e076d0c31852c40e09a18, unaffected from 33a052daa386c4ce08a9c39a07fc90f353ff6a51, unaffected from 6ed2e213e9d5a19a70d7fcad5a8d616622cd2084)
Other versions: unaffected
|
Is my server affected?
Find the installed version of livebook and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i livebook
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-66885 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-66885RHEL, Rocky, Alma, Fedora
rpm -q livebook
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-66885Alpine
apk list --installed | grep -i livebookWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-66885
trivy image --scanners vuln IMAGE | grep CVE-2026-66885
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- Livebook Teams Identity OAuth-style callback has no state/nonce binding, enabling login CSRF github.com · vendor advisory, related
Patches and release notes
- Fix commit 21c1616 in livebook-dev/livebook github.com · patch
- Fix commit 33a052d in livebook-dev/livebook github.com · patch
- Fix commit 6ed2e21 in livebook-dev/livebook github.com · patch
Other references
- EEF CNA record for CVE-2026-66885 cna.erlef.org · related
- OSV record EEF-CVE-2026-66885 osv.dev · related
- Introducing commit 4380a41 in livebook-dev/livebook github.com · related
Source: the record CVE-2026-66885 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse