Skip to main content

CVE-2026-39890

| EUVDEUVD-2026-20638 CRITICAL
Deserialization of Untrusted Data (CWE-502)
2026-04-08 https://github.com/MervinPraison/PraisonAI GHSA-32vr-5gcf-3pw2
9.8
CVSS 3.1 · Vendor: https://github.com/MervinPraison/PraisonAI
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious YAML with js/function tag
  2. Delivery
    Upload via API endpoint
  3. Exploit
    Parse with unsafe js-yaml.load
  4. Execution
    Execute arbitrary JavaScript code
  5. Impact
    Achieve RCE on server

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Remote unauthenticated attacker uploads a malicious YAML agent definition file via the API endpoint. The AgentService.loadAgentFromFile method parses YAML without disabling dangerous tags (!!js/function, !!js/undefined), executing arbitrary JavaScript code on the server.

Impact

Critical RCE via unsafe YAML deserialization. CVSS 9.8 (network-accessible, unauthenticated, no user interaction required) reflects severe blast radius. Unsafe js-yaml.load() parsing malicious !!js/function tags executes arbitrary code. Elevated observed exploitation activity signals active weaponization. Complete server compromise is immediate without authentication barriers.

Exploit ScenarioDerived

Attacker uploads malicious YAML via unprotected API endpoint containing !!js/function tag with shell command (e.g., reverse shell). Server parses file with unsafe schema, triggering JavaScript function evaluation. Code executes with application privileges, achieving RCE. Publicly available exploit code exists (GitHub advisory includes POC).

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 08, 2026

Unsafe YAML deserialization in PraisonAI allows remote code execution through malicious agent definition files. The AgentService.loadAgentFromFile method uses js-yaml.load without safe schema restrictions, permitting dangerous tags like !!js/function that execute arbitrary JavaScript. Unauthenticated attackers can upload crafted YAML files via API endpoints to achieve complete server compromise. Affects PraisonAI prior to v4.5.115. Publicly available exploit code exists via proof-of-concept demonstrating command execution.

RemediationAI

Vendor-released patch: Upgrade to PraisonAI version 4.5.115 or later, available at https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.115. Primary fix replaces yaml.load with safe schema: use yaml.load(fileContent, { schema: JSON_SCHEMA }) or yaml.safeLoad alternative to prevent executable tag parsing. Workaround: Implement strict input validation on agent file uploads, restrict upload privileges to trusted administrators only, and consider disabling dynamic agent loading until patched. Review existing agent definition files for malicious YAML tags. Consult vendor advisory: https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-32vr-5gcf-3pw2

Affected VersionsENISA

PraisonAI < 4.5.115

Affected Packages

pypi praisonai fix: 4.5.115

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Root cause is CWE-502 unsafe deserialization in src/agents/agent.service.ts line 55. The js-yaml library's load function accepts YAML with executable tags when invoked without JSON_SCHEMA or DEFAULT_SAFE_SCHEMA restrictions. Crafted !!js/function tags trigger Node.js child_process execution during parse operations. CVSS vector PR:N confirms unauthenticated exploitation path through file upload handlers.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/MervinPraison/PraisonAI) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (https://github.com/MervinPraison/PraisonAI) · only source for this CVE.

CVSS VectorVendor: https://github.com/MervinPraison/PraisonAI

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Apr 09, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 08, 2026 - 19:17 nvd
CRITICAL 9.8

DescriptionCVE.org

Summary

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.

Details

The vulnerability exists in the YAML deserialization process. The js-yaml library's load function is used without specifying a safe schema (e.g., JSON_SCHEMA or DEFAULT_SAFE_SCHEMA). This enables the parsing of JavaScript functions and other dangerous types. When a malicious YAML file containing a !!js/function tag is parsed, the function is evaluated, leading to arbitrary code execution.

The vulnerable code is located in src/agents/agent.service.ts at line 55.

PoC

An attacker can create a malicious agent YAML file with the following content:

yaml
!!js/function >
  function(){ require('child_process').execSync('touch /tmp/pwned') }

Then, upload this file as an agent definition via the API endpoint that uses AgentService.loadAgentFromFile. When the agent is loaded (either during startup or via an API call that triggers loading), the payload will execute the command touch /tmp/pwned, demonstrating arbitrary code execution.

Impact

This vulnerability allows an unauthenticated attacker (if the API endpoint is unprotected) or an authenticated attacker with the ability to upload agent definitions to execute arbitrary code on the server. This can lead to complete compromise of the server, data theft, or further network penetration.

Recommended Fix

Replace the unsafe load method with a safe alternative. Specifically, use the load method with a safe schema, such as JSON_SCHEMA or DEFAULT_SAFE_SCHEMA. For example:

typescript
import yaml from 'js-yaml';
import { JSON_SCHEMA } from 'js-yaml';

// In the loadAgentFromFile method
const agent = yaml.load(fileContent, { schema: JSON_SCHEMA });

Alternatively, if the application requires only a subset of YAML features, consider using the safeLoad method from an older version (though note it was deprecated). The key is to avoid loading tags that can execute code.

Additionally, validate and sanitize all user input, especially file uploads. Ensure that agent definition files are only uploaded by trusted users and consider storing them in a secure location with proper access controls.

Executive ViewAI

Why It Matters

PraisonAI versions prior to 4.5.115 contain a critical remote code execution vulnerability in YAML deserialization that allows unauthenticated attackers to execute arbitrary code on affected servers by uploading malicious agent definition files. Organizations using PraisonAI for AI agent orchestration face immediate risk of complete server compromise and data breach without urgent remediation.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or require strong authentication for agent file upload endpoints; (2) Implement strict input validation rejecting YAML files containing JavaScript function tags (!!js/function, !!js/object); (3) Run PraisonAI in isolated container with minimal privileges and network access; (4) Monitor upload endpoints and server execution logs for suspicious activity; (5) Consider air-gapping or taking affected systems offline until vendor patch is released.

Threat Intelligence Overview

EPSS Score
0.3%
Top 48% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy