Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-58766

CVE-2025-58766: Dyad AI App Builder RCE Vulnerability

CVE-2025-58766 is a remote code execution flaw in Dyad AI app builder that enables attackers to execute arbitrary code and bypass Docker protections. This article covers technical details, affected versions, impact, and mitigation.

Published: March 31, 2026

CVE-2025-58766 Overview

A critical code injection vulnerability has been discovered in Dyad, a local AI app builder. This vulnerability affects Dyad v0.19.0 and earlier versions, allowing attackers to execute arbitrary code on users' systems. The vulnerability specifically targets the application's preview window functionality and can bypass Docker container protections that are intended to sandbox user-generated content.

An attacker can craft malicious web content that automatically executes when the preview loads. This malicious content can break out of the application's security boundaries and gain full control of the underlying system. The vulnerability has been classified under CWE-94 (Improper Control of Generation of Code / Code Injection).

Critical Impact

Attackers can achieve arbitrary code execution by exploiting the preview window functionality, bypassing Docker container protections and gaining full system control.

Affected Products

  • Dyad v0.19.0 and earlier versions
  • Dyad preview window functionality
  • Systems running Dyad without Docker sandbox protection

Discovery Timeline

  • 2025-09-17 - CVE-2025-58766 published to NVD
  • 2025-09-18 - Last updated in NVD database

Technical Details for CVE-2025-58766

Vulnerability Analysis

The vulnerability resides in Dyad's preview iframe implementation, which lacked proper sandboxing restrictions. The preview window functionality, designed to render user-generated AI application previews, did not implement adequate security boundaries. This allowed crafted web content to escape the intended isolation and execute arbitrary code on the host system.

Additionally, the application's Markdown parser failed to properly filter <dyad-command> tags from generated text output, potentially allowing command injection through AI-generated content that users might unknowingly render in the application.

Root Cause

The root cause of this vulnerability is the absence of the sandbox attribute on the iframe element used for preview rendering in src/components/preview_panel/PreviewIframe.tsx. Without sandbox restrictions, the iframe content inherits full privileges from the parent application context, enabling code execution beyond the intended boundaries.

A secondary contributing factor was the incomplete tag filtering in the Markdown parser (src/components/chat/DyadMarkdownParser.tsx), which did not include dyad-command in the list of filtered custom tags.

Attack Vector

The attack is network-based and requires user interaction—specifically, a user must load malicious content into the preview window. An attacker could craft specially designed web content or AI prompts that, when rendered in the preview panel, execute arbitrary JavaScript with elevated privileges. Since the preview iframe lacked sandboxing, this JavaScript could interact with Node.js APIs exposed by the Electron framework, leading to full system compromise.

text
           </div>
         ) : (
           <iframe
+            sandbox="allow-same-origin allow-scripts allow-forms allow-popups allow-modals allow-orientation-lock allow-pointer-lock allow-presentation allow-downloads"
             data-testid="preview-iframe-element"
             onLoad={() => {
               setErrorMessage(undefined);

Source: GitHub Commit 1c0255a

The patch adds a comprehensive sandbox attribute to the iframe, restricting its capabilities while still allowing necessary functionality for legitimate preview operations.

text
     "dyad-edit",
     "dyad-codebase-context",
     "think",
+    "dyad-command",
   ];
 
   let processedContent = content;

Source: GitHub Commit ebcf89e

This secondary patch adds dyad-command to the filtered tags list, preventing command injection through the Markdown parser.

Detection Methods for CVE-2025-58766

Indicators of Compromise

  • Unexpected process spawns originating from the Dyad application process
  • Unusual network connections initiated by preview iframe contexts
  • System command execution traces linked to Electron renderer processes
  • Presence of <dyad-command> tags in rendered AI output logs

Detection Strategies

  • Monitor for JavaScript execution attempting to access Node.js APIs from iframe contexts
  • Implement endpoint detection rules for Electron applications spawning shell processes
  • Analyze Dyad application logs for malformed or suspicious preview content
  • Track file system modifications initiated by the Dyad process outside expected directories

Monitoring Recommendations

  • Deploy application behavior monitoring on systems running Dyad
  • Enable verbose logging for the Dyad application preview functionality
  • Configure alerts for privilege escalation attempts from containerized or sandboxed contexts
  • Monitor Docker container escape attempts if using containerized deployments

How to Mitigate CVE-2025-58766

Immediate Actions Required

  • Upgrade Dyad to version v0.20.0 or later immediately
  • Review any AI-generated content rendered prior to patching for suspicious <dyad-command> tags
  • Audit systems running affected Dyad versions for signs of compromise
  • Temporarily disable preview functionality if immediate upgrade is not possible

Patch Information

The vulnerability has been fully addressed in Dyad v0.20.0 and later versions. The fix implements proper iframe sandboxing with restricted permissions and adds filtering for dyad-command tags in the Markdown parser. Users should update to the latest version available from the official Dyad repository.

For detailed patch information, refer to the GitHub Security Advisory GHSA-7fxm-c5xx-7vpq.

Workarounds

  • Avoid loading untrusted or externally-sourced content in the preview panel until upgraded
  • Run Dyad in an isolated environment or virtual machine to limit potential impact
  • Implement network segmentation to restrict outbound connections from systems running vulnerable versions
  • Disable JavaScript execution in preview contexts if application configuration permits
bash
# Verify Dyad version to confirm patched status
dyad --version
# Expected output: v0.20.0 or higher

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDyad

  • SeverityCRITICAL

  • CVSS Score9.0

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory GHSA-7fxm-c5xx-7vpq
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English