n8n@1.18.0

n8n Workflow Automation Tool

  • latest version

    2.14.2

  • first published

    6 years ago

  • latest version published

    4 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the n8n 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
    • 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 the Credential Management Flow when a crafted OAuth2 credential contains a JavaScript URL in the Authorization URL field. An attacker can execute arbitrary scripts in the victim's browser session by convincing an authenticated user with permission to create and share credentials to interact with the OAuth authorization button.

    How to fix Cross-site Scripting (XSS)?

    Upgrade n8n to version 2.6.4, 2.8.0 or higher.

    <2.6.4>=2.7.0 <2.8.0
    • M
    Improper Authentication

    n8n is a n8n Workflow Automation Tool

    Affected versions of this package are vulnerable to Improper Authentication via the Self-Service Settings API. An attacker can circumvent centralized identity management and multi-factor authentication by disabling SSO enforcement for their own account and creating local credentials after authenticating through SSO.

    How to fix Improper Authentication?

    Upgrade n8n to version 2.8.0 or higher.

    <2.8.0
    • C
    Command Injection

    n8n is a n8n Workflow Automation Tool

    Affected versions of this package are vulnerable to Command Injection in the community package installation functionality. An attacker can execute arbitrary system commands by supplying crafted input as an authenticated user with administrative permissions.

    Note:

    This is only exploitable if the attacker has administrative access to the instance and is permitted to install third-party community packages.

    How to fix Command Injection?

    Upgrade n8n to version 1.119.2, 1.120.3 or higher.

    >=0.187.0 <1.119.2>=1.120.0 <1.120.3
    • 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 the Respond to Webhook node when it responds with HTML content containing executable scripts. An attacker can execute arbitrary JavaScript in the context of the editor interface by crafting a malicious workflow to bypass the sandbox, leading to unauthorized reading or modification of workflow data, insertion of malicious logic, or exfiltration of sensitive information from within an authenticated session.

    n8n-auth session cookies are not exposed by this vulnerability.

    How to fix Cross-site Scripting (XSS)?

    Upgrade n8n to version 1.114.0 or higher.

    <1.114.0
    • 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