CVE-2026-66298
High 8.6No known exploitationFix availableJS-view sandboxed output can synthesize keyboard events to trigger unconfirmed global shortcuts
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 20% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-346
Patching and mitigation
- Patch status
- Fix available (source: NVD (reference tagged Patch))
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| livebook | livebook | from 0.19.0 before 0.19.9 | 0.19.9 | NIST NVD |
| livebook | livebook | from 0.5.0 before 0.18.7 | 0.18.7 | NIST NVD |
| livebook-dev | livebook | from 0.19.0 before 0.19.9 | 0.19.9 | CVE Program |
| livebook-dev | livebook | from 0.19.0 before 0.19.9 | 0.19.9 | CVE Program |
| livebook-dev | livebook | from 0.19.0-cuda12 before 0.19.9-cuda12 | 0.19.9-cuda12 | CVE Program |
| livebook-dev | livebook | from 0.5.0 before 0.18.7 | 0.18.7 | CVE Program |
| livebook-dev | livebook | from 0.5.0 before 0.18.7 | 0.18.7 | CVE Program |
| livebook-dev | livebook | from 0.5.0-cuda12 before 0.18.7-cuda12 | 0.18.7-cuda12 | CVE Program |
| livebook-dev | livebook | 844242ba80a928d0d675416d312a58003cb7771b | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by EEF
Source: CVE Program (opens in a new tab)
Patch
Fix documented by NVD (reference tagged Patch)
Vendor guidance and references
- Fix commit 296318f in livebook-dev/livebook (opens in a new tab)patch
- Fix commit 5980e5c in livebook-dev/livebook (opens in a new tab)patch
- Fix commit a552ce8 in livebook-dev/livebook (opens in a new tab)patch
- JS-view sandboxed output can synthesize keyboard events to trigger unconfirmed global shortcuts (forced full evaluation / runtime restart) (opens in a new tab)patch, related, vendor advisory, vendor-advisory
- EEF CNA record for CVE-2026-66298 (opens in a new tab)related, vendor advisory
- Introducing commit 844242b in livebook-dev/livebook (opens in a new tab)related
- OSV record EEF-CVE-2026-66298 (opens in a new tab)related, third party advisory