← Back to CVE Explorer

CVE-2026-66298

Full vulnerability record from the local CVENow database.

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
HIGH
CVSS score
8.6 (v4.0)
Vulnerability status
Analyzed
Source identifier
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Published
2026-08-05 20:17:12.203000
Last modified
2026-10-24 16:10:00.153000
View original CVE JSON
{
  "id": "CVE-2026-66298",
  "sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
  "published": "2026-08-05T20:17:12.203",
  "lastModified": "2026-10-24T16:10:00.153",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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.\n\nLivebook'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.\n\nSandboxed 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.\n\nForced 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.\n\nThis issue affects livebook: from 0.5.0 before 0.18.7 and from 0.19.0 before 0.19.9."
    },
    {
      "lang": "es",
      "value": "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.\n\nLa 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.\n\nEl 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.\n\nLa 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.\n\nEste problema afecta a livebook: desde 0.5.0 antes de 0.18.7 y desde 0.19.0 antes de 0.19.9."
    }
  ],
  "affected": [
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "affectedData": [
        {
          "vendor": "livebook-dev",
          "product": "livebook",
          "defaultStatus": "unaffected",
          "collectionURL": "https://repo.hex.pm",
          "packageName": "livebook",
          "cpes": [
            "cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "Elixir.LivebookWeb.SessionLive"
          ],
          "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"
          ],
          "programRoutines": [
            {
              "name": "'Elixir.LivebookWeb.SessionLive':handle_event/3"
            }
          ],
          "repo": "https://github.com/livebook-dev/livebook",
          "packageURL": "pkg:hex/livebook",
          "versions": [
            {
              "version": "0.5.0",
              "lessThan": "0.18.7",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "0.19.0",
              "lessThan": "0.19.9",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "livebook-dev",
          "product": "livebook",
          "defaultStatus": "unaffected",
          "collectionURL": "https://ghcr.io",
          "packageName": "livebook-dev/livebook",
          "cpes": [
            "cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "Elixir.LivebookWeb.SessionLive"
          ],
          "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"
          ],
          "programRoutines": [
            {
              "name": "'Elixir.LivebookWeb.SessionLive':handle_event/3"
            }
          ],
          "packageURL": "pkg:oci/livebook?repository_url=ghcr.io%2Flivebook-dev",
          "versions": [
            {
              "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",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "livebook-dev",
          "product": "livebook",
          "defaultStatus": "unaffected",
          "collectionURL": "https://github.com",
          "packageName": "livebook-dev/livebook",
          "cpes": [
            "cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "Elixir.LivebookWeb.SessionLive"
          ],
          "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"
          ],
          "programRoutines": [
            {
              "name": "'Elixir.LivebookWeb.SessionLive':handle_event/3"
            }
          ],
          "repo": "https://github.com/livebook-dev/livebook",
          "packageURL": "pkg:github/livebook-dev/livebook",
          "versions": [
            {
              "version": "844242ba80a928d0d675416d312a58003cb7771b",
              "lessThan": "*",
              "versionType": "git",
              "status": "affected",
              "changes": [
                {
                  "at": "296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728",
                  "status": "unaffected"
                },
                {
                  "at": "a552ce8f99ad348ea37061394dc950a0cebdb33e",
                  "status": "unaffected"
                },
                {
                  "at": "5980e5c6b71036806b3bf54101eb1d6c0f50f19c",
                  "status": "unaffected"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV40": [
      {
        "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "type": "Secondary",
        "cvssData": {
          "version": "4.0",
          "vectorString": "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/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",
          "baseScore": 8.6,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "attackRequirements": "NONE",
          "privilegesRequired": "NONE",
          "userInteraction": "ACTIVE",
          "vulnConfidentialityImpact": "HIGH",
          "vulnIntegrityImpact": "HIGH",
          "vulnAvailabilityImpact": "HIGH",
          "subConfidentialityImpact": "NONE",
          "subIntegrityImpact": "NONE",
          "subAvailabilityImpact": "NONE",
          "exploitMaturity": "NOT_DEFINED",
          "confidentialityRequirement": "NOT_DEFINED",
          "integrityRequirement": "NOT_DEFINED",
          "availabilityRequirement": "NOT_DEFINED",
          "modifiedAttackVector": "NOT_DEFINED",
          "modifiedAttackComplexity": "NOT_DEFINED",
          "modifiedAttackRequirements": "NOT_DEFINED",
          "modifiedPrivilegesRequired": "NOT_DEFINED",
          "modifiedUserInteraction": "NOT_DEFINED",
          "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
          "modifiedVulnIntegrityImpact": "NOT_DEFINED",
          "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
          "modifiedSubConfidentialityImpact": "NOT_DEFINED",
          "modifiedSubIntegrityImpact": "NOT_DEFINED",
          "modifiedSubAvailabilityImpact": "NOT_DEFINED",
          "Safety": "NOT_DEFINED",
          "Automatable": "NOT_DEFINED",
          "Recovery": "NOT_DEFINED",
          "valueDensity": "NOT_DEFINED",
          "vulnerabilityResponseEffort": "NOT_DEFINED",
          "providerUrgency": "NOT_DEFINED"
        }
      }
    ],
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Primary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
          "baseScore": 8.8,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "REQUIRED",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 2.8,
        "impactScore": 5.9
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-08-06T13:08:06.869367Z",
          "id": "CVE-2026-66298",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-346"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:livebook:livebook:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "0.5.0",
              "versionEndExcluding": "0.18.7",
              "matchCriteriaId": "70CC0371-388A-4C6F-AFEA-EB10A9DF5782"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:livebook:livebook:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "0.19.0",
              "versionEndExcluding": "0.19.9",
              "matchCriteriaId": "7B4998A3-46BF-4E69-8642-1156BB3E7480"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://cna.erlef.org/cves/CVE-2026-66298.html",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "tags": [
        "Vendor Advisory"
      ]
    },
    {
      "url": "https://github.com/livebook-dev/livebook/commit/296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://github.com/livebook-dev/livebook/commit/5980e5c6b71036806b3bf54101eb1d6c0f50f19c",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://github.com/livebook-dev/livebook/commit/a552ce8f99ad348ea37061394dc950a0cebdb33e",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://github.com/livebook-dev/livebook/security/advisories/GHSA-68c2-prqg-x62g",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "tags": [
        "Patch",
        "Vendor Advisory"
      ]
    },
    {
      "url": "https://osv.dev/vulnerability/EEF-CVE-2026-66298",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "tags": [
        "Third Party Advisory"
      ]
    }
  ]
}