NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Langflow

CVE-2026-21445: Langflow Missing Authentication on Critical API Endpoints

highCVSS 4.0 8.8GHSA-c5cp-vx83-jhqx

Three Langflow monitor API endpoints need no login: GET /api/v1/monitor/messages, GET /api/v1/monitor/transactions and DELETE /api/v1/monitor/messages/session/{session_id}. Anyone who can reach the server can read stored conversations and transaction logs, or delete a session's messages. Fixed in langflow 1.7.1 and langflow-base 0.7.1.

Published Jan 2, 2026 · Updated Jan 5, 2026 · Analysis Nov 1, 2026

What an attacker can do

In src/backend/base/langflow/api/v1/monitor.py, three route handlers lack the dependencies=[Depends(get_current_active_user)] check that sibling routes such as /messages/sessions and DELETE /messages carry. FastAPI therefore serves them to anonymous callers.

An attacker with network access to the Langflow port needs no account, key or user interaction. A plain curl to /api/v1/monitor/messages returns stored chat messages. The transactions route returns a flow's transaction history when given a flow_id. The delete route removes all messages of a session.

Langflow builds AI agent flows, so the stored messages often hold prompts, user data and tool output that users did not mean to share. The leak can include secrets pasted into chats. The delete route lets an attacker erase conversation records, which also removes evidence. The CVSS rates confidentiality and integrity high and notes a public proof of concept. This is a data exposure and tampering bug. It does not by itself give code execution.

Who is affected

pip package langflow up to 1.7.0.dev44, and langflow-base up to 0.6.9. Any instance exposed beyond localhost is at risk, whether or not you enabled login for the UI, because the routes skip the check.

Check your install:

pip show langflow langflow-base

To test a running server, request /api/v1/monitor/messages without credentials. A 200 response with data means it is exposed.

langflow-base

Ecosystem
PyPI
Affected
<= 0.6.9
Fixed in
0.7.1
Check
pip show langflow-base

langflow

Ecosystem
PyPI
Affected
<= 1.7.0.dev44
Fixed in
1.7.1
Check
pip show langflow

How to fix it

Upgrade to langflow 1.7.1 or langflow-base 0.7.1:

pip install --upgrade "langflow>=1.7.1"

The fix adds the get_current_active_user dependency to the three routes. The release notes list only the version bump, so confirm with the request test above. Until you upgrade, keep Langflow off the public internet or put it behind an authenticating reverse proxy or VPN. Review stored conversations for sensitive data that may have been exposed.

How to tell if you were hit

Check web server and reverse-proxy logs for requests to /api/v1/monitor/messages, /api/v1/monitor/transactions and /api/v1/monitor/messages/session/ that carry no Authorization header or API key, especially from outside your network. A DELETE on the session route is the most telling. Missing message history for a session also suggests a deletion. If agents run flows on your machines, Beam's recorded MCP tool calls and shell commands show what those agents did, but they will not show these requests.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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]: ``
  1. 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]: ``
  1. 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:

@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

Credited to kj84park, juh0ng.

Questions

Do I need to be logged in to exploit CVE-2026-21445?

No. The three monitor routes had no authentication dependency, so an anonymous HTTP request works.

Which Langflow version fixes it?

langflow 1.7.1 and langflow-base 0.7.1. The fix adds the get_current_active_user dependency to the affected routes.

Can it run code on my server?

The advisory describes only reading messages and transactions and deleting session messages. It reports no code execution.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Langflow vulnerabilities

All Langflow entries