n8n Security Auditor · 20 Local AST Rules · 0 Bytes Uploaded

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.

Run Free Local Scan Download Free .vsix (156 KB) Pro Solo — $29 one-time Pro Team (10 seats) — $49
20 rules
N8N001–N8N020 security & reliability
9 Quick Fixes
1-click IDE remediation (Cmd+.)
0 bytes
Uploaded — runs locally in browser
SOC 2 / DORA
Auditor-ready Markdown + SARIF 2.1.0

Interactive n8n Workflow Security Auditor (20 Rules)

100% in-browser · 0 bytes sent · < 10 ms

Paste 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.

Enforce all 72 rules in VS Code, Cursor, Windsurf & CI Download the free .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
N8N001
Free
CRITICAL
Unauthenticated n8n Webhook trigger
Webhook node has authentication set to 'none' or omitted, allowing anyone on the internet to trigger the workflow.
CWE-306SOC 2 CC6.1ISO A.8.5DORA Art. 9(4)
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).
N8N002
Free
CRITICAL
Command injection in n8n Execute Command node
Execute Command node interpolates dynamic n8n expressions (={{ ... }}) directly into a shell command without strict sanitization.
CWE-78SOC 2 CC6.1ISO A.8.28DORA Art. 9(2)
Guided Remediation
Avoid Execute Command on untrusted inputs; validate against a strict allowlist in a Code node or pass parameters safely.
N8N003
Free
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.
CWE-95SOC 2 CC7.1ISO A.8.28DORA Art. 9(2)
Guided Remediation
Replace dynamic eval/child_process calls with pure JavaScript transforms and typed n8n nodes.
N8N004
Free
HIGH
TLS certificate verification disabled (allowUnauthorizedCerts)
Node sets allowUnauthorizedCerts: true, accepting self-signed or attacker-forged TLS certificates.
CWE-295SOC 2 CC6.7ISO A.8.24DORA Art. 9(3)
1-Click IDE Quick Fix
Set allowUnauthorizedCerts to false and install trusted CA certificates on the n8n host.
N8N005
Free
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.
CWE-798SOC 2 CC6.1ISO A.5.17DORA Art. 9(4)
1-Click IDE Quick Fix
Store secrets in n8n Credentials (encrypted with N8N_ENCRYPTION_KEY) or reference {{ $env.SECRET_NAME }}.
N8N006
Free
MEDIUM
Missing errorWorkflow in n8n workflow settings
Workflow settings do not configure an errorWorkflow, causing production failures to go unnoticed without dead-letter handling.
CWE-755SOC 2 CC7.2ISO A.8.15DORA Art. 10
Guided Remediation
Assign a dedicated Error Trigger workflow in settings.errorWorkflow to alert and log failed executions.
N8N007
Pro
MEDIUM
HTTP Request node missing retryOnFail
External HTTP Request node does not enable retryOnFail, causing transient 429/502/503 errors to drop production jobs.
CWE-755SOC 2 A1.2ISO A.8.14DORA Art. 11
1-Click IDE Quick Fix
Enable retryOnFail: true with bounded maxTries (e.g. 3) and waitBetweenTries backoff.
N8N008
Pro
MEDIUM
HTTP Request node missing explicit timeout
HTTP Request node lacks options.timeout, allowing unresponsive upstreams to hang workflow workers.
CWE-400SOC 2 A1.2ISO A.8.6DORA Art. 11
Guided Remediation
Set options.timeout (e.g. 15000 ms) on every external HTTP Request node.
N8N009
Free
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.
CWE-200SOC 2 CC6.1ISO A.8.12DORA Art. 9(3)
1-Click IDE Quick Fix
Strip meta.instanceId before committing or sharing workflow JSON files.
N8N010
Pro
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.
CWE-598SOC 2 CC6.7ISO A.8.12DORA Art. 9(3)
Guided Remediation
Pass secrets exclusively in encrypted Authorization headers and never echo $env values in webhook responses.
N8N011
Pro
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.
CWE-89SOC 2 CC6.1ISO A.8.28DORA Art. 9(2)
Guided Remediation
Use positional placeholders ($1, $2 or ?) with options.queryReplacement instead of string interpolation.
N8N012
Pro
MEDIUM
Deprecated n8n Function / FunctionItem node
Workflow uses legacy n8n-nodes-base.function or functionItem nodes which lack modern Code node isolation and maintenance.
CWE-1104SOC 2 CC8.1ISO A.8.8DORA Art. 8
Guided Remediation
Migrate Function/FunctionItem nodes to n8n-nodes-base.code.
N8N013
Pro
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.
CWE-834SOC 2 A1.2ISO A.8.6DORA Art. 11
Guided Remediation
Add a Wait/rate-limiter node and enforce a strict maximum item/iteration guard before calling paid LLM/enrichment APIs.
N8N014
Pro
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.
CWE-200SOC 2 CC6.1ISO A.8.12DORA Art. 9(3)
Guided Remediation
Use an explicit Respond to Webhook node returning only an allowlisted JSON schema.
N8N015
Pro
LOW
Error execution logging disabled in n8n settings
settings.saveDataErrorExecution is set to 'none', eliminating forensic evidence when production incidents occur.
CWE-778SOC 2 CC7.2ISO A.8.15DORA Art. 10
1-Click IDE Quick Fix
Set saveDataErrorExecution to 'all' for incident investigation and SOC 2 / DORA auditability.
N8N016
Pro
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.
CWE-319SOC 2 CC6.7ISO A.8.24DORA Art. 9(3)
1-Click IDE Quick Fix
Upgrade the target URL to https://.
N8N017
Pro
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.
CWE-390SOC 2 CC7.2ISO A.8.15DORA Art. 10
Guided Remediation
Use onError: 'continueErrorOutput' wired to a dedicated error-handling/DLQ branch.
N8N018
Pro
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.
CWE-400SOC 2 A1.2ISO A.8.6DORA Art. 11
Guided Remediation
Set a bounded settings.executionTimeout (e.g. 300 seconds).
N8N019
Pro
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.
CWE-942SOC 2 CC6.6ISO A.8.20DORA Art. 9(3)
1-Click IDE Quick Fix
Restrict options.allowedOrigins to your explicit frontend origin(s).
N8N020
Pro
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.
CWE-359SOC 2 CC6.1ISO A.8.11DORA Art. 9(3)
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.