CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-61439

CVE-2026-61439: Prompt Injection Defense Bypass in PraisonAI InjectionDefense Engine

Alon Barad
Alon Barad
Software Engineer

Oct 7, 2026·7 min read·31 visits

Executive Summary (TL;DR)

PraisonAI versions before 4.6.78 contain an insecure default configuration in the InjectionDefense component, allowing high-severity prompt injections to bypass active blocking controls.

This report provides a comprehensive technical analysis of CVE-2026-61439 (GHSA-fj8f-m44g-c479), a prompt injection defense bypass vulnerability in the PraisonAI multi-agent framework. In versions prior to 4.6.78, the InjectionDefense scanner threshold defaulted to CRITICAL. This allowed single-vector prompt injections classified as HIGH severity (e.g., direct instruction overrides or financial manipulations) to pass through unblocked, enabling attackers to extract system prompts and execute unauthorized agent tools.

Vulnerability Overview

PraisonAI is an open-source, multi-agent framework designed to orchestrate autonomous Large Language Model (LLM) agents. In modern LLM applications, user inputs often interact directly with the underlying models, creating a substantial attack surface. To protect these agents from malicious user prompts, PraisonAI implements a dedicated security module known as InjectionDefense. This component is designed to inspect incoming text, evaluate threats across multiple heuristics, and block inputs that present security risks.

In versions of PraisonAI prior to 4.6.78, this protection mechanism was compromised by an insecure default configuration. While the InjectionDefense engine successfully scanned incoming text and classified security risks, its blocking mechanism was configured to trigger only on the highest threat tier. Specifically, the default threshold was set to ThreatLevel.CRITICAL, which meant that highly dangerous, high-severity prompt injections were allowed to reach the downstream LLM.

This vulnerability is classified as CWE-1188: Initialization of a Resource with an Insecure Default. Because the default behavior favored permissiveness over security, standard single-vector prompt injections easily bypassed the defense mechanism. This allowed attackers to interact directly with the LLM agents, overriding system instructions and exploiting integrated tools.

Root Cause Analysis

The root cause of CVE-2026-61439 resides in the threat calculation and decision logic of the InjectionDefense scanner in src/praisonai/praisonai/security/injection.py. The framework's defense engine executes several independent heuristic evaluations on each input. These heuristics check for indicators of prompt injection, such as instruction overrides, system role assumption, or data extraction patterns. If any heuristic is triggered, the engine calculates an overall threat level based on the number and severity of the triggered rules.

The scanner defines a hierarchical structure of risk levels, culminating in ThreatLevel.HIGH and ThreatLevel.CRITICAL. A ThreatLevel.HIGH classification is assigned to inputs that trigger a single, highly focused prompt injection vector. To reach the ThreatLevel.CRITICAL status, the incoming payload must typically trigger three or more independent detection heuristics simultaneously. This design assumption represents a critical flaw, as effective, highly focused prompt injection attacks rarely require or trigger multiple unrelated heuristics.

Because the default block_threshold was hardcoded to ThreatLevel.CRITICAL, the engine evaluated HIGH severity threats as non-blocking. The logical comparison (level >= ThreatLevel.CRITICAL) returned False for any single-vector attack classified as HIGH. As a result, the engine logged the high-threat warning but permitted the unblocked payload to continue through the pipeline, rendering the entire defense layer ineffective against targeted attacks.

Code Analysis

The vulnerable code path is located within the scan_text function and the InjectionDefense class constructor. Prior to the patch, the scan_text function calculated whether an input should be blocked using an overly restrictive condition. Since the threshold was hardcoded to require a critical level, the framework failed to safeguard the downstream model against common single-pattern attacks.

Let us examine the vulnerable implementation of the scanning logic and constructor initialization in src/praisonai/praisonai/security/injection.py compared with the remediated codebase:

