CVE-2026-66298
JS-view sandboxed output can synthesize keyboard events to trigger unconfirmed global shortcuts
Check your servers for CVE-2026-66298
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-66298 affects livebook, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- active: a user has to take a deliberate step, such as installing or running something
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 6 Aug 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-346 Origin Validation Error
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
livebook
package
livebook |
affected from 0.5.0, before 0.18.7 affected from 0.19.0, before 0.19.9
Other versions: unaffected
|
|
livebook
package
livebook-dev/livebook |
affected from 0.5.0, before 0.18.7 affected from 0.5.0-cuda12, before 0.18.7-cuda12 affected from 0.19.0, before 0.19.9 affected from 0.19.0-cuda12, before 0.19.9-cuda12
Other versions: unaffected
|
|
livebook
package
livebook-dev/livebook |
affected 844242ba80a928d0d675416d312a58003cb7771b and later (unaffected from 296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728, unaffected from 5980e5c6b71036806b3bf54101eb1d6c0f50f19c, unaffected from a552ce8f99ad348ea37061394dc950a0cebdb33e)
Other versions: unaffected
|
Is my server affected?
Find the installed version of livebook and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i livebook
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-66298 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-66298RHEL, Rocky, Alma, Fedora
rpm -q livebook
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-66298Alpine
apk list --installed | grep -i livebookWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-66298
trivy image --scanners vuln IMAGE | grep CVE-2026-66298
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- JS-view sandboxed output can synthesize keyboard events to trigger unconfirmed global shortcuts (forced full… github.com · vendor advisory, related
Patches and release notes
- Fix commit 296318f in livebook-dev/livebook github.com · patch
- Fix commit 5980e5c in livebook-dev/livebook github.com · patch
- Fix commit a552ce8 in livebook-dev/livebook github.com · patch
Other references
- EEF CNA record for CVE-2026-66298 cna.erlef.org · related
- OSV record EEF-CVE-2026-66298 osv.dev · related
- Introducing commit 844242b in livebook-dev/livebook github.com · related
Source: the record CVE-2026-66298 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse