{"id":"CVE-2026-21445","aliases":["CVE-2026-21445","GHSA-c5cp-vx83-jhqx","PYSEC-2026-1524","PYSEC-2026-2571"],"related":[],"kind":"vulnerability","state":"published","title":"Langflow Missing Authentication on Critical API Endpoints","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nMultiple 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.\n\n### Details\nThe 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:\n\n**Affected Endpoints:**\n\n1. **GET `/api/v1/monitor/messages`** (Line 61)\n   ```python\n   @router.get(\"/messages\")  # ❌ Missing authentication\n   async def get_messages(\n       session: DbSession,\n       flow_id: Annotated[UUID | None, Query()] = None,\n       session_id: Annotated[str | None, Query()] = None,\n       # ... other parameters\n   ) -> list[MessageResponse]:\n   ```\n\n2. **GET `/api/v1/monitor/transactions`** (Line 183)\n   ```python\n   @router.get(\"/transactions\")  # ❌ Missing authentication\n   async def get_transactions(\n       flow_id: Annotated[UUID, Query()],\n       session: DbSession,\n       params: Annotated[Params | None, Depends(custom_params)],\n   ) -> Page[TransactionTable]:\n   ```\n\n3. **DELETE `/api/v1/monitor/messages/session/{session_id}`** (Line 165)\n   ```python\n   @router.delete(\"/messages/session/{session_id}\", status_code=204)  # ❌ Missing authentication\n   async def delete_messages_session(\n       session_id: str,\n       session: DbSession,\n   ):\n   ```\n\n**Inconsistency Evidence:**\nOther endpoints in the same file properly implement authentication:\n```python\n@router.get(\"/messages/sessions\", dependencies=[Depends(get_current_active_user)])  # ✅ Properly secured\n@router.delete(\"/messages\", status_code=204, dependencies=[Depends(get_current_active_user)])  # ✅ Properly secured\n```\n\n### PoC\nComplete reproduction steps to demonstrate the vulnerability:\n\n**Prerequisites:**\n1. Start a Langflow server instance\n2. Ensure no authentication headers or API keys are provided\n\n**Reproduction Commands:**\n```bash\n# 1. Access all user conversations without authentication\ncurl http://localhost:7860/api/v1/monitor/messages\n\n# 2. Access transaction history without authentication\ncurl \"http://localhost:7860/api/v1/monitor/transactions?flow_id=00000000-0000-0000-0000-000000000000\"\n\n# 3. Delete user messages by session without authentication\ncurl -X DELETE http://localhost:7860/api/v1/monitor/messages/session/00000000-0000-0000-0000-000000000000\n```\n\n**Expected vs Actual Behavior:**\n- **Expected:** All requests should return `401 Unauthorized` \n- **Actual:** All requests return successful responses with sensitive data or perform destructive operations\n\n### Impact\n\n**Vulnerability Type:** Broken Authentication and Authorization (OWASP Top 10 - A01:2021)\n\n**Severity:** High\n\n**Who is Impacted:**\n- **All Langflow users**: Personal conversation data exposed to unauthorized access\n- **System administrators**: Transaction logs disclosed\n\n**Specific Impacts:**\n1. **Data Breach**: Unauthorized access to user conversations containing potentially sensitive personal information\n2. **Privacy Violation**: Transaction histories and user activity patterns exposed without consent\n3. **Data Destruction**: Malicious actors can delete user conversation histories without authorization\n4. **Compliance Risk**: Potential violations of data protection regulations (GDPR, CCPA, etc.)\n5. **System Intelligence**: Attackers can gather information about system usage patterns and user behavior\n\n**Attack Scenarios:**\n- Malicious users accessing proprietary conversation data\n- Malicious users deleting other users' conversation histories\n- Automated scraping of all user conversations for data harvesting\n- Reconnaissance attacks to understand system architecture and usage patterns\n\n**Recommended Fix:**\nAdd authentication dependencies to all affected endpoints:\n\n```python\n@router.get(\"/messages\", dependencies=[Depends(get_current_active_user)])\n@router.get(\"/transactions\", dependencies=[Depends(get_current_active_user)])\n@router.delete(\"/messages/session/{session_id}\", dependencies=[Depends(get_current_active_user)])\n```\n\n**Environment:**\n- Langflow Version: Current main branch\n- Affected Components: API v1 monitoring endpoints\n- Authentication System: FastAPI dependency injection with `get_current_active_user`\n\n<img width=\"1908\" height=\"1029\" alt=\"25-090901\" src=\"https://github.com/user-attachments/assets/44bd03b4-6ada-45b7-b81b-9cb83747172b\" />","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-01-02T19:11:24.451Z","modified":"2026-07-13T16:43:12.878Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","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"}],"cwes":["CWE-306"],"affected":[{"ranges":[{"version":"< 1.7.0.dev45","status":"affected"}],"vendor":"langflow-ai","product":"langflow","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.7.1"}],"ecosystem":"PyPI","package":"langflow-base","purl":"pkg:pypi/langflow-base","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.1"}],"ecosystem":"PyPI","package":"langflow","purl":"pkg:pypi/langflow","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.7.1"}],"vendor":"langflow","product":"langflow","cpe":"cpe:2.3:a:langflow:langflow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.1"}],"ecosystem":"PyPI","package":"langflow","purl":"pkg:pypi/langflow","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.7.1"}],"ecosystem":"PyPI","package":"langflow-base","purl":"pkg:pypi/langflow-base","source":"pysec"}],"references":[{"url":"https://github.com/langflow-ai/langflow/security/advisories/GHSA-c5cp-vx83-jhqx","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/langflow-ai/langflow/commit/3fed9fe1b5658f2c8656dbd73508e113a96e486a","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21445","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langflow-ai/langflow","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langflow-ai/langflow/releases/tag/1.7.1","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/langflow","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-c5cp-vx83-jhqx","tags":["advisory"],"sources":["pysec"]},{"url":"https://pypi.org/project/langflow-base","tags":["package"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-01-06T04:55:18.176Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-21445","url":"https://www.cve.org/CVERecord?id=CVE-2026-21445","licence":"CVE Terms of Use","modified":"2026-02-26T15:04:59.539Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c5cp-vx83-jhqx","url":"https://github.com/advisories/GHSA-c5cp-vx83-jhqx","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:12.878Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-21445","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21445","licence":"Public domain","modified":"2026-06-17T10:18:41.100Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1524","url":"https://osv.dev/vulnerability/PYSEC-2026-1524","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:12.878Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2571","url":"https://osv.dev/vulnerability/PYSEC-2026-2571","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:12.878Z"}],"updatedAt":"2026-11-25T22:59:12.594Z","epss":{"score":0.33289,"percentile":0.98402,"date":"2026-12-01T12:00:22.000Z"}}