{"answers":{"affected":"1 open source package ship an affected version, including livebook. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-66885 in the wild and no public exploit code.","fix":"Upgrade livebook to a fixed version for your release line: 0.18.7 or 0.19.9.","what":"CVE-2026-66885 is a medium-severity vulnerability in livebook-dev livebook, published on 5 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-66885 and fix it if it is affected.\n\nWhat it is: CVE-2026-66885 is a medium-severity vulnerability in livebook-dev livebook, published on 5 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-66885 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- livebook (Hex): affected from 0.15.0; fixed in 0.18.7, 0.19.9\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-66885/ (Markdown: https://insights.sbomify.com/CVE-2026-66885/index.md)","id":"CVE-2026-66885","markdown":"https://insights.sbomify.com/CVE-2026-66885/index.md","name":"CVE-2026-66885","record":{"aliases":["EEF-CVE-2026-66885","GHSA-pvvw-28fw-c6fg"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Livebook web application","requires_auth":"low_privilege","summary":"Attackers can force victims into sessions bound to attacker identities, exposing victim data and attributing work to the attacker.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[{"product":"livebook","vendor":"livebook"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"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.\n\nWhen 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.\n\nAn 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.\n\nThe 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.\n\nThis issue affects livebook: from 0.15.0 before 0.18.7 and from 0.19.0 before 0.19.9.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Livebook Teams identity callback lacks state binding, allowing login CSRF","id":"CVE-2026-66885","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"csrf","year":"2026"},"n_packages":1,"n_references":6,"next":{"headline":"Missing Authorization in Digital Watchdog VMAX DVR and NVR Product Lineups","id":"CVE-2026-66887"},"packages":[{"ecosystem":"Hex","fixed":["0.18.7","0.19.9"],"introduced":["0.15.0","0.19.0"],"last_affected":[],"package":"livebook","purl":"pkg:hex/livebook","source":"EEF-CVE-2026-66885"}],"prev":{"headline":"Cross-site request forgery in oidcc plug","id":"CVE-2026-66884"},"products":["livebook"],"published":"2026-08-05","related":[{"cvss_score":8.6,"headline":"JS-view sandboxed output can synthesize keyboard events to trigger unconfirmed global shortcuts","id":"CVE-2026-66298","kev_date_added":null,"published":"2026-08-05"},{"cvss_score":8.6,"headline":"Livebook Desktop's protocol handler can be exploited to execute arbitrary command on Windows","id":"CVE-2023-35174","kev_date_added":null,"published":"2023-06-22"},{"cvss_score":7.7,"headline":"Livebook Teams identity check fails open when the deployment group is unresolvable, allowing unauthenticated access","id":"CVE-2026-68746","kev_date_added":null,"published":"2026-08-05"},{"cvss_score":7,"headline":"Path traversal in imported file_entries name allows arbitrary file write via URL-type entry download","id":"CVE-2026-66881","kev_date_added":null,"published":"2026-08-05"},{"cvss_score":5,"headline":"Unescaped deployment environment variables in generated setup commands","id":"CVE-2026-66297","kev_date_added":null,"published":"2026-08-05"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-06","vendors":["livebook-dev"]},"summary":"Attackers can force victims into sessions bound to attacker identities, exposing victim data and attributing work to the attacker.","url":"https://insights.sbomify.com/CVE-2026-66885/"}