n8n@1.68.1 vulnerabilities

n8n Workflow Automation Tool

Direct Vulnerabilities

Known vulnerabilities in the n8n package. This does not include vulnerabilities belonging to this package’s dependencies.

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable Version
  • H
Command Injection

n8n is a n8n Workflow Automation Tool

Affected versions of this package are vulnerable to Command Injection via the Execute Command node. An attacker can execute arbitrary commands on the host system by leveraging access to an authenticated user account, potentially leading to data exfiltration, service disruption, or full system compromise.

Note:

This is only exploitable if the Execute Command node is enabled and not all user accounts are strictly controlled and trusted.

This issue does not impact n8n.cloud.

As per maintainers' memo: "No code changes have been made to alter the behavior of the Execute Command node. The recommended mitigation is to disable the node by default in environments where it is not explicitly required. Future n8n versions may change the default availability of this node."

##Workaround

This vulnerability can be mitigated by disabling the Execute Command node before n8n start using the environment variable: export NODES_EXCLUDE: "[\"n8n-nodes-base.executeCommand\"]".

How to fix Command Injection?

There is no fixed version for n8n.

>=0.0.1
  • H
Missing Authorization

n8n is a n8n Workflow Automation Tool

Affected versions of this package are vulnerable to Missing Authorization over the /rest/executions/:id/stop endpoint, which can execute stop a workflow operation on workflows not owned by the user. Long-running and time-sensitive workflows are particularly vulnerable.

How to fix Missing Authorization?

Upgrade n8n to version 1.99.1 or higher.

<1.99.1
  • M
Uncaught Exception

n8n is a n8n Workflow Automation Tool

Affected versions of this package are vulnerable to Uncaught Exception via the /rest/binary-data endpoint when handling empty filesystem URIs. An authenticated attacker can cause resource exhaustion and disrupt service availability by sending specially crafted GET requests with empty filesystem:// or filesystem-v2:// URIs to the affected endpoint.

How to fix Uncaught Exception?

Upgrade n8n to version 1.99.0 or higher.

<1.99.0
  • M
Cross-site Scripting (XSS)

n8n is a n8n Workflow Automation Tool

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via a lack of MIME type validation on uploaded binary files, which can be controlled through a GET parameter. This allows an authenticated attacker with member-level privileges to upload a crafted HTML file containing malicious code. If another authenticated user visits the binary data endpoint with the MIME type specified as text/html, the embedded script will execute within the user's browser session, potentially enabling account takeover, for instance, by initiating an unauthorized email address change.

How to fix Cross-site Scripting (XSS)?

Upgrade n8n to version 1.90.0 or higher.

<1.90.0