Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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. F

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-66298
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 11:25 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 5 Aug 2026, 19:44 UTC

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. F

osv:CVE-2026-66298
Complete source record
{
  "id": "4d3e8bdc38328ddd751aa2d976a435c8c07d99cb1671b4ece795f5592ba1f0d7",
  "url": "https://osv.dev/vulnerability/CVE-2026-66298",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "JS-view sandboxed output can synthesize keyboard events to trigger unconfirmed global shortcuts",
    "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. F",
    "evidence": "osv:CVE-2026-66298",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-66298",
      "aliases": [
        "CVE-2026-66298",
        "EEF-CVE-2026-66298",
        "GHSA-68c2-prqg-x62g"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/livebook-dev/livebook",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c380e1663f79d227bb53bce7a39cd5079f473379"
                },
                {
                  "fixed": "82aeedfb52f5122c6cf1b7013550c0a858af59ea"
                },
                {
                  "introduced": "16e9ce0bb8c097ae45b5a48ffaa1a9b7a8ce22cd"
                },
                {
                  "fixed": "782dc5ecfe103e953c8157df1b47613896aa2c1e"
                },
                {
                  "fixed": "296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728"
                },
                {
                  "fixed": "5980e5c6b71036806b3bf54101eb1d6c0f50f19c"
                },
                {
                  "fixed": "a552ce8f99ad348ea37061394dc950a0cebdb33e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:livebook:livebook:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.5.0"
                      },
                      {
                        "fixed": "0.18.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:livebook:livebook:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.19.0"
                      },
                      {
                        "fixed": "0.19.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "5980e5c6b71036806b3bf54101eb1d6c0f50f19c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a552ce8f99ad348ea37061394dc950a0cebdb33e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.19.8",
            "v0.18.6",
            "v0.19.7",
            "v0.19.6",
            "v0.19.5",
            "v0.19.4",
            "v0.19.3",
            "v0.19.2",
            "v0.19.1",
            "v0.19.0",
            "v0.18.5",
            "nightly",
            "v0.18.4",
            "v0.18.3",
            "v0.18.2",
            "v0.18.1",
            "v0.18.0",
            "v0.9.2",
            "v0.8.1",
            "v0.9.1",
            "v0.9.0",
            "v0.8.0",
            "v0.7.2",
            "v0.7.1",
            "v0.7.0",
            "v0.6.3",
            "v0.6.2",
            "v0.6.1",
            "v0.6.0",
            "v0.5.2",
            "v0.5.1",
            "v0.5.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-66298.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.180937555Z",
      "provider": "osv",
      "references": [
        "https://cna.erlef.org/cves/CVE-2026-66298.html",
        "https://ghcr.io",
        "https://github.com",
        "https://osv.dev/vulnerability/EEF-CVE-2026-66298",
        "https://repo.hex.pm",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66298.json",
        "https://github.com/livebook-dev/livebook/security/advisories/GHSA-68c2-prqg-x62g",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-66298",
        "https://github.com/livebook-dev/livebook/commit/296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728",
        "https://github.com/livebook-dev/livebook/commit/5980e5c6b71036806b3bf54101eb1d6c0f50f19c",
        "https://github.com/livebook-dev/livebook/commit/a552ce8f99ad348ea37061394dc950a0cebdb33e",
        "https://github.com/livebook-dev/livebook"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-346"
        ],
        "cna_assigner": "EEF",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.5.0-cuda12"
                  },
                  {
                    "fixed": "0.18.7-cuda12"
                  },
                  {
                    "introduced": "0.19.0-cuda12"
                  },
                  {
                    "fixed": "0.19.9-cuda12"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66298.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-66298",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494946,
  "published_at": "2026-08-05T19:44:11.831+00:00"
}