The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2026-39890

CVE-2026-39890: PraisonAI YAML Parsing RCE Vulnerability

CVE-2026-39890 is a remote code execution flaw in PraisonAI's YAML parser that allows attackers to execute arbitrary code via malicious agent files. This article covers technical details, affected versions, and patches.

Published: April 9, 2026

CVE-2026-39890 Overview

CVE-2026-39890 is an insecure deserialization vulnerability in PraisonAI, a multi-agent teams system. Prior to version 4.5.115, the AgentService.loadAgentFromFile method uses the js-yaml library to parse YAML files without disabling dangerous tags (such as !!js/function and !!js/undefined). This allows an attacker to craft a malicious YAML file that, when parsed, executes arbitrary JavaScript code. An attacker can exploit this vulnerability by uploading a malicious agent definition file via the API endpoint, leading to remote code execution (RCE) on the server.

Critical Impact

This vulnerability enables unauthenticated remote code execution through malicious YAML file uploads, allowing attackers to completely compromise server infrastructure running PraisonAI.

Affected Products

  • PraisonAI versions prior to 4.5.115

Discovery Timeline

  • April 8, 2026 - CVE CVE-2026-39890 published to NVD
  • April 9, 2026 - Last updated in NVD database

Technical Details for CVE-2026-39890

Vulnerability Analysis

This vulnerability falls under CWE-502 (Deserialization of Untrusted Data). The core issue stems from unsafe YAML parsing configuration in the AgentService.loadAgentFromFile method. The js-yaml library, when used with default settings, supports JavaScript-specific YAML tags that enable code execution during the parsing process.

When PraisonAI processes agent definition files uploaded through its API, it deserializes YAML content without restricting dangerous tags. This creates a direct pathway for attackers to inject executable JavaScript code into what should be a data-only configuration file.

The vulnerability is particularly severe because it requires no authentication and can be triggered remotely through the application's normal file upload functionality. An attacker simply needs to craft a YAML file containing malicious JavaScript payloads embedded within special YAML tags, then upload it through the agent definition API endpoint.

Root Cause

The root cause is the failure to configure js-yaml with safe parsing options. The js-yaml library includes support for JavaScript-specific YAML tags like !!js/function, !!js/undefined, and !!js/regexp by default. These tags allow YAML documents to contain embedded JavaScript code that gets executed during parsing.

Secure implementations should use yaml.load() with the JSON_SCHEMA or FAILSAFE_SCHEMA option, or use the yaml.safeLoad() function (deprecated in newer versions) to prevent execution of JavaScript tags. The vulnerable code path in PraisonAI did not implement these safeguards.

Attack Vector

The attack is network-based with low complexity and requires no privileges or user interaction. An attacker can exploit this vulnerability through the following attack flow:

  1. The attacker crafts a malicious YAML file containing JavaScript code embedded in dangerous YAML tags such as !!js/function
  2. The attacker uploads this file through the PraisonAI API endpoint that accepts agent definition files
  3. When AgentService.loadAgentFromFile processes the uploaded file, js-yaml parses the YAML content
  4. During parsing, the malicious JavaScript code is instantiated and executed on the server
  5. The attacker achieves remote code execution with the privileges of the PraisonAI application process

The vulnerability can be exploited to execute arbitrary system commands, exfiltrate sensitive data, establish persistent backdoors, or pivot to other systems on the network.

Detection Methods for CVE-2026-39890

Indicators of Compromise

  • Unusual YAML files in agent definition directories containing !!js/function, !!js/undefined, or other JavaScript-specific tags
  • Unexpected child processes spawned by the PraisonAI Node.js process
  • Anomalous network connections originating from the PraisonAI server to external destinations
  • Suspicious entries in application logs showing agent file uploads followed by system-level activity

Detection Strategies

  • Monitor API endpoints for uploads containing YAML files with JavaScript-specific tags using web application firewall (WAF) rules
  • Implement file content scanning for patterns matching !!js/ prefixes in uploaded YAML documents
  • Deploy endpoint detection and response (EDR) solutions to identify anomalous process execution from the PraisonAI application
  • Audit application logs for unusual agent definition file loading activity

Monitoring Recommendations

  • Enable verbose logging on the AgentService component to track all file parsing operations
  • Configure SIEM alerts for process spawning events from the PraisonAI runtime
  • Monitor outbound network traffic from the application server for unexpected connections
  • Implement file integrity monitoring on directories where agent definitions are stored

How to Mitigate CVE-2026-39890

Immediate Actions Required

  • Upgrade PraisonAI to version 4.5.115 or later immediately
  • Review recent agent definition file uploads for malicious YAML content containing JavaScript tags
  • Audit server systems running vulnerable versions for signs of compromise
  • Restrict network access to the agent definition upload API endpoint until patching is complete

Patch Information

This vulnerability is fixed in PraisonAI version 4.5.115. Organizations should upgrade to this version or later as soon as possible. For detailed information about the vulnerability and the fix, refer to the GitHub Security Advisory.

Workarounds

  • Implement input validation at the network perimeter to block YAML files containing !!js/ tags before they reach the application
  • Restrict access to the agent definition upload API to trusted IP addresses only
  • Deploy a reverse proxy with content inspection capabilities to filter malicious YAML payloads
  • Run the PraisonAI service with minimal system privileges to limit the impact of successful exploitation

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPraisonai

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.29%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40287: PraisonAI RCE Vulnerability

  • CVE-2026-40288: PraisonAI YAML Workflow RCE Vulnerability

  • CVE-2026-40156: PraisonAI RCE Vulnerability

  • CVE-2026-40158: PraisonAI Sandbox Bypass RCE 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