n8n: Webhook Node IP Whitelist Bypass via Partial String Matching
Medium5.3CVE-2025-68949 · Published Jan 13, 2026 · updated Feb 3, 2026
## Impact The Webhook node’s IP whitelist validation performed partial string matching instead of exact IP comparison. As a result, an incoming request could be accepted if the source IP address merely contained the configured whitelist entry as a substring. This issue affected instances where workflow editors relied on IP-based access controls to restrict webhook access. Both IPv4 and IPv6 addresses were impacted. An attacker with a non-whitelisted IP could bypass restrictions if their IP shared a partial prefix with a trusted address, undermining the intended security boundary. ## Patches This issue has been patched in version 2.2.0. Users are advised to upgrade to v2.2.0 or later, where IP whitelist validation uses strict IP comparison logic rather than partial string matching. ## Workarounds Users unable to upgrade immediately should avoid relying solely on IP whitelisting for webhook security. Recommended mitigations include: - Adding authentication mechanisms such as shared secrets, HMAC signatures, or API keys. - Avoiding short or prefix-based whitelist entries. - Enforcing IP filtering at the network layer (for example, via reverse proxies or firewalls).
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| n8n npm | >= 1.36.0, < 2.2.0 | 2.2.0 |
Details and references
More n8n advisories
All n8n| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jan 27 | n8n Unsafe Workflow Expression Evaluation Allows Remote Code Execution | Critical9.9 | 1.123.17+2 more |
| Jan 7 | n8n's Missing Stripe-Signature Verification Allows Unauthenticated Forged Webhooks | Medium6.5 | 2.2.2 |
| Jan 7 | n8n Vulnerable to Unauthenticated File Access via Improper Webhook Request Handling | Critical10.0 | 1.121.0 |
| Jan 6 | n8n Vulnerable to RCE via Arbitrary File Write | Critical9.9 | 1.121.3 |
| Dec 262025 | Self-hosted n8n has Legacy Code node that enables arbitrary file read/write | High7.1 | 2.0.0 |
| Dec 262025 | n8n Vulnerable to Arbitrary Command Execution in Pyodide based Python Code Node | Critical9.9 | 2.0.0 |