FKIE_CVE-2026-66298

Vulnerability from fkie_nvd - Published: 2026-08-05 20:17 - Updated: 2026-11-10 18:17
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. 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.
Impacted products
Vendor Product Version
livebook livebook *
livebook livebook *

{
  "affected": [
    {
      "affectedData": [
        {
          "collectionURL": "https://repo.hex.pm",
          "cpes": [
            "cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "Elixir.LivebookWeb.SessionLive"
          ],
          "packageName": "livebook",
          "packageURL": "pkg:hex/livebook",
          "product": "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"
          ],
          "programRoutines": [
            {
              "name": "\u0027Elixir.LivebookWeb.SessionLive\u0027:handle_event/3"
            }
          ],
          "repo": "https://github.com/livebook-dev/livebook",
          "vendor": "livebook-dev",
          "versions": [
            {
              "lessThan": "0.18.7",
              "status": "affected",
              "version": "0.5.0",
              "versionType": "semver"
            },
            {
              "lessThan": "0.19.9",
              "status": "affected",
              "version": "0.19.0",
              "versionType": "semver"
            }
          ]
        },
        {
          "collectionURL": "https://ghcr.io",
          "cpes": [
            "cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "Elixir.LivebookWeb.SessionLive"
          ],
          "packageName": "livebook-dev/livebook",
          "packageURL": "pkg:oci/livebook?repository_url=ghcr.io%2Flivebook-dev%2Flivebook",
          "product": "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"
          ],
          "programRoutines": [
            {
              "name": "\u0027Elixir.LivebookWeb.SessionLive\u0027:handle_event/3"
            }
          ],
          "vendor": "livebook-dev",
          "versions": [
            {
              "lessThan": "0.18.7",
              "status": "affected",
              "version": "0.5.0",
              "versionType": "other"
            },
            {
              "lessThan": "0.18.7-cuda12",
              "status": "affected",
              "version": "0.5.0-cuda12",
              "versionType": "other"
            },
            {
              "lessThan": "0.19.9",
              "status": "affected",
              "version": "0.19.0",
              "versionType": "other"
            },
            {
              "lessThan": "0.19.9-cuda12",
              "status": "affected",
              "version": "0.19.0-cuda12",
              "versionType": "other"
            }
          ]
        },
        {
          "collectionURL": "https://github.com",
          "cpes": [
            "cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "Elixir.LivebookWeb.SessionLive"
          ],
          "packageName": "livebook-dev/livebook",
          "packageURL": "pkg:github/livebook-dev/livebook",
          "product": "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"
          ],
          "programRoutines": [
            {
              "name": "\u0027Elixir.LivebookWeb.SessionLive\u0027:handle_event/3"
            }
          ],
          "repo": "https://github.com/livebook-dev/livebook",
          "vendor": "livebook-dev",
          "versions": [
            {
              "changes": [
                {
                  "at": "296318ffdfa6e5ed7b18ad8d5a5b2af90f3cd728",
                  "status": "unaffected"
                },
                {
                  "at": "a552ce8f99ad348ea37061394dc950a0cebdb33e",
                  "status": "unaffected"
                },
                {
                  "at": "5980e5c6b71036806b3bf54101eb1d6c0f50f19c",
                  "status": "unaffected"
                }
              ],
              "lessThan": "*",
              "status": "affected",
              "version": "844242ba80a928d0d675416d312a58003cb7771b",
              "versionType": "git"
            }
          ]
        }
      ],
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:a:livebook:livebook:*:*:*:*:*:*:*:*",
              "matchCriteriaId": "70CC0371-388A-4C6F-AFEA-EB10A9DF5782",
              "versionEndExcluding": "0.18.7",
              "versionStartIncluding": "0.5.0",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:livebook:livebook:*:*:*:*:*:*:*:*",
              "matchCriteriaId": "7B4998A3-46BF-4E69-8642-1156BB3E7480",
              "versionEndExcluding": "0.19.9",
              "versionStartIncluding": "0.19.0",
              "vulnerable": true
            }
          ],
          "negate": false,
          "operator": "OR"
        }
      ]
    }
  ],
  "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\u0027s 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\u0027s 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\u0027s 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\u0027s 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\u00f3n de origen en livebook-dev livebook permite que JavaScript de salida de cuaderno no confiable active atajos de teclado de toda la sesi\u00f3n, incluyendo la evaluaci\u00f3n forzada de todas las celdas y el reinicio del tiempo de ejecuci\u00f3n.\n\nLa funci\u00f3n JS-view de Livebook renderiza JavaScript definido en el cuaderno dentro de un iframe aislado y de origen cruzado espec\u00edficamente porque ese JavaScript no es confiable. El shell de iframe confiable en iframe/priv/static/iframe/v5.html reenv\u00eda cada evento keydown disparado en su propia ventana a la p\u00e1gina principal sin consultar Event.isTrusted, por lo que un evento sintetizado por el script no confiable a trav\u00e9s de window.dispatchEvent se reenv\u00eda exactamente como lo har\u00eda una pulsaci\u00f3n de tecla genuina. El rel\u00e9 del lado del padre en assets/js/hooks/js_view.js lo reconstruye y lo vuelve a despachar en la p\u00e1gina en vivo sin validaci\u00f3n 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\u00faa sobre el evento replicado independientemente de c\u00f3mo se produjo.\n\nEl JavaScript de salida aislado puede, por lo tanto, impulsar los atajos de teclado de toda la sesi\u00f3n de Livebook. Dos de ellos llegan a LivebookWeb.SessionLive y se ejecutan inmediatamente sin confirmaci\u00f3n: el atajo para poner en cola la evaluaci\u00f3n completa ejecuta cada celda del cuaderno, y el atajo para reconectar el tiempo de ejecuci\u00f3n lo desconecta y lo vuelve a conectar, descartando el estado en memoria. Un tercer atajo elimina la celda enfocada detr\u00e1s de un cuadro de di\u00e1logo de confirmaci\u00f3n que el usuario puede descartar permanentemente, despu\u00e9s de lo cual tambi\u00e9n se ejecuta silenciosamente.\n\nLa evaluaci\u00f3n completa forzada es la consecuencia significativa, porque hace que el propio c\u00f3digo 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\u00f3n publicada, puede hacer que su c\u00f3digo se ejecute en su tiempo de ejecuci\u00f3n. Livebook tambi\u00e9n 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."
    }
  ],
  "id": "CVE-2026-66298",
  "lastModified": "2026-11-10T18:17:46.937",
  "metrics": {
    "cvssMetricV31": [
      {
        "cvssData": {
          "attackComplexity": "LOW",
          "attackVector": "NETWORK",
          "availabilityImpact": "HIGH",
          "baseScore": 8.8,
          "baseSeverity": "HIGH",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "privilegesRequired": "NONE",
          "scope": "UNCHANGED",
          "userInteraction": "REQUIRED",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
          "version": "3.1"
        },
        "exploitabilityScore": 2.8,
        "impactScore": 5.9,
        "source": "nvd@nist.gov",
        "type": "Primary"
      }
    ],
    "cvssMetricV40": [
      {
        "cvssData": {
          "Automatable": "NOT_DEFINED",
          "Recovery": "NOT_DEFINED",
          "Safety": "NOT_DEFINED",
          "attackComplexity": "LOW",
          "attackRequirements": "NONE",
          "attackVector": "NETWORK",
          "availabilityRequirement": "NOT_DEFINED",
          "baseScore": 8.6,
          "baseSeverity": "HIGH",
          "confidentialityRequirement": "NOT_DEFINED",
          "exploitMaturity": "NOT_DEFINED",
          "integrityRequirement": "NOT_DEFINED",
          "modifiedAttackComplexity": "NOT_DEFINED",
          "modifiedAttackRequirements": "NOT_DEFINED",
          "modifiedAttackVector": "NOT_DEFINED",
          "modifiedPrivilegesRequired": "NOT_DEFINED",
          "modifiedSubAvailabilityImpact": "NOT_DEFINED",
          "modifiedSubConfidentialityImpact": "NOT_DEFINED",
          "modifiedSubIntegrityImpact": "NOT_DEFINED",
          "modifiedUserInteraction": "NOT_DEFINED",
          "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
          "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
          "modifiedVulnIntegrityImpact": "NOT_DEFINED",
          "privilegesRequired": "NONE",
          "providerUrgency": "NOT_DEFINED",
          "subAvailabilityImpact": "NONE",
          "subConfidentialityImpact": "NONE",
          "subIntegrityImpact": "NONE",
          "userInteraction": "ACTIVE",
          "valueDensity": "NOT_DEFINED",
          "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",
          "version": "4.0",
          "vulnAvailabilityImpact": "HIGH",
          "vulnConfidentialityImpact": "HIGH",
          "vulnIntegrityImpact": "HIGH",
          "vulnerabilityResponseEffort": "NOT_DEFINED"
        },
        "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "type": "Secondary"
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "id": "CVE-2026-66298",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "timestamp": "2026-08-06T13:08:06.869367Z",
          "version": "2.0.3"
        }
      }
    ]
  },
  "published": "2026-08-05T20:17:12.203",
  "references": [
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "tags": [
        "Vendor Advisory"
      ],
      "url": "https://cna.erlef.org/cves/CVE-2026-66298.html"
    },
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "tags": [
        "Patch"
      ],
      "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",
      "url": "https://github.com/livebook-dev/livebook/commit/844242ba80a928d0d675416d312a58003cb7771b"
    },
    {
      "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",
        "Vendor Advisory"
      ],
      "url": "https://github.com/livebook-dev/livebook/security/advisories/GHSA-68c2-prqg-x62g"
    },
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "tags": [
        "Third Party Advisory"
      ],
      "url": "https://osv.dev/vulnerability/EEF-CVE-2026-66298"
    }
  ],
  "sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
  "vulnStatus": "Modified",
  "weaknesses": [
    {
      "description": [
        {
          "lang": "en",
          "value": "CWE-346"
        }
      ],
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "type": "Secondary"
    }
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.