n8n-nodes-base@2.30.2

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
External Control of File Name or Path

n8n-nodes-base is a Base nodes of n8n

Affected versions of this package are vulnerable to External Control of File Name or Path via the Edit Image. An attacker can write arbitrary files outside the intended directory by supplying crafted values to the output format parameter.

How to fix External Control of File Name or Path?

Upgrade n8n-nodes-base to version 1.121.42, 2.31.3, 2.32.1 or higher.

<1.121.42>=2.0.0-rc.0 <2.31.3>=2.32.0 <2.32.1
  • H
Prototype Pollution

n8n-nodes-base is a Base nodes of n8n

Affected versions of this package are vulnerable to Prototype Pollution via the Edit Fields (Set) process when output fields are assigned using dot-notation path setters without restricting field names. An attacker can corrupt a shared global in the main Node.js by naming a field after an inherited built-in method path, which causes all authenticated requests to fail and results in a denial of service for all users until the process is restarted.

How to fix Prototype Pollution?

Upgrade n8n-nodes-base to version 1.121.42, 2.31.3, 2.32.1 or higher.

<1.121.42>=2.0.0-rc.0 <2.31.3>=2.32.0 <2.32.1
  • H
Directory Traversal

n8n-nodes-base is a Base nodes of n8n

Affected versions of this package are vulnerable to Directory Traversal via the Git node's fetch, pull, or push-tags operations. An attacker can access files and history outside the intended workspace by configuring an allowlisted remote value to point to a local path beyond the sandbox.

How to fix Directory Traversal?

Upgrade n8n-nodes-base to version 1.121.42, 2.31.3, 2.32.1 or higher.

<1.121.42>=2.0.0-rc.0 <2.31.3>=2.32.0 <2.32.1
  • H
Server-side Request Forgery (SSRF)

n8n-nodes-base is a Base nodes of n8n

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via improper handling of message fields in the Send Email node. An attacker can access arbitrary files or initiate unauthorized network requests by supplying crafted non-string input to the text or HTML body fields.

Note: This is only exploitable if a pre-existing active workflow with an unauthenticated webhook exists, valid SMTP credentials are configured on the Send Email node, and untrusted input is mapped directly into the text or HTML body field.

How to fix Server-side Request Forgery (SSRF)?

Upgrade n8n-nodes-base to version 1.121.42, 2.31.3, 2.32.1 or higher.

<1.121.42>=2.0.0-rc.0 <2.31.3>=2.32.0 <2.32.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 Git node. An attacker can execute arbitrary commands as the application process user by crafting a local repository to trigger git hooks during workflow execution.

Note: This is only exploitable if an authenticated user has rights to create and execute workflows using the Git node under default git security settings.

How to fix Command Injection?

Upgrade n8n-nodes-base to version 1.121.42, 2.31.3, 2.32.1 or higher.

<1.121.42>=2.0.0-rc.0 <2.31.3>=2.32.0 <2.32.1
  • H
SQL Injection

n8n-nodes-base is a Base nodes of n8n

Affected versions of this package are vulnerable to SQL Injection in the executeQuery. An attacker can execute arbitrary SQL commands by injecting untrusted expression data directly into a raw SQL query string.

Note: This is only exploitable if a workflow author embeds untrusted expression data in a raw SQL query.

How to fix SQL Injection?

Upgrade n8n-nodes-base to version 1.121.42, 2.31.3, 2.32.1 or higher.

<1.121.42>=2.0.0-rc.0 <2.31.3>=2.32.0 <2.32.1
  • H
SQL Injection

n8n-nodes-base is a Base nodes of n8n

Affected versions of this package are vulnerable to SQL Injection via the PostgresTrigger. An attacker can execute arbitrary SQL commands on the connected PostgreSQL database by supplying crafted input to identifier parameters, leading to full read and write access with the configured credential's privileges.

How to fix SQL Injection?

Upgrade n8n-nodes-base to version 1.121.42, 2.31.3, 2.32.1 or higher.

<1.121.42>=2.0.0-rc.0 <2.31.3>=2.32.0 <2.32.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