# VULNERABLE CODE (Versions < 4.6.78)
def scan_text(text: str, source: str = "external") -> ScanResult:
    # ... evaluation logic ...
    # Threat level is calculated based on triggered checks
    level = ThreatLevel.HIGH  # Triggered by standard prompt injection
 
    # Insecure evaluation condition: only blocks CRITICAL (3+ checks)
    blocked = (level >= ThreatLevel.CRITICAL) and not is_trusted
 
class InjectionDefense:
    def __init__(
        self,
        extra_patterns: Optional[List[str]] = None,
        block_threshold: ThreatLevel = ThreatLevel.CRITICAL, # Insecure default
        trusted_sources: Optional[List[str]] = None,
    ):
        self.block_threshold = block_threshold

To resolve this defect, the maintainers modified the baseline threshold in commit 393de394087e3badc79acfec490323bcc99638bd. The condition was updated to use ThreatLevel.HIGH, ensuring single-vector attacks are intercepted.

# PATCHED CODE (Version 4.6.78+)
def scan_text(text: str, source: str = "external") -> ScanResult:
    # ... evaluation logic ...
    level = ThreatLevel.HIGH
 
    # Patched evaluation condition: blocks both HIGH and CRITICAL threats
    blocked = (level >= ThreatLevel.HIGH) and not is_trusted
 
class InjectionDefense:
    def __init__(
        self,
        extra_patterns: Optional[List[str]] = None,
        block_threshold: ThreatLevel = ThreatLevel.HIGH, # Secured default
        trusted_sources: Optional[List[str]] = None,
    ):
        self.block_threshold = block_threshold

The remediation is structurally complete and eliminates the logical bypass for the default configuration. However, the framework's security still relies on the quality of its underlying regular expressions and pattern matchers. Security teams should recognize that while this patch enforces the intended security policy, it does not mitigate evasion techniques that bypass the heuristic signatures themselves.

Exploitation Methodology

Exploiting this vulnerability does not require complex binary payload development or memory corruption techniques. Instead, an attacker leverages the inherent parser logic of the underlying Large Language Model by submitting a crafted natural language prompt. Because the PraisonAI defense module evaluates threats on a per-rule basis, a single, clear command override only triggers a high-severity classification, bypassing the critical block threshold.

To execute the attack, an adversary must identify an input field, API endpoint, or chat interface routed to a vulnerable PraisonAI agent. The attacker then structures a prompt designed to override the agent's instructions, such as asking it to extract confidential data or execute administrative commands. Since the input matches only one specific heuristic category (such as instruction override), the framework permits the text to pass through, and the downstream LLM processes the payload as valid instructions.

The physical impact of this attack depends on the capabilities and integrations of the active agent. If the agent is equipped with file-system access, database connectivity, or external APIs, the attacker can hijack these tools. For instance, the attacker could command the agent to read local files, execute unauthorized database queries, or make outbound requests to malicious domains.

Impact Assessment

The impact of CVE-2026-61439 is assessed with a CVSS v3.1 base score of 7.5, reflecting high confidentiality implications. In LLM-driven applications, system instructions and contextual data often contain intellectual property, proprietary logic, or sensitive API keys. When an attacker successfully bypasses the input defense layer, they gain the ability to extract these details directly from the model's active context.

Furthermore, the vulnerability introduces potential integrity risks if the compromised agents are integrated with external tools. In multi-agent frameworks, agents are frequently granted capabilities to perform actions, such as sending emails, updating records, or executing code. By overriding system prompts, an unauthorized user can command the agent to execute these integrated actions, bypassing traditional access control layers.

From an operational perspective, the vulnerability is highly exploitable because the attack vector is network-based, requires no privileges, and demands zero user interaction. Organizations utilizing vulnerable versions of PraisonAI face immediate exposure if their agent interfaces are exposed to untrusted users or public networks. Although the security scanner successfully logs these high-severity events, the lack of active enforcement leaves the application vulnerable to automated exploitation.

Remediation and Mitigation

The definitive remediation for CVE-2026-61439 is upgrading the PraisonAI framework to version 4.6.78 or higher. This upgrade shifts the default threshold of the InjectionDefense class to ThreatLevel.HIGH, ensuring that single-vector prompt injections are blocked automatically. Security teams should deploy this update across all environments, particularly where agents interact with external inputs.

