CVE-2026-21445
JSON

8.8high

Langflow Missing Authentication on Critical API Endpoints

Severity
8.8high CVSS:4.0 by GitHub_M
Exploit likelihood
33.3% (higher than 98% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-c5cp-vx83-jhqxPYSEC-2026-1524PYSEC-2026-2571

Description

Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to version 1.7.0.dev45, multiple critical API endpoints in Langflow are missing authentication controls. The issue allows any unauthenticated user to access sensitive user conversation data, transaction histories, and perform destructive operations including message deletion. This affects endpoints handling personal data and system operations that should require proper authorization. Version 1.7.0.dev45 contains a patch.

Affected

Product or packageVersionsReported by
langflow-ai langflow< 1.7.0.dev45CVE List
langflow-base (PyPI)before 0.7.1GitHub Advisory Database, PyPA Advisory Database
langflow (PyPI)before 1.7.1GitHub Advisory Database, PyPA Advisory Database
langflow langflowbefore 1.7.1NVD

All scores

GitHub_M8.8high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P

Classification

CWE-306

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to version 1.7.0.dev45, multiple critical API endpoints in Langflow are missing authentication controls. The issue allows any unauthenticated user to access sensitive user conversation data, transaction histories, and perform destructive operations including message deletion. This affects endpoints handling personal data and system operations that should require proper authorization. Version 1.7.0.dev45 contains a patch.

GitHub Advisory Database
Summary

Multiple critical API endpoints in Langflow are missing authentication controls, allowing any unauthenticated user to access sensitive user conversation data, transaction histories, and perform destructive operations including message deletion. This affects endpoints handling personal data and system operations that should require proper authorization.

Details

The vulnerability exists in three API endpoints within src/backend/base/langflow/api/v1/monitor.py that are missing the required dependencies=[Depends(get_current_active_user)] authentication dependency:

Affected Endpoints:

  1. GET /api/v1/monitor/messages (Line 61)

    @router.get("/messages")  # ❌ Missing authentication
    async def get_messages(
        session: DbSession,
        flow_id: Annotated[UUID | None, Query()] = None,
        session_id: Annotated[str | None, Query()] = None,
        # ... other parameters
    ) -> list[MessageResponse]:
    
  2. GET /api/v1/monitor/transactions (Line 183)

    @router.get("/transactions")  # ❌ Missing authentication
    async def get_transactions(
        flow_id: Annotated[UUID, Query()],
        session: DbSession,
        params: Annotated[Params | None, Depends(custom_params)],
    ) -> Page[TransactionTable]:
    
  3. DELETE /api/v1/monitor/messages/session/{session_id} (Line 165)

    @router.delete("/messages/session/{session_id}", status_code=204)  # ❌ Missing authentication
    async def delete_messages_session(
        session_id: str,
        session: DbSession,
    ):
    

Inconsistency Evidence: Other endpoints in the same file properly implement authentication:

@router.get("/messages/sessions", dependencies=[Depends(get_current_active_user)])  # ✅ Properly secured
@router.delete("/messages", status_code=204, dependencies=[Depends(get_current_active_user)])  # ✅ Properly secured
PoC

Complete reproduction steps to demonstrate the vulnerability:

Prerequisites:

  1. Start a Langflow server instance
  2. Ensure no authentication headers or API keys are provided

Reproduction Commands:

# 1. Access all user conversations without authentication
curl http://localhost:7860/api/v1/monitor/messages

# 2. Access transaction history without authentication
curl "http://localhost:7860/api/v1/monitor/transactions?flow_id=00000000-0000-0000-0000-000000000000"

# 3. Delete user messages by session without authentication
curl -X DELETE http://localhost:7860/api/v1/monitor/messages/session/00000000-0000-0000-0000-000000000000

Expected vs Actual Behavior:

  • Expected: All requests should return 401 Unauthorized
  • Actual: All requests return successful responses with sensitive data or perform destructive operations
Impact

Vulnerability Type: Broken Authentication and Authorization (OWASP Top 10 - A01:2021)

Severity: High

Who is Impacted:

  • All Langflow users: Personal conversation data exposed to unauthorized access
  • System administrators: Transaction logs disclosed

Specific Impacts:

  1. Data Breach: Unauthorized access to user conversations containing potentially sensitive personal information
  2. Privacy Violation: Transaction histories and user activity patterns exposed without consent
  3. Data Destruction: Malicious actors can delete user conversation histories without authorization
  4. Compliance Risk: Potential violations of data protection regulations (GDPR, CCPA, etc.)
  5. System Intelligence: Attackers can gather information about system usage patterns and user behavior

Attack Scenarios:

  • Malicious users accessing proprietary conversation data
  • Malicious users deleting other users' conversation histories
  • Automated scraping of all user conversations for data harvesting
  • Reconnaissance attacks to understand system architecture and usage patterns

Recommended Fix: Add authentication dependencies to all affected endpoints:

@router.get("/messages", dependencies=[Depends(get_current_active_user)])
@router.get("/transactions", dependencies=[Depends(get_current_active_user)])
@router.delete("/messages/session/{session_id}", dependencies=[Depends(get_current_active_user)])

Environment:

  • Langflow Version: Current main branch
  • Affected Components: API v1 monitoring endpoints
  • Authentication System: FastAPI dependency injection with get_current_active_user
25-090901
NVD (es)

Langflow es una herramienta para construir y desplegar agentes y flujos de trabajo impulsados por IA. Antes de la versión 1.7.0.dev45, múltiples puntos finales críticos de la API en Langflow carecen de controles de autenticación. El problema permite a cualquier usuario no autenticado acceder a datos sensibles de conversaciones de usuarios, historiales de transacciones y realizar operaciones destructivas, incluida la eliminación de mensajes. Esto afecta a los puntos finales que manejan datos personales y operaciones del sistema que deberían requerir una autorización adecuada. La versión 1.7.0.dev45 contiene un parche.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-21445 changed 2026-02-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-c5cp-vx83-jhqx changed 2026-07-13CC-BY-4.0
NVDCVE-2026-21445 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1524 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-2571 changed 2026-07-13CC-BY-4.0