{"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-66298 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-66298 is a high-severity vulnerability in livebook-dev livebook, published on 5 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-66298 and fix it if it is affected.\n\nWhat it is: CVE-2026-66298 is a high-severity vulnerability in livebook-dev livebook, published on 5 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-66298 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- livebook (Hex): affected from 0.5.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-66298/ (Markdown: https://insights.sbomify.com/CVE-2026-66298/index.md)","id":"CVE-2026-66298","markdown":"https://insights.sbomify.com/CVE-2026-66298/index.md","name":"CVE-2026-66298","record":{"aliases":["EEF-CVE-2026-66298","GHSA-68c2-prqg-x62g"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Livebook notebook server","requires_auth":"none","summary":"Untrusted JavaScript in Livebook notebooks can synthesize keyboard events to force code execution or restart runtimes without user confirmation.","user_interaction":"required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[{"product":"livebook","vendor":"livebook"}],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"description":"Origin Validation Error vulnerability in livebook-dev livebook allows untrusted notebook output JavaScript to trigger session-wide keyboard shortcuts, including forced evaluation of all cells and runtime restart.\n\nLivebook's JS-view feature renders notebook-defined JavaScript inside a sandboxed, cross-origin iframe specifically because that JavaScript is untrusted. The trusted iframe shell in iframe/priv/static/iframe/v5.html forwards every keydown event fired in its own window to the parent page without consulting Event.isTrusted, so an event synthesized by the untrusted script through window.dispatchEvent is forwarded exactly as a genuine keystroke would be. The parent-side relay in assets/js/hooks/js_view.js reconstructs and re-dispatches it on the live page with no further validation, and because assets/js/hooks/session.js registers the global shortcut handler on the document in the capture phase, that handler acts on the replicated event regardless of how it was produced.\n\nSandboxed output JavaScript can therefore drive Livebook's session-wide keyboard shortcuts. Two of them reach LivebookWeb.SessionLive and execute immediately with no confirmation: the shortcut for queueing full evaluation runs every cell in the notebook, and the shortcut for reconnecting the runtime disconnects and reconnects it, discarding in-memory state. A third shortcut deletes the focused cell behind a confirmation dialog that the user can permanently dismiss, after which it too executes silently.\n\nForced full evaluation is the significant consequence, because it causes the notebook's own Elixir code to run without the user choosing to evaluate anything. A user who merely opens a notebook obtained from a third party, or reached from published documentation, can have its code executed on their runtime. Livebook also mirrors cell outputs to every connected client, so a malicious output triggers in a collaborator's browser as soon as it renders.\n\nThis issue affects livebook: from 0.5.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":"JS-view sandboxed output can synthesize keyboard events to trigger unconfirmed global shortcuts","id":"CVE-2026-66298","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"other","year":"2026"},"n_packages":1,"n_references":6,"next":{"headline":"Apache Tomcat: DoS via WebSocket chat example","id":"CVE-2026-66299"},"packages":[{"ecosystem":"Hex","fixed":["0.18.7","0.19.9"],"introduced":["0.5.0","0.19.0"],"last_affected":[],"package":"livebook","purl":"pkg:hex/livebook","source":"EEF-CVE-2026-66298"}],"prev":{"headline":"Unescaped deployment environment variables in generated setup commands","id":"CVE-2026-66297"},"products":["livebook"],"published":"2026-08-05","related":[{"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":6.8,"headline":"Livebook Teams identity callback lacks state binding, allowing login CSRF","id":"CVE-2026-66885","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":"total"},"state":"PUBLISHED","updated":"2026-08-06","vendors":["livebook-dev"]},"summary":"Untrusted JavaScript in Livebook notebooks can synthesize keyboard events to force code execution or restart runtimes without user confirmation.","url":"https://insights.sbomify.com/CVE-2026-66298/"}