8.6 HIGH
- CVSS version (CVSS): 4.0
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Attack Requirement (AT): None (N)
- Privileges Required (PR): None (N)
- User Interaction (UI): Active (A)
- Vulnerable System Impact Confidentiality (VC): High (H)
- Vulnerable System Impact Integrity (VI): High (H)
- Vulnerable System Impact Availability (VA): High (H)
- Subsequent System Impact Confidentiality (SC): None (N)
- Subsequent System Impact Integrity (SI): None (N)
- Subsequent System Impact Availability (SA): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Attack Requirement (MAT): None (N)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): Active (A)
- Modified Vulnerable System Impact Confidentiality (MVC): High (H)
- Modified Vulnerable System Impact Integrity (MVI): High (H)
- Modified Vulnerable System Impact Availability (MVA): High (H)
- Modified Subsequent System Impact Confidentiality (MSC): Negligible (N)
- Modified Subsequent System Impact Integrity (MSI): Negligible (N)
- Modified Subsequent System Impact Availability (MSA): Negligible (N)
- Safety (S): Not Defined (X)
- Automatable (AU): Not Defined (X)
- Recovery (R): Not Defined (X)
- Value Density (V): Not Defined (X)
- Vulnerability Response Effort (RE): Not Defined (X)
- Provider Urgency (U): Not Defined (X)
- Confidentiality Req. (CR): Not Defined (X)
- Integrity Req. (IR): Not Defined (X)
- Availability Req. (AR): Not Defined (X)
- Exploit Maturity (E): Not Defined (X)
by @LeSuisse Activity log
- Created suggestion
-
@LeSuisse
ignored
3 packages
- typstPackages.leetcode-livebook_0_1_1
- typstPackages.leetcode-livebook_0_1_0
- typstPackages.leetcode-livebook
- @LeSuisse accepted
- @LeSuisse published on GitHub
JS-view sandboxed output can synthesize keyboard events to trigger unconfirmed global shortcuts
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.
References
-
https://github.com/livebook-dev/livebook/security/advisories/GHSA-68c2-prqg-x62g relatedvendor-advisory
Affected products
- <0.19.9
- <0.18.7
- <0.19.9-cuda12
- <0.18.7-cuda12
- <0.18.7
- *
- <0.19.9
Matching in nixpkgs
pkgs.livebook
Automate code & data workflows with interactive Elixir notebooks
pkgs.beam27Packages.livebook
Automate code & data workflows with interactive Elixir notebooks
pkgs.beam28Packages.livebook
Automate code & data workflows with interactive Elixir notebooks
pkgs.beam29Packages.livebook
Automate code & data workflows with interactive Elixir notebooks
pkgs.beamMinimal27Packages.livebook
Automate code & data workflows with interactive Elixir notebooks
pkgs.beamMinimal28Packages.livebook
Automate code & data workflows with interactive Elixir notebooks
Ignored packages (3)
pkgs.typstPackages.leetcode-livebook
None
pkgs.typstPackages.leetcode-livebook_0_1_0
None
pkgs.typstPackages.leetcode-livebook_0_1_1
None
Package maintainers
-
@DianaOlympos Thomas Depierre
-
@scvalex Alexandru Scvorțov <github@abstractbinary.org>
-
@eljamm Fedi Jamoussi <fedi.jamoussi@protonmail.ch>
-
@Prince213 Sizhe Zhao <prc.zhao@outlook.com>
-
@adamcstephens Adam C. Stephens <happy.plan4249@valkor.net>
-
@happysalada Raphael Megzari <raphael@megzari.com>
-
@gleber Gleb Peregud <gleber.p@gmail.com>
-
@yurrriq Eric Bailey <eric@ericb.me>
-
@ethancedwards8 Ethan Carter Edwards <ethan@ethancedwards.com>
-
@phanirithvij Phani Rithvij <phanirithvij2000@gmail.com>
-
@Munksgaard Philip Munksgaard <philip@munksgaard.me>
-
@ankhers Justin Wood <me@ankhers.dev>
-
@minijackson Rémi Nicole <minijackson@riseup.net>