For deployment environments where an immediate package upgrade is not feasible, organizations can implement a programmatic workaround. By explicitly setting the block_threshold parameter when instantiating the InjectionDefense component, developers can override the insecure default. The following code snippet demonstrates how to apply this mitigation manually:

from praisonai.security.injection import InjectionDefense, ThreatLevel
 
# Programmatic mitigation: Override default block threshold to HIGH
defense = InjectionDefense(block_threshold=ThreatLevel.HIGH)

In addition to configuring the blocking threshold, organizations should establish robust detection and monitoring mechanisms. Security teams should configure alerting systems to parse application logs for warning indicators emitted by src/praisonai/praisonai/security/injection.py. Any warning indicating a ThreatLevel.HIGH detection that is not accompanied by a corresponding block action should be flagged as a high-priority security event.

Official Patches

MervinPraisonFix Commit (Git Repository Diff)

Fix Analysis (1)

Technical Appendix

CVSS Score
7.5/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Probability
0.43%
Top 100% most exploited

Affected Systems

PraisonAI FrameworkPraisonAI Agents Module

Affected Versions Detail

Product
Affected Versions
Fixed Version
PraisonAI
MervinPraison
< 4.6.784.6.78
AttributeDetail
CWE IDCWE-1188
Attack VectorNetwork (AV:N)
CVSS v3.1 Score7.5 (High)
EPSS Score / Percentile0.00432 (0.43% probability) / 35.46th percentile
ImpactConfidentiality Breach / System Prompt Extraction
Exploit StatusProof-of-Concept / Logical Bypass
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1562Impair Defenses
Defense Evasion
T1190Exploit Public-Facing Application
Initial Access
CWE-1188
Initialization of a Resource with an Insecure Default

The application configures a security resource (the InjectionDefense scanner threshold) with a default value that is too permissive.

Vulnerability Timeline

Vulnerability published by VulnCheck, official CVE-2026-61439 and GHSA-fj8f-m44g-c479 records created.
2026-07-11
Initial NVD and CVE.org records populated.
2026-07-11
Updated/Last Modified date recorded for CVE-2026-61439 records.
2026-07-14
Patches applied and PraisonAI version 4.6.78 released, addressing the insecure default.
2026-07-20

References & Sources

  • [1]GitHub Security Advisory GHSA-fj8f-m44g-c479
  • [2]VulnCheck Security Advisory
  • [3]Fix Commit (Git Repository Diff)
  • [4]NVD Vulnerability Detail
  • [5]Official CVE.org Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 19 hours ago•CVE-2026-58254
6.5

CVE-2026-58254: Authorization Bypass in NATS Server Message Tracing for Leaf Node Connections

NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.

Alon Barad
Alon Barad
4 views•10 min read
•about 20 hours ago•CVE-2026-63341
7.5

CVE-2026-63341: Unauthenticated Denial of Service via Unbounded Topic Depth in Aedes MQTT Broker

CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.

Alon Barad
Alon Barad
8 views•12 min read
•about 21 hours ago•CVE-2026-61725
6.1

CVE-2026-61725: Path Traversal and Arbitrary File Overwrite in sevenz-rust2

CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.

Alon Barad
Alon Barad
5 views•12 min read
•about 22 hours ago•CVE-2026-77309
8.8

CVE-2026-77309: Unauthenticated Remote Code Execution in NASA-AMMOS AIT-GUI via Incomplete File Cleanup and Path Traversal

CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.

Amit Schendel
Amit Schendel
10 views•10 min read
•about 23 hours ago•CVE-2026-77332
2.3

CVE-2026-77332: Surfaced-Memory Envelope Injection and Stored Prompt Injection in memtomem-stm

A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.

Alon Barad
Alon Barad
12 views•10 min read
•1 day ago•CVE-2026-77331
2.0

CVE-2026-77331: Race Condition and Session State Corruption in memtomem-stm

CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.

Amit Schendel
Amit Schendel
6 views•9 min read