JS-view sandboxed output can synthesize keyboard events to trigger unconfirmed global shortcuts
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-346.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| livebook-dev | livebook | 0.5.0 to before 0.18.7; 0.19.0 to before 0.19.9 | 0.18.7, 0.19.9 | Patch available | CNA |
| livebook-dev | livebook | 0.5.0 to before 0.18.7; 0.19.0 to before 0.19.9; 0.5.0-cuda12 to before 0.18.7-cuda12; 0.19.0-cuda12 to before 0.19.9-cuda12 | 0.18.7, 0.19.9, 0.18.7-cuda12, 0.19.9-cuda12 | Patch available | CNA |
- livebook Vendorlivebook-dev Affected 0.5.0 to before 0.18.7; 0.19.0 to before 0.19.9 Fixed in 0.18.7, 0.19.9 Patch available CNA
- livebook Vendorlivebook-dev Affected 0.5.0 to before 0.18.7; 0.19.0 to before 0.19.9; 0.5.0-cuda12 to before 0.18.7-cuda12; 0.19.0-cuda12 to before 0.19.9-cuda12 Fixed in 0.18.7, 0.19.9, 0.18.7-cuda12, 0.19.9-cuda12 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:livebook:livebook:*:*:*:*:*:*:*:* | 0.5.0 to before 0.18.7; 0.19.0 to before 0.19.9 | Vulnerable | livebook-dev |
- cpe:2.3:a:livebook:livebook:*:*:*:*:*:*:*:* Versions 0.5.0 to before 0.18.7; 0.19.0 to before 0.19.9 Vulnerable ·livebook-dev
Remediation
- Fix · CNA livebook (livebook-dev) Fixed in 0.18.7, 0.19.9
- Fix · CNA livebook (livebook-dev) Fixed in 0.18.7, 0.19.9, 0.18.7-cuda12, 0.19.9-cuda12
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
livebook-dev livebook 0.18.7, 0.18.7-cuda12 and 2 more versions
4 records Highest priority Priority MEDIUM 2 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-47467 Path traversal in imported file_entries name allows arbitrary file write via URL-type entry downloadPriority MEDIUM 64
- TI-2026-47096 Unescaped deployment environment variables in generated setup commandsPriority MEDIUM 56
- TI-2026-47471 Livebook Teams identity callback lacks state binding, allowing login CSRFPriority LOW 30
Timeline
- 2026-10-02 Threatist record created from CVE-2026-66298
References
Patch 4
- https://github.com/livebook-dev/livebook/security/advisories/GHSA-68c2-prqg-x62g
- https://github.com/livebook-dev/livebook/commit/296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728
- https://github.com/livebook-dev/livebook/commit/a552ce8f99ad348ea37061394dc950a0cebdb33e
- https://github.com/livebook-dev/livebook/commit/5980e5c6b71036806b3bf54101eb1d6c0f50f19c
More livebook-dev Livebook vulnerabilities
- TI-2026-47467 Path traversal in imported file_entries name allows arbitrary file write via URL-type entry download CVSS 4.0HIGH 7.0
- TI-2026-47096 Unescaped deployment environment variables in generated setup commands CVSS 4.0MEDIUM 5.0
- TI-2023-17619 Livebook Desktop's protocol handler can be exploited to execute arbitrary command on Windows CVSS 3.1CRITICAL 9.8
- TI-2026-48332 Livebook Teams identity check fails open when the deployment group is unresolvable, allowing unauthenticated access CVSS 4.0HIGH 7.7
- TI-2026-47471 Livebook Teams identity callback lacks state binding, allowing login CSRF CVSS 4.0MEDIUM 6.8
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences