5.3medium
n8n has a Webhook Node IP Whitelist Bypass via Partial String Matching
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.54% (higher than 39% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-w96v-gf22-crwp
Description
n8n is an open source workflow automation platform. From 1.36.0 to before 2.2.0, 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. This vulnerability is fixed in 2.2.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| n8n-io n8n | >= 1.36.0, < 2.2.0 | CVE List |
| n8n (npm) | from 1.36.0 before 2.2.0 | GitHub Advisory Database |
| n8n n8n | from 1.36.0 before 2.2.0 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
What each source says
CVE List
n8n is an open source workflow automation platform. From 1.36.0 to before 2.2.0, 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. This vulnerability is fixed in 2.2.0.
GitHub Advisory Database
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).
NVD (es)
n8n es una plataforma de automatización de flujos de trabajo de código abierto. Desde la 1.36.0 hasta antes de la 2.2.0, la validación de la lista blanca de IP del nodo Webhook realizaba una coincidencia parcial de cadenas en lugar de una comparación exacta de IP. Como resultado, una solicitud entrante podía ser aceptada si la dirección IP de origen simplemente contenía la entrada de la lista blanca configurada como una subcadena. Este problema afectaba a las instancias donde los editores de flujos de trabajo dependían de controles de acceso basados en IP para restringir el acceso a los webhooks. Tanto las direcciones IPv4 como IPv6 se vieron afectadas. Un atacante con una IP no incluida en la lista blanca podía eludir las restricciones si su IP compartía un prefijo parcial con una dirección de confianza, socavando el límite de seguridad previsto. Esta vulnerabilidad está corregida en la 2.2.0.
References
| https://github.com/n8n-io/n8n/security/advisories/GHSA-w96v-gf22-crwp | vendor-advisory, web | |
| https://github.com/n8n-io/n8n/issues/23399 | issue-tracking, patch, web | |
| https://github.com/n8n-io/n8n/pull/23399 | issue-tracking, patch, web | |
| https://github.com/n8n-io/n8n/commit/11f8597d4ad69ea3b58941573997fdbc4de1fec5 | patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-68949 | advisory | |
| https://github.com/n8n-io/n8n | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68949 changed 2026-01-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w96v-gf22-crwp changed 2026-02-03 | CC-BY-4.0 |
| NVD | CVE-2025-68949 changed 2026-06-17 | Public domain |