High

Langflow Missing Authentication on Critical API Endpoints

  • Disclosed: 02.01.2026
  • Updated: 11.10.2026 14:18

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)

    python
    @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)

    python
    @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)

    python
    @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:

python
@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:

bash
# 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:

python
@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
<img width="1908" height="1029" alt="25-090901" src="https://github.com/user-attachments/assets/44bd03b4-6ada-45b7-b81b-9cb83747172b" />

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) langflow < 1.7.1 1.7.1
Python (PyPI) langflow-base < 0.7.1 0.7.1

References

CVSS score -
CVSS vector
CVSS: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
Weakness (CWE)
CWE-306
Platform
Python (PyPI)
Package
langflow, langflow-base
Disclosed
02.01.2026
Updated
11.10.2026 14:18

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-1524 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-c5cp-vx83-jhqx - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-2571 - PyPA Advisory Database; CC BY 4.0

Vulnerability history: langflow

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (42) in the archive
Total entries
42
First → latest
06.2024 10.2026
Without a fix
7
Exploited in attacks
5

Severity breakdown

  • Critical 15
  • High 17
  • Medium 7
  • Low 3

Disclosures per year

  1. 2024: 4
  2. 2025: 5
  3. 2026: 33
Severity:
  1. Critical · 9.1 CVE-2026-9205 < 1.10.1 1.10.1
  2. Critical · 9.8 CVE-2026-8505 >= 1.7.0, < 1.9.1 1.9.1
  3. High · 8.8 CVE-2026-7700 >= 1.3.0, < 1.10.3 1.10.3
  4. Critical · 9.6 CVE-2026-48519 < 1.9.2 1.9.2
  5. Critical · 9.6 CVE-2026-42048 < 1.9.0 1.9.0
  6. High · 7.5 CVE-2026-33484 >= 1.0.0, < 1.9.0 1.9.0
  7. Critical · 9.9 CVE-2026-33309 >= 1.2.0, < 1.9.0 1.9.0
  8. Critical · 9.8 Exploited in attacks CVE-2026-33017 < 1.9.0 1.9.0
  9. Critical · 9.8 CVE-2026-27966 <= 1.8.0rc2 no fix
  10. High Exploited in attacks CVE-2026-0770 <= 1.7.3 no fix
  11. Langflow Missing Authentication on Critical API Endpoints this entry
    High CVE-2026-21445 < 1.7.1 1.7.1
  12. High · 7.7 CVE-2025-68477 < 1.7.1 1.7.1
  13. High · 7.1 CVE-2025-68478 < 1.7.1 1.7.1
  14. Critical Exploited in attacks CVE-2025-3248 < 1.3.0 1.3.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.