GHSA-j8f7-x8jm-wmm4: SSRF

Published Oct 6, 2026
·
Updated

Summary

Before Langflow 1.10.3, several built-in components sent server-side HTTP requests to URLs the flow author controls, with no SSRF enforcement. An authenticated user who can build or run flows could make the Langflow server reach loopback, RFC 1918 / private networks, link-local addresses and cloud metadata endpoints (for example http://169.254.169.254/latest/meta-data/), and in many cases read the response back through the component output.

Two things combined to cause this:

1. Protection disabled / warn-only. The SSRF guard (lfx/utils/ssrfprotection.py, added in 1.7.0 by #10544) shipped with ssrfprotectionenabled = False, and its only caller, the API Request component, called validateurlforssrf(url, warnonly=True). So even with protection turned on, blocked URLs were only logged. 2. Inconsistent coverage. Other components that take a user-supplied URL or base URL did not call the guard at all: RSS Reader, SearXNG, Web Search (fetching result / RSS URLs), Home Assistant, Glean Search and Docling Serve (remote).

The problem was fixed across several PRs and is fully fixed in Langflow 1.10.3 (and 1.11.0+). With the default settings, outbound requests from these components are now validated after DNS resolution, pinned to the validated IP (to prevent DNS rebinding) and blocked when they target private, loopback, link-local or metadata addresses, unless the operator allowlists the host.

Affected versions

| Package (PyPI) | Vulnerable | Patched | |---|---|---| | langflow | < 1.10.3 | 1.10.3 | | langflow-base | < 0.10.3 | 0.10.3 | | lfx | < 1.10.3 | 1.10.3 | | lfx-docling (Docling Serve component) | < 0.1.2 | 0.1.2 |

How the fix rolled out:

| Release | Change | |---|---| | < 1.7.0 | No SSRF guard. All URL-taking components make unrestricted requests. | | 1.7.0 – 1.9.2 | Guard exists, but ssrfprotectionenabled=False by default and API Request uses warnonly=True. | | 1.9.3 | #13016: protection on by default, API Request blocks (DNS pinning / anti-rebinding). Other components still unprotected. | | 1.10.1 | #13395 (RSS Reader, SearXNG) and #13643 (Home Assistant, Glean, plus model-provider URL components) route requests through SSRF-safe helpers. | | 1.10.3 | #14033 (Docling Serve) and #14071 (Web Search result/RSS fetching). All components cited in this report are protected. |

Details

Vulnerable pattern (for example rss.py before #13395):

python response = requests.get(self.rssurl, timeout=self.timeout)

API Request before #13016:

python TODO: In next major version (2.0), remove warnonly=True to enforce blocking validateurlforssrf(url, warnonly=True)

with ssrfprotectionenabled: bool = False in the settings.

Clarifications on the original report. Some sinks in the report are not exploitable SSRF:

- websearch.py: the DuckDuckGo search request and the Google News RSS request, and newssearch.py:131. The host is hard-coded (html.duckduckgo.com / news.google.com) and user input only goes into quoteplus-encoded path and query segments, so the destination cannot be redirected. The real Web Search sink was fetching the result URLs, which is fixed in #14071. - langflow/load/utils.py getflow(): this is a client-side SDK helper (from langflow.load import getflow) that the caller runs against their own Langflow URL. No API route calls it, so it is not a backend SSRF endpoint.

PoC (vulnerable versions)

1. Log in as any user who can create flows. 2. Add an RSS Reader (or SearXNG / Home Assistant / Glean / Docling Serve) component and set its URL to http://169.254.169.254/latest/meta-data/ (or an internal host such as http://10.0.0.1/). 3. Run the component. The Langflow server issues the request, and the response or error is shown in the component output.

On patched versions the same run fails with SSRFProtectionError: Access to IP address 169.254.169.254 is blocked by SSRF protection.

Impact

- Access to cloud instance metadata (IAM credentials / tokens) on AWS, GCP and Azure deployments. - Probing and interaction with internal services and private networks reachable from the Langflow host. - Requires an authenticated account with permission to build or run flows. Deployments where every user is already fully trusted are less affected.

Fix

- #13016: sets ssrfprotectionenabled = True by default, changes warnonly to default False, drops warnonly=True from API Request, and adds validateandresolveurl() plus SSRFProtectedTransport (DNS pinning).

diff - ssrfprotectionenabled: bool = False + ssrfprotectionenabled: bool = True - #13395: adds lfx.utils.ssrfrequests.ssrfsafeget (per-hop validation and pinning for requests) and uses it in RSS Reader and SearXNG.

diff - response = requests.get(self.rssurl, timeout=self.timeout) + response = ssrfsafeget(self.rssurl, timeout=self.timeout) - #13643: adds lfx.utils.ssrfhttpx (ssrfsafehttpxget/post, protected client kwargs) and applies it to Home Assistant, Glean and the model-provider base-URL components. - #14033: Docling Serve builds its httpx.Client with ssrfprotectedhttpxclientkwargsforurl(baseurl). - #14071 (release-1.10.3) / #14073 (forward-port to 1.11.0): Web Search validates and pins each result URL before fetching it, with redirects disabled.

Note: connector-style components (for example Home Assistant, Ollama, LM Studio) keep a documented loopback exemption (#14146), so a self-hosted user can reach a local service on localhost. Private-network and metadata addresses stay blocked. Operators can tighten or relax this with LANGFLOWSSRFALLOWEDHOSTS and LANGFLOWCONNECTORSSRFVALIDATIONENABLED.

Remediation

- Upgrade to langflow >= 1.10.3 (or langflow-base >= 0.10.3 / lfx >= 1.10.3 / lfx-docling >= 0.1.2). - Do not set LANGFLOWSSRFPROTECTIONENABLED=false. If you need to reach internal hosts on purpose, allowlist only those hosts with LANGFLOWSSRFALLOWEDHOSTS. - On versions that cannot be upgraded right away, restrict outbound network access from the Langflow host (for example, block 169.254.169.254 and use IMDSv2 on AWS).

Affected Software

4 affected componentsFixes available
pip/lfx-docling<0.1.2
0.1.2
pip/lfx<1.10.3
1.10.3
pip/langflow-base<0.10.3
0.10.3
pip/langflow<1.10.3
1.10.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/lfx-docling to a version that resolves this vulnerability.

    Fixed in 0.1.2
  2. Upgrade

    Upgrade pip/lfx to a version that resolves this vulnerability.

    Fixed in 1.10.3
  3. Upgrade

    Upgrade pip/langflow-base to a version that resolves this vulnerability.

    Fixed in 0.10.3
  4. Upgrade

    Upgrade pip/langflow to a version that resolves this vulnerability.

    Fixed in 1.10.3
  5. Upgrade

    Upgrade langflow to a version that resolves this vulnerability.

    Fixed in 1.10.3
  6. Upgrade

    Upgrade langflow-base to a version that resolves this vulnerability.

    Fixed in 0.10.3
  7. Upgrade

    Upgrade lfx to a version that resolves this vulnerability.

    Fixed in 1.10.3
  8. Upgrade

    Upgrade lfx-docling to a version that resolves this vulnerability.

    Fixed in 0.1.2
  9. Configuration

    Keep SSRF protection enabled; do not set LANGFLOW_SSRF_PROTECTION_ENABLED=false.

    Langflow SSRF protection LANGFLOW_SSRF_PROTECTION_ENABLED = true
  10. Configuration

    If internal hosts must be reachable, allowlist only those hosts with LANGFLOW_SSRF_ALLOWED_HOSTS.

    Langflow SSRF protection LANGFLOW_SSRF_ALLOWED_HOSTS = only explicitly required internal hosts
  11. Compensating control

    On versions that cannot be upgraded immediately, restrict outbound network access from the Langflow host; for example, block 169.254.169.254 and use IMDSv2 on AWS.

Event History

Oct 6, 2026
Advisory Published
via GitHub·01:39 PM
Data Sourced
via GitHub·01:39 PM
DescriptionWeaknessAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203