Free n8n Workflow Security Auditor (*.n8n.json) — 20 Automated Checks, 0 Upload
Inspect exported *.n8n.json workflows directly in your browser before unauthenticated webhooks, Execute Command OS injection, SQL injection, TLS bypasses, or leaked pinData / $env secrets reach production. Runs 100% locally with 0 bytes uploaded.
Interactive n8n Workflow Security Auditor (20 Rules)
100% in-browser · 0 bytes sent · < 10 msPaste any exported n8n workflow JSON below—or load the vulnerable n8n sample in 1 click—to see exact node lines, CWE / SOC 2 / ISO 27001 / DORA mappings, and recommended fixes. Verify in DevTools Network: zero outbound requests.
.vsix locally—or unlock Pro once (no subscription) for full workspace audits, stackguard-cli, SARIF 2.1.0, and SHA-256 sealed SOC 2 / ISO 27001 / DORA reports.
All 20 Real n8n Security & Reliability Rules (N8N001–N8N020)
Every check below runs deterministically over your n8n JSON AST in this browser auditor, the free VS Code / Cursor / Windsurf extension, and stackguard-cli.
| Rule ID | Severity | Risk & Compliance Mapping | Quick Fix & Remediation |
|---|---|---|---|
N8N001Free |
CRITICAL |
Unauthenticated n8n Webhook trigger
Webhook node has authentication set to 'none' or omitted, allowing anyone on the internet to trigger the workflow.
|
1-Click IDE Quick Fix
Enable Header Auth, Basic Auth, or JWT Auth on the Webhook node (and validate HMAC signatures for third-party webhooks).
|
N8N002Free |
CRITICAL |
Command injection in n8n Execute Command node
Execute Command node interpolates dynamic n8n expressions (={{ ... }}) directly into a shell command without strict sanitization.
|
Guided Remediation
Avoid Execute Command on untrusted inputs; validate against a strict allowlist in a Code node or pass parameters safely.
|
N8N003Free |
CRITICAL |
Dangerous dynamic execution in n8n Code/Function node
Code/Function node invokes eval(), new Function(), child_process, or raw filesystem writes, risking sandbox escape or RCE.
|
Guided Remediation
Replace dynamic eval/child_process calls with pure JavaScript transforms and typed n8n nodes.
|
N8N004Free |
HIGH |
TLS certificate verification disabled (allowUnauthorizedCerts)
Node sets allowUnauthorizedCerts: true, accepting self-signed or attacker-forged TLS certificates.
|
1-Click IDE Quick Fix
Set allowUnauthorizedCerts to false and install trusted CA certificates on the n8n host.
|
N8N005Free |
CRITICAL |
Hardcoded API key or Bearer token in n8n workflow JSON
A literal API key, Bearer token, or password is stored inside node parameters instead of n8n Credentials or $env.
|
1-Click IDE Quick Fix
Store secrets in n8n Credentials (encrypted with N8N_ENCRYPTION_KEY) or reference {{ $env.SECRET_NAME }}.
|
N8N006Free |
MEDIUM |
Missing errorWorkflow in n8n workflow settings
Workflow settings do not configure an errorWorkflow, causing production failures to go unnoticed without dead-letter handling.
|
Guided Remediation
Assign a dedicated Error Trigger workflow in settings.errorWorkflow to alert and log failed executions.
|
N8N007Pro |
MEDIUM |
HTTP Request node missing retryOnFail
External HTTP Request node does not enable retryOnFail, causing transient 429/502/503 errors to drop production jobs.
|
1-Click IDE Quick Fix
Enable retryOnFail: true with bounded maxTries (e.g. 3) and waitBetweenTries backoff.
|
N8N008Pro |
MEDIUM |
HTTP Request node missing explicit timeout
HTTP Request node lacks options.timeout, allowing unresponsive upstreams to hang workflow workers.
|
Guided Remediation
Set options.timeout (e.g. 15000 ms) on every external HTTP Request node.
|
N8N009Free |
MEDIUM |
n8n meta.instanceId leaked in exported workflow JSON
Exported workflow retains meta.instanceId, leaking the unique fingerprint of the source n8n instance in Git repositories.
|
1-Click IDE Quick Fix
Strip meta.instanceId before committing or sharing workflow JSON files.
|
N8N010Pro |
CRITICAL |
Sensitive $env secret exposed in URL query or webhook response
An $env secret/key expression is interpolated into a URL query parameter (logged by proxies/servers) or returned in a Respond to Webhook body.
|
Guided Remediation
Pass secrets exclusively in encrypted Authorization headers and never echo $env values in webhook responses.
|
N8N011Pro |
CRITICAL |
SQL injection risk via expression interpolation in n8n DB node
Database node embeds dynamic expressions (={{ ... }}) directly inside a SQL query string instead of using parameterized queryReplacement.
|
Guided Remediation
Use positional placeholders ($1, $2 or ?) with options.queryReplacement instead of string interpolation.
|
N8N012Pro |
MEDIUM |
Deprecated n8n Function / FunctionItem node
Workflow uses legacy n8n-nodes-base.function or functionItem nodes which lack modern Code node isolation and maintenance.
|
Guided Remediation
Migrate Function/FunctionItem nodes to n8n-nodes-base.code.
|
N8N013Pro |
MEDIUM |
Unbounded LLM/API loop blast-radius risk in n8n workflow
Workflow pairs a SplitInBatches/loop construct with paid LLM or enrichment API nodes (OpenAI, Anthropic, HTTP) without a rate-limit Wait node or batch cap.
|
Guided Remediation
Add a Wait/rate-limiter node and enforce a strict maximum item/iteration guard before calling paid LLM/enrichment APIs.
|
N8N014Pro |
MEDIUM |
Webhook returns allEntries or raw lastNode payload
Webhook node configured with responseData: 'allEntries' or unfiltered lastNode response may leak internal fields or PII to external callers.
|
Guided Remediation
Use an explicit Respond to Webhook node returning only an allowlisted JSON schema.
|
N8N015Pro |
LOW |
Error execution logging disabled in n8n settings
settings.saveDataErrorExecution is set to 'none', eliminating forensic evidence when production incidents occur.
|
1-Click IDE Quick Fix
Set saveDataErrorExecution to 'all' for incident investigation and SOC 2 / DORA auditability.
|
N8N016Pro |
MEDIUM |
Cleartext HTTP endpoint in n8n HTTP Request node
HTTP Request node calls a non-localhost http:// URL in cleartext, exposing payloads and headers on the wire.
|
1-Click IDE Quick Fix
Upgrade the target URL to https://.
|
N8N017Pro |
MEDIUM |
Silent error swallowing (continueOnFail) on critical n8n node
Node uses legacy continueOnFail: true or continueRegularOutput without routing failures to an error branch, risking silent data corruption.
|
Guided Remediation
Use onError: 'continueErrorOutput' wired to a dedicated error-handling/DLQ branch.
|
N8N018Pro |
MEDIUM |
Missing executionTimeout in n8n workflow settings
Workflow does not specify settings.executionTimeout (or sets it <= 0), allowing stuck executions to consume worker slots indefinitely.
|
Guided Remediation
Set a bounded settings.executionTimeout (e.g. 300 seconds).
|
N8N019Pro |
MEDIUM |
Wildcard CORS (allowedOrigins: '*') on n8n Webhook
Webhook options.allowedOrigins is set to '*', allowing arbitrary third-party websites to invoke the endpoint from user browsers.
|
1-Click IDE Quick Fix
Restrict options.allowedOrigins to your explicit frontend origin(s).
|
N8N020Pro |
MEDIUM |
Pinned sample data (pinData) committed in n8n workflow JSON
Workflow export contains non-empty pinData, which frequently leaks production PII, customer emails, or tokens into source control.
|
1-Click IDE Quick Fix
Clear pinData before exporting or committing workflows to Git.
|
Frequently Asked Questions
Are my n8n workflows or credentials ever sent to a server?
Never. All 20 n8n AST checks execute strictly inside your browser tab via scanner-bundle.js. Zero bytes of your workflow JSON, webhook URLs, or expressions ever leave your machine.
How do I export a workflow from n8n to audit it here?
Open your workflow in n8n, open the top-right menu, and select Download (or copy all nodes). Paste the exported JSON into the scanner above, or commit it to Git and audit automatically with the StackGuard VS Code/Cursor extension or stackguard-cli.
Which n8n vulnerabilities and reliability gaps are checked?
StackGuard checks 20 exact rules (N8N001–N8N020): unauthenticated webhooks, Execute Command OS injection, Code node eval/child_process, allowUnauthorizedCerts TLS bypass, hardcoded tokens, missing errorWorkflow/retryOnFail/timeout/executionTimeout, leaked meta.instanceId and pinData, $env secret exposure in URLs/responses, SQL injection, deprecated Function nodes, unbounded LLM loops, raw webhook responses, disabled error logging, cleartext HTTP, silent continueOnFail, and wildcard CORS.
Can I automate n8n workflow audits in GitHub Actions?
Yes. With StackGuard Pro ($29 Solo / $49 Team one-time via Polar.sh), run stackguard-cli on every pull request to emit SARIF 2.1.0 directly into GitHub Code Scanning and generate SHA-256 sealed SOC 2 / ISO 27001 / DORA compliance reports.