CVE-2026-66298
JS-view sandboxed output can synthesize keyboard events to trigger unconfirmed global shortcuts
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. Livebook'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. Sandboxed 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. Forced 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. This issue affects livebook: from 0.5.0 before 0.18.7 and from 0.19.0 before 0.19.9.
INFO
Published Date :
Aug. 5, 2026, 8:17 p.m.
Last Modified :
Aug. 5, 2026, 8:17 p.m.
Remotely Exploit :
Yes !
Source :
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Affected Products
The following products are affected by CVE-2026-66298
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 4.0 | HIGH | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | ||||
| CVSS 4.0 | HIGH | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db |
Solution
- Update Livebook to version 0.18.7 or later.
- Update Livebook to version 0.19.9 or later.
- Apply vendor patches for affected versions.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-66298.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-66298 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-66298
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-66298 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-66298 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Aug. 05, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/livebook-dev/livebook', 'vendor': 'livebook-dev', 'modules': ['Elixir.LivebookWeb.SessionLive'], 'product': 'livebook', 'versions': [{'status': 'affected', 'version': '0.5.0', 'lessThan': '0.18.7', 'versionType': 'semver'}, {'status': 'affected', 'version': '0.19.0', 'lessThan': '0.19.9', 'versionType': 'semver'}], 'packageURL': 'pkg:hex/livebook', 'packageName': 'livebook', 'programFiles': ['iframe/priv/static/iframe/v5.html', 'assets/js/hooks/js_view.js', 'assets/js/hooks/session.js', 'lib/livebook_web/live/session_live.ex'], 'collectionURL': 'https://repo.hex.pm', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.LivebookWeb.SessionLive':handle_event/3"}]}, {'cpes': ['cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*'], 'vendor': 'livebook-dev', 'modules': ['Elixir.LivebookWeb.SessionLive'], 'product': 'livebook', 'versions': [{'status': 'affected', 'version': '0.5.0', 'lessThan': '0.18.7', 'versionType': 'other'}, {'status': 'affected', 'version': '0.19.0', 'lessThan': '0.19.9', 'versionType': 'other'}, {'status': 'affected', 'version': '0.5.0-cuda12', 'lessThan': '0.18.7-cuda12', 'versionType': 'other'}, {'status': 'affected', 'version': '0.19.0-cuda12', 'lessThan': '0.19.9-cuda12', 'versionType': 'other'}], 'packageURL': 'pkg:oci/livebook?repository_url=ghcr.io%2Flivebook-dev', 'packageName': 'livebook-dev/livebook', 'programFiles': ['iframe/priv/static/iframe/v5.html', 'assets/js/hooks/js_view.js', 'assets/js/hooks/session.js', 'lib/livebook_web/live/session_live.ex'], 'collectionURL': 'https://ghcr.io', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.LivebookWeb.SessionLive':handle_event/3"}]}, {'cpes': ['cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/livebook-dev/livebook', 'vendor': 'livebook-dev', 'modules': ['Elixir.LivebookWeb.SessionLive'], 'product': 'livebook', 'versions': [{'status': 'affected', 'changes': [{'at': '296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728', 'status': 'unaffected'}, {'at': 'a552ce8f99ad348ea37061394dc950a0cebdb33e', 'status': 'unaffected'}, {'at': '5980e5c6b71036806b3bf54101eb1d6c0f50f19c', 'status': 'unaffected'}], 'version': '844242ba80a928d0d675416d312a58003cb7771b', 'lessThan': '*', 'versionType': 'git'}], 'packageURL': 'pkg:github/livebook-dev/livebook', 'packageName': 'livebook-dev/livebook', 'programFiles': ['iframe/priv/static/iframe/v5.html', 'assets/js/hooks/js_view.js', 'assets/js/hooks/session.js', 'lib/livebook_web/live/session_live.ex'], 'collectionURL': 'https://github.com', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.LivebookWeb.SessionLive':handle_event/3"}]}] Added 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. Livebook'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. Sandboxed 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. Forced 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. This issue affects livebook: from 0.5.0 before 0.18.7 and from 0.19.0 before 0.19.9. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-346 Added Reference https://cna.erlef.org/cves/CVE-2026-66298.html Added Reference https://github.com/livebook-dev/livebook/commit/296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728 Added Reference https://github.com/livebook-dev/livebook/commit/5980e5c6b71036806b3bf54101eb1d6c0f50f19c Added Reference https://github.com/livebook-dev/livebook/commit/a552ce8f99ad348ea37061394dc950a0cebdb33e Added Reference https://github.com/livebook-dev/livebook/security/advisories/GHSA-68c2-prqg-x62g Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-66298