CVE-2026-66298: CWE-346 Origin Validation Error in livebook-dev livebook
CVE-2026-66298 is an origin validation error vulnerability in livebook-dev livebook that allows untrusted JavaScript in notebook outputs to trigger session-wide keyboard shortcuts. This can cause forced evaluation of all notebook cells and runtime restarts without user consent. The vulnerability arises because keydown events synthesized by untrusted scripts in a sandboxed iframe are forwarded and re-dispatched without proper validation, allowing malicious code execution. Affected versions include livebook from 0.5.0 before 0.18.7 and from 0.19.0 before 0.19.9.
AI Analysis
Technical Summary
The vulnerability in livebook-dev livebook involves improper origin validation in the handling of keyboard events. Livebook renders untrusted notebook JavaScript inside a sandboxed cross-origin iframe to isolate it. However, the trusted iframe shell forwards all keydown events to the parent page without verifying if the event is genuinely user-generated (Event.isTrusted). The parent page then re-dispatches these events without validation, allowing untrusted scripts to simulate keyboard shortcuts. Some shortcuts trigger immediate actions without confirmation, such as full evaluation of all notebook cells and runtime restart, which can lead to arbitrary code execution. This affects livebook versions from 0.5.0 up to but not including 0.18.7, and from 0.19.0 up to but not including 0.19.9.
Potential Impact
An attacker can cause a user's livebook session to execute all notebook cells automatically and restart the runtime without user consent by injecting malicious JavaScript in notebook outputs. This can lead to execution of arbitrary Elixir code on the user's runtime environment. Additionally, because outputs are mirrored to all connected clients, collaborators can be affected simultaneously. The forced full evaluation and runtime restart can disrupt workflows and potentially execute harmful code.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid opening notebooks from untrusted sources or containing untrusted JavaScript outputs. Monitoring vendor channels for updates and applying patches promptly once released is recommended.
CVE-2026-66298: CWE-346 Origin Validation Error in livebook-dev livebook
Description
CVE-2026-66298 is an origin validation error vulnerability in livebook-dev livebook that allows untrusted JavaScript in notebook outputs to trigger session-wide keyboard shortcuts. This can cause forced evaluation of all notebook cells and runtime restarts without user consent. The vulnerability arises because keydown events synthesized by untrusted scripts in a sandboxed iframe are forwarded and re-dispatched without proper validation, allowing malicious code execution. Affected versions include livebook from 0.5.0 before 0.18.7 and from 0.19.0 before 0.19.9.
CVSS v4.0
Score 8.6high
Affected software
cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in livebook-dev livebook involves improper origin validation in the handling of keyboard events. Livebook renders untrusted notebook JavaScript inside a sandboxed cross-origin iframe to isolate it. However, the trusted iframe shell forwards all keydown events to the parent page without verifying if the event is genuinely user-generated (Event.isTrusted). The parent page then re-dispatches these events without validation, allowing untrusted scripts to simulate keyboard shortcuts. Some shortcuts trigger immediate actions without confirmation, such as full evaluation of all notebook cells and runtime restart, which can lead to arbitrary code execution. This affects livebook versions from 0.5.0 up to but not including 0.18.7, and from 0.19.0 up to but not including 0.19.9.
Potential Impact
An attacker can cause a user's livebook session to execute all notebook cells automatically and restart the runtime without user consent by injecting malicious JavaScript in notebook outputs. This can lead to execution of arbitrary Elixir code on the user's runtime environment. Additionally, because outputs are mirrored to all connected clients, collaborators can be affected simultaneously. The forced full evaluation and runtime restart can disrupt workflows and potentially execute harmful code.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid opening notebooks from untrusted sources or containing untrusted JavaScript outputs. Monitoring vendor channels for updates and applying patches promptly once released is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-07-24T14:10:01.114Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a739c88bf8831d5396b3016
Added to database: 08/05/2026, 20:26:48 UTC
Last enriched: 08/05/2026, 20:41:38 UTC
Last updated: 08/05/2026, 20:41:38 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.