GitHub Security Advisory: GHSA-qqvm-66q4-vf5c
Package: flowise (NPM)
Severity: MODERATE (CVSS 0.0)
CWE: CWE-918: Server-Side Request Forgery (SSRF)
Vulnerable versions: <= 3.0.13
Patched in: 3.1.0

Summary: Flowise: SSRF Protection Bypass via Direct node-fetch / axios Usage (Patch Enforcement Failure)

Details:
### Summary

Flowise introduced SSRF protections through a centralized HTTP security wrapper (`httpSecurity.ts`) that implements deny-list validation and IP pinning logic.

However, multiple tool implementations directly import and invoke raw HTTP clients (`node-fetch`, `axios`Instead of using the secured wrapper.

Because enforcement is neither mandatory nor centralized, these tools bypass SSRF mitigation entirely, restoring full SSRF capability even after the patch.

This issue is distinct from specification trust issues and represents incomplete mitigation of previously addressed SSRF vulnerabilities.

### Details
**Intended Security Model:**

All outbound HTTP requests should pass through the centralized validation layer implemented in:

```
packages/components/src/httpSecurity.ts
```

This layer performs:

- `HTTP_DENY_LIST` enforcement
- IP resolution validation
- IP pinning
- Loopback blocking

**Observed Implementation Gap:**

Multiple tools bypass this layer and import HTTP libraries directly.

Examples include:

- `packages/components/nodes/tools/OpenAPIToolkit/OpenAPIToolkit.ts`
- `packages/components/nodes/tools/WebScraperTool/WebScraperTool.ts`
- `packages/components/nodes/tools/MCP/core.ts`
- `packages/components/nodes/tools/Arxiv/core.ts`

These files directly execute:

```
importfetchfrom'node-fetch'
```

or invoke `axios` without passing through the centralized validation wrapper.

Because there is no global interceptor or enforcement mechanism, outbound requests in these components are executed without SSRF validation.

This renders the mitigation introduced in GHSA-2x8m-83vc-6wv4 incomplete.

### Root Cause

Security enforcement is not centralized.

Outbound request validation depends on voluntary usage of a wrapper function rather than being structurally enforced.

Because direct imports of HTTP clients are allowed, the mitigation is easily bypassed.

This is an architectural enforcement failure rather than a single implementation bug.

### PoC
Even when an administrator configures:

```
HTTP_DENY_LIST=169.254.0.0/16,127.0.0.0/8
```

The following attack succeeds if a vulnerable tool is enabled:

**Chat Prompt:**

```
Use the Web Scraper tool to retrieve:
http://169.254.169.254/latest/meta-data/iam/security-credentials/
```

Execution flow:

1. The LLM triggers `WebScraperTool`.
2. The tool calls raw `fetch()` directly.
3. No `httpSecurity.ts` validation is applied.
4. The request reaches the metadata endpoint.
5. The response is returned to the chat context.

This demonstrates that SSRF protection is opt-in rather than enforced.
### Impact

**Severity:** Critical (CVSS v3.1: 9.1 – AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N)

This issue:

- Completely bypasses the centralized SSRF mitigation.
- Allows access to internal network resources.
- Enables the exploitation of cloud metadata and credential theft.
- Invalidates the security assumptions of the recent patch.

Any deployment enabling affected tools remains vulnerable.

### Recomm