8.8
HIGH CVSS 3.1
CVE-2026-66298
JS-view sandboxed output can synthesize keyboard events to trigger unconfirmed global shortcuts
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.

INFO

Published Date :

Aug. 5, 2026, 8:17 p.m.

Last Modified :

Nov. 10, 2026, 6:17 p.m.

Remotely Exploit :

Yes !

Source :

6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Affected Products

The following products are affected by CVE-2026-66298 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Livebook livebook
1 Livebook-dev livebook
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH [email protected]
CVSS 4.0 HIGH 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CVSS 4.0 HIGH 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Solution
Update Livebook to a patched version to prevent untrusted JavaScript from triggering session shortcuts.
  • Update Livebook to version 0.18.7 or later.
  • Update Livebook to version 0.19.9 or later.
  • Apply vendor patches for affected versions.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-66298 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-66298 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-66298 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-66298 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

    Nov. 10, 2026

    Action Type Old Value New Value
    Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/66xxx/CVE-2026-66298.json">CVE-2026-66298</a>
    Added Reference https://cna.erlef.org/cves/CVE-2026-66298.html
    Added Reference https://github.com/livebook-dev/livebook/commit/296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728
    Added Reference https://github.com/livebook-dev/livebook/commit/5980e5c6b71036806b3bf54101eb1d6c0f50f19c
    Added Reference https://github.com/livebook-dev/livebook/commit/844242ba80a928d0d675416d312a58003cb7771b
    Added Reference https://github.com/livebook-dev/livebook/commit/a552ce8f99ad348ea37061394dc950a0cebdb33e
    Added Reference https://github.com/livebook-dev/livebook/security/advisories/GHSA-68c2-prqg-x62g
    Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-66298
    Removed Reference https://cna.erlef.org/cves/CVE-2026-66298.html
    Removed Reference https://github.com/livebook-dev/livebook/commit/296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728
    Removed Reference https://github.com/livebook-dev/livebook/commit/5980e5c6b71036806b3bf54101eb1d6c0f50f19c
    Removed Reference https://github.com/livebook-dev/livebook/commit/a552ce8f99ad348ea37061394dc950a0cebdb33e
    Removed Reference https://github.com/livebook-dev/livebook/security/advisories/GHSA-68c2-prqg-x62g
    Removed Reference https://osv.dev/vulnerability/EEF-CVE-2026-66298
    Removed Reference Type https://cna.erlef.org/cves/CVE-2026-66298.html Types: Vendor Advisory
    Removed Reference Type https://github.com/livebook-dev/livebook/commit/296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728 Types: Patch
    Removed Reference Type https://github.com/livebook-dev/livebook/commit/5980e5c6b71036806b3bf54101eb1d6c0f50f19c Types: Patch
    Removed Reference Type https://github.com/livebook-dev/livebook/commit/a552ce8f99ad348ea37061394dc950a0cebdb33e Types: Patch
    Removed Reference Type https://github.com/livebook-dev/livebook/security/advisories/GHSA-68c2-prqg-x62g Types: Patch, Vendor Advisory
    Removed Reference Type https://osv.dev/vulnerability/EEF-CVE-2026-66298 Types: Third Party Advisory
  • CVE Translated by [email protected]

    Oct. 24, 2026

    Action Type Old Value New Value
    Changed Translation Title: livebook de livebook-dev, Description: Una vulnerabilidad de error de validación de origen en livebook-dev livebook permite que JavaScript de salida de cuaderno no confiable active atajos de teclado de toda la sesión, incluyendo la evaluación forzada de todas las celdas y el reinicio del tiempo de ejecución. La función JS-view de Livebook renderiza JavaScript definido en el cuaderno dentro de un iframe aislado y de origen cruzado específicamente porque ese JavaScript no es confiable. El shell de iframe confiable en iframe/priv/static/iframe/v5.html reenvía cada evento keydown disparado en su propia ventana a la página principal sin consultar Event.isTrusted, por lo que un evento sintetizado por el script no confiable a través de window.dispatchEvent se reenvía exactamente como lo haría una pulsación de tecla genuina. El relé del lado del padre en assets/js/hooks/js_view.js lo reconstruye y lo vuelve a despachar en la página en vivo sin validación adicional, y debido a que assets/js/hooks/session.js registra el gestor de atajos global en el documento en la fase de captura, ese gestor actúa sobre el evento replicado independientemente de cómo se produjo. El JavaScript de salida aislado puede, por lo tanto, impulsar los atajos de teclado de toda la sesión de Livebook. Dos de ellos llegan a LivebookWeb.SessionLive y se ejecutan inmediatamente sin confirmación: el atajo para poner en cola la evaluación completa ejecuta cada celda del cuaderno, y el atajo para reconectar el tiempo de ejecución lo desconecta y lo vuelve a conectar, descartando el estado en memoria. Un tercer atajo elimina la celda enfocada detrás de un cuadro de diálogo de confirmación que el usuario puede descartar permanentemente, después de lo cual también se ejecuta silenciosamente. La evaluación completa forzada es la consecuencia significativa, porque hace que el propio código Elixir del cuaderno se ejecute sin que el usuario elija evaluar nada. Un usuario que simplemente abre un cuaderno obtenido de un tercero, o al que se accede desde documentación publicada, puede hacer que su código se ejecute en su tiempo de ejecución. Livebook también refleja las salidas de las celdas a cada cliente conectado, por lo que una salida maliciosa se activa en el navegador de un colaborador tan pronto como se renderiza. Este problema afecta a livebook: desde 0.5.0 antes de 0.18.7 y desde 0.19.0 antes de 0.19.9. Title: livebook de livebook-dev, Description: Una vulnerabilidad de error de validación de origen en livebook-dev livebook permite que JavaScript de salida de cuaderno no confiable active atajos de teclado de toda la sesión, incluyendo la evaluación forzada de todas las celdas y el reinicio del tiempo de ejecución. La función JS-view de Livebook renderiza JavaScript definido en el cuaderno dentro de un iframe aislado y de origen cruzado específicamente porque ese JavaScript no es confiable. El shell de iframe confiable en iframe/priv/static/iframe/v5.html reenvía cada evento keydown disparado en su propia ventana a la página principal sin consultar Event.isTrusted, por lo que un evento sintetizado por el script no confiable a través de window.dispatchEvent se reenvía exactamente como lo haría una pulsación de tecla genuina. El relé del lado del padre en assets/js/hooks/js_view.js lo reconstruye y lo vuelve a despachar en la página en vivo sin validación adicional, y debido a que assets/js/hooks/session.js registra el gestor de atajos global en el documento en la fase de captura, ese gestor actúa sobre el evento replicado independientemente de cómo se produjo. El JavaScript de salida aislado puede, por lo tanto, impulsar los atajos de teclado de toda la sesión de Livebook. Dos de ellos llegan a LivebookWeb.SessionLive y se ejecutan inmediatamente sin confirmación: el atajo para poner en cola la evaluación completa ejecuta cada celda del cuaderno, y el atajo para reconectar el tiempo de ejecución lo desconecta y lo vuelve a conectar, descartando el estado en memoria. Un tercer atajo elimina la celda enfocada detrás de un cuadro de diálogo de confirmación que el usuario puede descartar permanentemente, después de lo cual también se ejecuta silenciosamente. La evaluación completa forzada es la consecuencia significativa, porque hace que el propio código Elixir del cuaderno se ejecute sin que el usuario elija evaluar nada. Un usuario que simplemente abre un cuaderno obtenido de un tercero, o al que se accede desde documentación publicada, puede hacer que su código se ejecute en su tiempo de ejecución. Livebook también refleja las salidas de las celdas a cada cliente conectado, por lo que una salida maliciosa se activa en el navegador de un colaborador tan pronto como se renderiza. Este problema afecta a livebook: desde 0.5.0 antes de 0.18.7 y desde 0.19.0 antes de 0.19.9.
  • CVE Translated by [email protected]

    Oct. 23, 2026

    Action Type Old Value New Value
    Added Translation Title: livebook de livebook-dev, Description: Una vulnerabilidad de error de validación de origen en livebook-dev livebook permite que JavaScript de salida de cuaderno no confiable active atajos de teclado de toda la sesión, incluyendo la evaluación forzada de todas las celdas y el reinicio del tiempo de ejecución. La función JS-view de Livebook renderiza JavaScript definido en el cuaderno dentro de un iframe aislado y de origen cruzado específicamente porque ese JavaScript no es confiable. El shell de iframe confiable en iframe/priv/static/iframe/v5.html reenvía cada evento keydown disparado en su propia ventana a la página principal sin consultar Event.isTrusted, por lo que un evento sintetizado por el script no confiable a través de window.dispatchEvent se reenvía exactamente como lo haría una pulsación de tecla genuina. El relé del lado del padre en assets/js/hooks/js_view.js lo reconstruye y lo vuelve a despachar en la página en vivo sin validación adicional, y debido a que assets/js/hooks/session.js registra el gestor de atajos global en el documento en la fase de captura, ese gestor actúa sobre el evento replicado independientemente de cómo se produjo. El JavaScript de salida aislado puede, por lo tanto, impulsar los atajos de teclado de toda la sesión de Livebook. Dos de ellos llegan a LivebookWeb.SessionLive y se ejecutan inmediatamente sin confirmación: el atajo para poner en cola la evaluación completa ejecuta cada celda del cuaderno, y el atajo para reconectar el tiempo de ejecución lo desconecta y lo vuelve a conectar, descartando el estado en memoria. Un tercer atajo elimina la celda enfocada detrás de un cuadro de diálogo de confirmación que el usuario puede descartar permanentemente, después de lo cual también se ejecuta silenciosamente. La evaluación completa forzada es la consecuencia significativa, porque hace que el propio código Elixir del cuaderno se ejecute sin que el usuario elija evaluar nada. Un usuario que simplemente abre un cuaderno obtenido de un tercero, o al que se accede desde documentación publicada, puede hacer que su código se ejecute en su tiempo de ejecución. Livebook también refleja las salidas de las celdas a cada cliente conectado, por lo que una salida maliciosa se activa en el navegador de un colaborador tan pronto como se renderiza. Este problema afecta a livebook: desde 0.5.0 antes de 0.18.7 y desde 0.19.0 antes de 0.19.9.
  • Initial Analysis by [email protected]

    Aug. 10, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Added CPE Configuration OR *cpe:2.3:a:livebook:livebook:*:*:*:*:*:*:*:* versions from (including) 0.19.0 up to (excluding) 0.19.9 *cpe:2.3:a:livebook:livebook:*:*:*:*:*:*:*:* versions from (including) 0.5.0 up to (excluding) 0.18.7
    Added Reference Type EEF: https://cna.erlef.org/cves/CVE-2026-66298.html Types: Vendor Advisory
    Added Reference Type EEF: https://github.com/livebook-dev/livebook/commit/296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728 Types: Patch
    Added Reference Type EEF: https://github.com/livebook-dev/livebook/commit/5980e5c6b71036806b3bf54101eb1d6c0f50f19c Types: Patch
    Added Reference Type EEF: https://github.com/livebook-dev/livebook/commit/a552ce8f99ad348ea37061394dc950a0cebdb33e Types: Patch
    Added Reference Type EEF: https://github.com/livebook-dev/livebook/security/advisories/GHSA-68c2-prqg-x62g Types: Patch, Vendor Advisory
    Added Reference Type EEF: https://osv.dev/vulnerability/EEF-CVE-2026-66298 Types: Third Party Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Aug. 06, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-66298', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-08-06T13:08:06.869367Z'}
  • New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

    Aug. 05, 2026

    Action Type Old Value New Value
    Added Affected [{'cpes': ['cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/livebook-dev/livebook', 'vendor': 'livebook-dev', 'modules': ['Elixir.LivebookWeb.SessionLive'], 'product': 'livebook', 'versions': [{'status': 'affected', 'version': '0.5.0', 'lessThan': '0.18.7', 'versionType': 'semver'}, {'status': 'affected', 'version': '0.19.0', 'lessThan': '0.19.9', 'versionType': 'semver'}], 'packageURL': 'pkg:hex/livebook', 'packageName': 'livebook', 'programFiles': ['iframe/priv/static/iframe/v5.html', 'assets/js/hooks/js_view.js', 'assets/js/hooks/session.js', 'lib/livebook_web/live/session_live.ex'], 'collectionURL': 'https://repo.hex.pm', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.LivebookWeb.SessionLive':handle_event/3"}]}, {'cpes': ['cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*'], 'vendor': 'livebook-dev', 'modules': ['Elixir.LivebookWeb.SessionLive'], 'product': 'livebook', 'versions': [{'status': 'affected', 'version': '0.5.0', 'lessThan': '0.18.7', 'versionType': 'other'}, {'status': 'affected', 'version': '0.19.0', 'lessThan': '0.19.9', 'versionType': 'other'}, {'status': 'affected', 'version': '0.5.0-cuda12', 'lessThan': '0.18.7-cuda12', 'versionType': 'other'}, {'status': 'affected', 'version': '0.19.0-cuda12', 'lessThan': '0.19.9-cuda12', 'versionType': 'other'}], 'packageURL': 'pkg:oci/livebook?repository_url=ghcr.io%2Flivebook-dev', 'packageName': 'livebook-dev/livebook', 'programFiles': ['iframe/priv/static/iframe/v5.html', 'assets/js/hooks/js_view.js', 'assets/js/hooks/session.js', 'lib/livebook_web/live/session_live.ex'], 'collectionURL': 'https://ghcr.io', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.LivebookWeb.SessionLive':handle_event/3"}]}, {'cpes': ['cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/livebook-dev/livebook', 'vendor': 'livebook-dev', 'modules': ['Elixir.LivebookWeb.SessionLive'], 'product': 'livebook', 'versions': [{'status': 'affected', 'changes': [{'at': '296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728', 'status': 'unaffected'}, {'at': 'a552ce8f99ad348ea37061394dc950a0cebdb33e', 'status': 'unaffected'}, {'at': '5980e5c6b71036806b3bf54101eb1d6c0f50f19c', 'status': 'unaffected'}], 'version': '844242ba80a928d0d675416d312a58003cb7771b', 'lessThan': '*', 'versionType': 'git'}], 'packageURL': 'pkg:github/livebook-dev/livebook', 'packageName': 'livebook-dev/livebook', 'programFiles': ['iframe/priv/static/iframe/v5.html', 'assets/js/hooks/js_view.js', 'assets/js/hooks/session.js', 'lib/livebook_web/live/session_live.ex'], 'collectionURL': 'https://github.com', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.LivebookWeb.SessionLive':handle_event/3"}]}]
    Added 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.
    Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CWE CWE-346
    Added Reference https://cna.erlef.org/cves/CVE-2026-66298.html
    Added Reference https://github.com/livebook-dev/livebook/commit/296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728
    Added Reference https://github.com/livebook-dev/livebook/commit/5980e5c6b71036806b3bf54101eb1d6c0f50f19c
    Added Reference https://github.com/livebook-dev/livebook/commit/a552ce8f99ad348ea37061394dc950a0cebdb33e
    Added Reference https://github.com/livebook-dev/livebook/security/advisories/GHSA-68c2-prqg-x62g
    Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-66298
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.