Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-66298

HIGH 8.6EPSS 12%

JS-view sandboxed output can synthesize keyboard events to trigger unconfirmed global shortcuts

Mitigation

  • Upgrade livebook to 0.19.9 or later.
  • Upgrade livebook to 0.19.9-cuda12 or later.

Who should check

  • Anyone running livebook-dev livebook >= 0.5.0, < 0.18.7; >= 0.19.0, < 0.19.9
  • Anyone running livebook-dev livebook >= 0.5.0, < 0.18.7; >= 0.5.0-cuda12, < 0.18.7-cuda12; >= 0.19.0, < 0.19.9; >= 0.19.0-cuda12, < 0.19.9-cuda12
  • Anyone running livebook-dev livebook >= 844242ba80a928d0d675416d312a58003cb7771b, < *

Vulnerability facts

Affected
livebook-dev livebook >= 0.5.0, < 0.18.7; >= 0.19.0, < 0.19.9; livebook-dev livebook >= 0.5.0, < 0.18.7; >= 0.5.0-cuda12, < 0.18.7-cuda12; >= 0.19.0, < 0.19.9; >= 0.19.0-cuda12, < 0.19.9-cuda12; livebook-dev livebook >= 844242ba80a928d0d675416d312a58003cb7771b, < *
Fixed in
livebook-dev livebook 0.18.7, livebook-dev livebook 0.19.9, livebook-dev livebook 0.18.7, livebook-dev livebook 0.18.7-cuda12, livebook-dev livebook 0.19.9, livebook-dev livebook 0.19.9-cuda12
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.6 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: Active
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.27% chance of exploitation in 30 days (percentile 12, 2026-11-26)
CWE
CWE-346
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
livebook-dev livebook>= 0.5.0, < 0.18.7; >= 0.19.0, < 0.19.9—cvelist
livebook-dev livebook>= 0.5.0, < 0.18.7; >= 0.5.0-cuda12, < 0.18.7-cuda12; >= 0.19.0, < 0.19.9; >= 0.19.0-cuda12, < 0.19.9-cuda12—cvelist
livebook-dev livebook>= 844242ba80a928d0d675416d312a58003cb7771b, < *—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-66298. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-66298.md
Affected: livebook-dev livebook >= 0.5.0, < 0.18.7; >= 0.19.0, < 0.19.9; livebook-dev livebook >= 0.5.0, < 0.18.7; >= 0.5.0-cuda12, < 0.18.7-cuda12; >= 0.19.0, < 0.19.9; >= 0.19.0-cuda12, < 0.19.9-cuda12; livebook-dev livebook >= 844242ba80a928d0d675416d312a58003cb7771b, < *
Fixed in: livebook-dev livebook 0.18.7, livebook-dev livebook 0.19.9, livebook-dev livebook 0.18.7, livebook-dev livebook 0.18.7-cuda12, livebook-dev livebook 0.19.9, livebook-dev livebook 0.19.9-cuda12

Steps:
1. Search this machine and project for livebook-dev livebook: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-66298 being exploited?

There is no confirmed exploitation: CVE-2026-66298 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-66298?

High: CVSS 8.6 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-66298?

livebook-dev livebook >= 0.5.0, < 0.18.7; >= 0.19.0, < 0.19.9; livebook-dev livebook >= 0.5.0, < 0.18.7; >= 0.5.0-cuda12, < 0.18.7-cuda12; >= 0.19.0, < 0.19.9; >= 0.19.0-cuda12, < 0.19.9-cuda12; livebook-dev livebook >= 844242ba80a928d0d675416d312a58003cb7771b, < *.

Is there a fix for CVE-2026-66298?

Yes. Fixed in livebook-dev livebook 0.18.7, livebook-dev livebook 0.19.9, livebook-dev livebook 0.18.7, livebook-dev livebook 0.18.7-cuda12, livebook-dev livebook 0.19.9, livebook-dev livebook 0.19.9-cuda12. Upgrade livebook to 0.19.9 or later. Upgrade livebook to 0.19.9-cuda12 or later.

How do I check if I'm affected by CVE-2026-66298?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors