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:
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]: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]: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:
- Start a Langflow server instance
- 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:
- Data Breach: Unauthorized access to user conversations containing potentially sensitive personal information
- Privacy Violation: Transaction histories and user activity patterns exposed without consent
- Data Destruction: Malicious actors can delete user conversation histories without authorization
- Compliance Risk: Potential violations of data protection regulations (GDPR, CCPA, etc.)
- 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
A critical operation is accessible without requiring any authentication. Typical impact: any user can invoke the privileged function.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Remediation advice
langflow-base to 0.7.1 or later; langflow to 1.7.1 or later
Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.
Frequently Asked Questions
- What is CVE-2026-21445? CVE-2026-21445 is a high-severity missing authentication for critical function vulnerability in langflow-base (pip), affecting versions <= 0.6.9. It is fixed in 0.7.1, 1.7.1. A critical operation is accessible without requiring any authentication.
- Which packages are affected by CVE-2026-21445?
langflow-base(pip) (versions <= 0.6.9)langflow(pip) (versions <= 1.7.0.dev44)
- Is there a fix for CVE-2026-21445? Yes. CVE-2026-21445 is fixed in 0.7.1, 1.7.1. Upgrade to this version or later.
- Is CVE-2026-21445 exploitable, and should I be worried? Whether CVE-2026-21445 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether CVE-2026-21445 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix CVE-2026-21445?
- Upgrade
langflow-baseto 0.7.1 or later - Upgrade
langflowto 1.7.1 or later
- Upgrade