n8n-nodes-base@2.7.2 vulnerabilities

Base nodes of n8n

Direct Vulnerabilities

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

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

Fix for free
VulnerabilityVulnerable Version
  • H
Cross-site Scripting (XSS)

n8n-nodes-base is a Base nodes of n8n

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the workflow creation and editing process in various nodes, including Form Trigger, Chat Trigger, Send & Wait, Webhook, and Chat nodes. An attacker can execute arbitrary scripts in the browsers of users who visit affected pages by injecting malicious payloads, potentially leading to session hijacking and account takeover.

How to fix Cross-site Scripting (XSS)?

Upgrade n8n-nodes-base to version 1.121.15, 2.9.1, 2.10.1 or higher.

<1.121.15>=2.0.0 <2.9.1>=2.10.0 <2.10.1
  • C
Eval Injection

n8n-nodes-base is a Base nodes of n8n

Affected versions of this package are vulnerable to Eval Injection. An attacker can execute arbitrary code on the host system by submitting specially crafted form data that is interpreted as an expression.

Note:

This is only exploitable if a workflow contains a form node with a field that interpolates unauthenticated user input and the field value begins with an '=' character, causing double evaluation of the content.

How to fix Eval Injection?

Upgrade n8n-nodes-base to version 1.121.15, 2.9.1, 2.10.1 or higher.

<1.121.15>=2.0.0 <2.9.1>=2.10.0 <2.10.1
  • C
Arbitrary Code Injection

n8n-nodes-base is a Base nodes of n8n

Affected versions of this package are vulnerable to Arbitrary Code Injection via the Merge node's SQL query mode. An attacker can execute arbitrary code and write arbitrary files on the server by crafting malicious workflows after authenticating with permissions to create or modify workflows.

How to fix Arbitrary Code Injection?

Upgrade n8n-nodes-base to version 1.121.15, 2.9.1, 2.10.1 or higher.

<1.121.15>=2.0.0 <2.9.1>=2.10.0 <2.10.1
  • H
Command Injection

n8n-nodes-base is a Base nodes of n8n

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-nodes-base.

>=0.1.0