CVE-2026-21445 — Vulnerability in langflow — CVE Details
Langflow Missing Authentication on Critical API Endpoints
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.41%). Schedule for your next planned update.
Does your project use an affected langflow version?
Paste your requirements.txt to check it for CVE-2026-21445 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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
Advisory Timeline
- First published January 2, 2026 (328 days ago).
- Last revised July 13, 2026 — 192 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "langflow>=1.7.1"
pip install "langflow-base>=0.7.1"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: PyPI (2).
| Package | Fixed In |
|---|---|
| langflow PyPI · Affected: 0.0.31, 0.0.32, 0.0.33, 0.0.40 (+273 more) | 1.7.1 |
| langflow-base PyPI · Affected: 0.0.13, 0.0.14, 0.0.15, 0.0.16 (+113 more) | 0.7.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-306
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
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
References
- https://github.com/langflow-ai/langflow/security/advisories/GHSA-c5cp-vx83-jhqxWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-21445ADVISORY
- https://github.com/langflow-ai/langflow/commit/3fed9fe1b5658f2c8656dbd73508e113a96e486aWEB
- https://github.com/langflow-ai/langflowPACKAGE
- https://github.com/langflow-ai/langflow/releases/tag/1.7.1WEB
Frequently Asked Questions
- What is CVE-2026-21445?
- Langflow Missing Authentication on Critical API Endpoints. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2026-21445?
- CVE-2026-21445 affects langflow and langflow-base. It has a 2.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-21445 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 84.8% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-55255CRITICAL
- CVE-2026-48519CRITICAL
- CVE-2026-27966CRITICAL
Langflow has Remote Code Execution in CSV Agent
- CVE-2024-48061CRITICAL
Langflow vulnerable to remote code execution
- CVE-2026-0770CRITICAL
Langflow affected by Remote Code Execution via validate_code() exec()
- CVE-2025-3248CRITICAL
Langflow Unauth RCE
- CVE-2026-105697CRITICAL
Langflow: OS command injection (RCE) via arbitrary command in MCP stdio server configuration
- CVE-2026-55450CRITICAL
Langflow: Unauthenticated file upload leads to DoS (space exhaustion) and information leak