n8n - 💡(How to fix) Fix [SECURITY] SSRF Protection Only When Credential Domains Configured [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
n8n-io/n8n#28218Fetched 2026-04-09 08:16:00
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
commented ×1labeled ×1mentioned ×1subscribed ×1
RAW_BUFFERClick to expand / collapse

{ "title": "[SECURITY] SSRF Protection Only When Credential Domains Configured", "body": "## Summary\n\nThe SSRF protection via allowedDomains in the n8n HTTP Request node is ONLY enforced when credentials are attached with explicit domain restrictions. If no credential is attached, requests can go to ANY URL including internal services.\n\n## Vulnerability Details\n\n- Vulnerability Type: Server-Side Request Forgery (SSRF)\n- Severity: HIGH\n- CVE ID: N8N-SSRF-001 (to be requested)\n\n## Technical Description\n\nThe n8n HTTP Request node provides SSRF protection through the allowedDomains credential property. However, this protection is only active when:\n\n1. Credentials are attached to the HTTP Request node\n2. The credentials have explicit domain restrictions configured\n\nWhen no credential is attached to the HTTP Request node, the SSRF protection is completely bypassed. This allows attackers to:\n\n- Access internal services (localhost, 127.0.0.1)\n- Query cloud metadata endpoints (169.254.169.254)\n- Scan internal networks\n- Access internal APIs and services\n\n## Proof of Concept\n\n1. Create an HTTP Request node in n8n\n2. Do NOT attach any credential to the node\n3. Set URL to http://169.254.169.254/latest/meta-data/\n4. Execute the node\n5. The request succeeds (no SSRF protection applied)\n\n## Impact\n\n- Cloud metadata exposure (AWS, GCP, Azure)\n- Internal service enumeration\n- Potential RCE through internal service exploitation\n\n## Recommended Fix\n\nThe SSRF protection should be enforced regardless of whether credentials are attached. Consider:\n\n1. Applying allowedDomains restrictions even without credentials\n2. Adding a global SSRF protection setting\n3. Warning/blocking requests to known internal IP ranges when no credential is attached\n\n## References\n\n- CWE-918: Server-Side Request Forgery\n- OWASP: Server-Side Request Forgery" }

extent analysis

TL;DR

Enforce SSRF protection in the n8n HTTP Request node regardless of whether credentials are attached to prevent unauthorized access to internal services.

Guidance

  • Apply allowedDomains restrictions even when no credentials are attached to the HTTP Request node to enforce SSRF protection.
  • Consider adding a global SSRF protection setting to warn or block requests to known internal IP ranges when no credential is attached.
  • Review and test the HTTP Request node configuration to ensure SSRF protection is enforced in all scenarios.
  • Evaluate the feasibility of implementing a warning or blocking mechanism for requests to internal IP ranges when no credential is attached.

Example

No explicit code example is provided in the issue, but the allowedDomains property in the n8n HTTP Request node credential should be configured to restrict access to authorized domains only.

Notes

The recommended fix may require updates to the n8n HTTP Request node configuration or the implementation of a global SSRF protection setting. The feasibility of these changes should be evaluated based on the specific use case and requirements.

Recommendation

Apply workaround: Enforce SSRF protection in the n8n HTTP Request node regardless of whether credentials are attached, as this will prevent unauthorized access to internal services and mitigate the identified vulnerability.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING