CVE-2026-41272: Flowise: SSRF Protection Bypass (TOCTOU & Default Insecure)
Flowise's SSRF guard in `httpSecurity.ts` fails in two ways. With `HTTP_DENY_LIST` unset, which is the default, it blocks nothing, and DNS rebinding defeats it even when set. Flowise 3.0.13 and earlier are affected. Upgrade `flowise` and `flowise-components` to 3.1.0.
Published Apr 16, 2026 · Updated Apr 24, 2026 · Analysis Oct 30, 2026
What an attacker can do
secureAxiosRequest and secureFetch in packages/components/src/httpSecurity.ts call checkDenyList before each outbound request. If process.env.HTTP_DENY_LIST is undefined, checkDenyList returns at once, so requests to 127.0.0.1 and other internal hosts succeed. This is the default configuration.
When the variable is set, a time-of-check to time-of-use gap remains. The code resolves the hostname with dns.lookup to validate the IP, then the HTTP client resolves it again to connect. An attacker who controls a domain and its DNS server answers the first query with a safe IP (the advisory uses 1.1.1.1, TTL 0) and the next with 127.0.0.1. The check passes and the request goes to the blocked address.
The attacker needs a way to make Flowise fetch a URL through a node that uses these wrappers, which needs low privileges. The result is access to internal services and, if they accept it, state-changing GET requests. The advisory rates confidentiality impact high.
Who is affected
npm packages flowise and flowise-components, 3.0.13 and earlier. Every install that leaves HTTP_DENY_LIST unset is exposed by default. Installs that set it are still open to DNS rebinding. Check:
npm ls flowise flowise-componentsAlso check whether HTTP_DENY_LIST is set in your environment or .env file.
flowise
- Ecosystem
- npm
- Affected
- <= 3.0.13
- Fixed in
- 3.1.0
- Check
npm ls flowise
flowise-components
- Ecosystem
- npm
- Affected
- <= 3.0.13
- Fixed in
- 3.1.0
- Check
npm ls flowise-components
How to fix it
Upgrade flowise and flowise-components to 3.1.0:
npm install [email protected] [email protected]The advisory gives no workaround. Until you upgrade, enforce egress limits outside Flowise: block the host from loopback-adjacent services, private ranges and the cloud metadata address at the firewall or container network level.
How to tell if you were hit
Check outbound connections from the Flowise host to loopback, private ranges and 169.254.169.254, and DNS logs for domains that resolve to a public IP and then to an internal one within seconds, especially with TTL 0. In Flowise logs, look for requests from flows that fetch user-supplied URLs.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The core security wrappers (secureAxiosRequest and secureFetch) intended to prevent Server-Side Request Forgery (SSRF) contain multiple logic flaws. These flaws allow attackers to bypass the allow/deny lists via DNS Rebinding (Time-of-Check Time-of-Use) or by exploiting the default configuration which fails to enforce any deny list.
Details
The flaws exist in packages/components/src/httpSecurity.ts.
Default Insecure: If process.env.HTTP_DENY_LIST is undefined, checkDenyList returns immediately, allowing all requests (including localhost).
DNS Rebinding (TOCTOU): The function performs a DNS lookup (dns.lookup) to validate the IP, and then the HTTP client performs a new lookup to connect. An attacker can serve a valid IP first, then switch to an internal IP (e.g., 127.0.0.1) for the second lookup.
PoC
Ensure HTTP_DENY_LIST is unset (default behavior).
Use any node utilizing secureFetch to access http://127.0.0.1.
Result: Request succeeds.
Scenario 2: DNS Rebinding
Attacker controls domain attacker.com and a custom DNS server.
Configure DNS to return 1.1.1.1 (Safe IP) with TTL=0 for the first query.
Configure DNS to return 127.0.0.1 (Blocked IP) for subsequent queries.
Flowise validates attacker.com -> 1.1.1.1 (Allowed).
Flowise fetches attacker.com -> 127.0.0.1 (Bypass).
Run the following for manual verification
// PoC for httpSecurity.ts Bypasses
import * as dns from 'dns/promises';
// Mocking the checkDenyList logic from Flowise
async function checkDenyList(url: string) {
const deniedIPs = ['127.0.0.1', '0.0.0.0']; // Simplified deny list logic
if (!process.env.HTTP_DENY_LIST) {
console.log(\"⚠️ HTTP_DENY_LIST not set. Returning allowed.\");
return; // Vulnerability 1: Default Insecure
}
const { hostname } = new URL(url);
const { address } = await dns.lookup(hostname);
if (deniedIPs.includes(address)) {
throw new Error(`IP ${address} is denied`);
}
console.log(`✅ IP ${address} allowed check.`);
}
async function runPoC() {
console.log(\"--- Test 1: Default Configuration (Unset HTTP_DENY_LIST) ---\");
// Ensure env var is unset
delete process.env.HTTP_DENY_LIST;
try {
await checkDenyList('http://127.0.0.1');
console.log(\"[PASS] Default config allowed localhost access.\");
} catch (e) {
console.log(\"[FAIL] Blocked:\", e.message);
}
console.log(\"\
--- Test 2: 'private' Keyword Bypass (Logic Flaw) ---\");
process.env.HTTP_DENY_LIST = 'private'; // User expects this to block localhost
try {
await checkDenyList('http://127.0.0.1');
// In real Flowise code, 'private' is not expanded to IPs, so it only blocks the string \"private\"
console.log(\"[PASS] 'private' keyword failed to block localhost (Mock simulation).\");
} catch (e) {
console.log(\"[FAIL] Blocked:\", e.message);
}
}
runPoC();Impact
Confidentiality: High (Access to internal services if protection is bypassed).
Integrity: Low/Medium (If internal services allow state changes via GET).
Availability: Low.
Credited to ESPanda666, JLLeitschuh.
Questions
- Am I safe if HTTP_DENY_LIST is set?
Only partly. When unset, the check is skipped entirely. When set, DNS rebinding can still get past it because the name is resolved twice.
- What version fixes CVE-2026-41272?
3.1.0 for
flowiseandflowise-components. Version 3.0.13 and earlier are listed as vulnerable.- Do I need to be logged in to exploit this?
The CVSS vector says low privileges are required. The advisory does not describe an unauthenticated path.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Flowise vulnerabilities
All Flowise entriesCVE-2026-73483
Flowise NodeVM sandbox escape via puppeteer allowlist - authenticated RCE and arbitrary file read via Chromium
critical9.4Oct 7, 2026CVE-2026-73487
Flowise Prompt Injection to RCE and SSRF via CSV/Airtable Agent Python Validator Bypass
critical9.0Oct 7, 2026CVE-2026-69250
Flowise: Unauthenticated OAuth2 Refresh Enables Non-Blind SSRF and Secret Exfiltration
high8.5Aug 4, 2026CVE-2026-69251
Flowise RCE via TypeORM DataSource
critical9.0Aug 4, 2026CVE-2026-69252
Flowise: Missing authorization on `/api/v1/files` allows low-privileged API keys to list and delete files across workspaces within the same organization
high7.2Aug 4, 2026CVE-2026-69253
Flowise Sandbox Escape to RCE
critical9.0Aug 4, 2026
