CriticalCVE-2025-68613

    n8n Vulnerable to Remote Code Execution via Expression Injection (CVE-2025-68613)

    Published Last modified In CISA KEV since Sources: CVE.org, OSV

    What is affected, what to do

    n8n is an open source workflow automation platform. Versions starting with 0.211.0 and prior to 1.120.4, 1.121.1, and 1.122.0 contain a critical Remote Code Execution (RCE) vulnerability in their workflow expression evaluation system.

    The vulnerability is being actively exploited; treat it as a priority. Update n8n to version 1.120.4. Immediate actions, mitigation and detection rules are in the runbook below.

    Affected
    • N8n gte 0.211.0, < 1.120.4..*
    • N8n eq 1.121.0..1.121.0

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    10.0

    Priority

    XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.

    Source: Vendor (CNA), CVSS v3

    10.0

    CVSS v3

    Severity Critical on the scale from 0 to 10.

    Source: CVE.org, OSV

    99.0 %

    EPSS score

    High — model estimates ≥ 50% chance of real-world exploitation within 30 days.

    Source: FIRST EPSS, percentile 99.93

    Show all metrics
    Severity
    Critical
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    242.79 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    actively exploitedSource: VulnCheck KEV (opens in a new tab) How we classify
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    10.0 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    10.0
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    99.0 %
    High — model estimates ≥ 50% chance of real-world exploitation within 30 days.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    99.93
    Critical — this CVE ranks in the top fifth of all CVEs scored today (rank ≥ 80%).
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    Actively exploited
    Published
    In CISA KEV since

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-913

    Response and mitigation

    Why act now?

    Prioritisation rationale

    The flaw is network-reachable with low attack complexity and needs only an account that can edit workflows. In many organisations that covers plenty of business users, and internet-facing instances with open sign-up push the bar close to zero. Exploitation likelihood is among the highest of any CVE, public techniques are trivial, and success means full loss of confidentiality, integrity and availability on the host. n8n is especially dangerous as an integration hub: the process holds credentials for ERP, CRM, cloud and internal databases, making it an ideal pivot for lateral movement and data exfiltration. CISA does not currently flag ransomware use, but internet-exposed or multi-user instances should still be treated as an emergency patch within 24 hours; internal single-user instances belong in the next short-term maintenance window.

    1. Runbook step 1

      Immediate response (0-24 h)

      • Patch now: Upgrade every n8n instance from 0.211.0 onward to a fixed release: 1.120.4, 1.121.1 or 1.122.0 (or later). For Docker deployments pin the image tag explicitly (e.g. n8nio/n8n:1.122.0) rather than trusting latest, then recreate the container.
      • Find every instance: Include shadow IT in business units, dev VMs and self-hosted containers. Scan for port 5678/tcp (default) and HTTP paths such as /rest/login or /signin. Confirm the running version via n8n --version or the UI ("About n8n").
      • Cut exposure: Until patched, put internet-facing instances behind VPN or an authenticating reverse proxy, or take them offline. Disable public self-registration and outstanding invites.
      • Restrict privileges: Limit workflow create/edit rights to fully trusted admins immediately; disable unused accounts and invalidate active sessions.
      • Assume breach if exposed: If a vulnerable instance was multi-user or internet-reachable, rotate every credential stored in n8n (API keys, OAuth tokens, DB passwords, cloud credentials) and regenerate N8N_ENCRYPTION_KEY. The n8n process can read all decrypted credentials.
      • Preserve evidence before upgrading: Snapshot the database (SQLite ~/.n8n/database.sqlite or PostgreSQL tables workflow_entity, execution_entity), container logs and reverse-proxy logs before rebuilding.
    2. Runbook step 2

      Mitigation layers

      • Network segmentation: Place n8n in a dedicated segment with an egress allowlist covering only the APIs it actually integrates with. Explicitly block cloud metadata (169.254.169.254) and internal management networks.
      • Runtime hardening: Run n8n as an unprivileged user (node, never root). Use a read_only root filesystem, no-new-privileges, cap_drop: ALL, and never mount the Docker socket.
      • Configuration changes: Set N8N_BLOCK_ENV_ACCESS_IN_NODE=true and disable risky nodes via NODES_EXCLUDE (e.g. n8n-nodes-base.executeCommand) to narrow post-exploitation paths. This does not stop exploitation of the expression engine itself.
      • IAM / least privilege: Enforce SSO with MFA and keep editor rights away from users who only consume workflows. Scope integration service accounts minimally to limit blast radius if n8n falls.
      • WAF / reverse-proxy rule (compensating): Inspect POST/PATCH/PUT to /rest/workflows and /api/v1/workflows for process.mainModule, child_process, constructor.constructor or require( inside {{ … }} expressions, and block or alert. String concatenation can bypass this, so treat it as an extra layer only.
    3. Runbook step 3

      Detection rules

      • EDR/Sysmon process ancestry: Sysmon EID 1 or EDR telemetry where parent node (n8n) spawns sh, bash, curl, wget, python, nc or base64. Sigma shape: ParentImage|endswith: '/node' AND Image|endswith: ['/sh','/bash','/curl','/wget','/nc']. Baseline against legitimate Execute Command workflows.
      • Linux auditd: Add -a always,exit -F arch=b64 -S execve -F uid=<n8n-uid> -k n8n_exec. Alert on unexpected binaries and on reads of /etc/passwd, ~/.n8n/config or /proc/self/environ.
      • Workflow content in the database: Hunt stored workflows and execution data, e.g. SELECT id,name,"updatedAt" FROM workflow_entity WHERE nodes LIKE '%mainModule%' OR nodes LIKE '%child_process%' OR nodes LIKE '%constructor.constructor%';. Prioritise newly created workflows and ones deleted shortly after creation.
      • Reverse-proxy/access logs: Look for login → POST/PATCH /rest/workflows → immediate /rest/workflows/*/run from rare users or new source IPs. SPL idea: index=proxy uri_path="/rest/workflows*" method IN (POST,PATCH) | stats count by user, src_ip.
      • Network telemetry (Zeek/Suricata): Flag new outbound connections from the n8n host to unknown destinations, reverse-shell patterns (long-lived TCP on unusual ports), requests to 169.254.169.254 and DNS lookups for newly registered domains.

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    Actively exploited: treat the vulnerability as a priority in vulnerability handling under Art. 21(2)(e) NIS2. If it is exploited in your environment, check the reporting obligation under Art. 23 (early warning within 24 hours).
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    Since 11.09.2026, manufacturers of affected products with digital elements must report actively exploited vulnerabilities under Art. 14 CRA, with an early warning within 24 hours via ENISA's single reporting platform.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    Description

    n8n is an open source workflow automation platform. Versions starting with 0.211.0 and prior to 1.120.4, 1.121.1, and 1.122.0 contain a critical Remote Code Execution (RCE) vulnerability in their workflow expression evaluation system. Under certain conditions, expressions supplied by authenticated users during workflow configuration may be evaluated in an execution context that is not sufficiently isolated from the underlying runtime. An authenticated attacker could abuse this behavior to execute arbitrary code with the privileges of the n8n process. Successful exploitation may lead to full compromise of the affected instance, including unauthorized access to sensitive data, modification of workflows, and execution of system-level operations. This issue has been fixed in versions 1.120.4, 1.121.1, and 1.122.0. Users are strongly advised to upgrade to a patched version, which introduces additional safeguards to restrict expression evaluation. If upgrading is not immediately possible, administrators should consider the following temporary mitigations: Limit workflow creation and editing permissions to fully trusted users only; and/or deploy n8n in a hardened environment with restricted operating system privileges and network access to reduce the impact of potential exploitation. These workarounds do not fully eliminate the risk and should only be used as short-term measures.

    Source: NVD (NIST), CISA KEV Catalog, CVE.org (MITRE), OSV (Open Source Vulnerabilities), cvelistv5

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    n8n-ion8n
    • 1.121.0
    • ≥ 0.211.0, < 1.120.4
    • —
    • —
    n8nn8n
    • 0.211.0 – < 1.120.4
    • 1.121.0
    • 1.120.4
    • —

    Vendors and products

    Weakness classes (CWE)

    • CWE-913Improper Control of Dynamically-Managed Code Resources

      Class

      The product does not properly restrict reading from or writing to dynamically-managed code resources such as variables, objects, classes, attributes, functions, or executable instructions or statements.

      Entry at MITRE CWE-913

    Public exploit references

    Publicly reported proof-of-concepts, exploit modules and detection templates for this vulnerability. NEOSEC links to the original sources only and does not provide any exploit code.

    Public exploit references
    CISA KEV CatalogCISA Known Exploited Vulnerability (opens in a new tab)cisa.govactively exploited
    PoC-in-GitHub (nomi-sec)cve-2025-68613-ctf (opens in a new tab)github.comPoC (publicly reported)reported, not verified
    PoC-in-GitHub (nomi-sec)POC-CVE-2025-68613 (opens in a new tab)github.comPoC (publicly reported)reported, not verified
    PoC-in-GitHub (nomi-sec)CVE-2026-21858-n8n-FullChain (opens in a new tab)github.comPoC (publicly reported)reported, not verified
    PoC-in-GitHub (nomi-sec)n8n-cve-2026-21858 (opens in a new tab)github.comPoC (publicly reported)reported, not verified
    PoC-in-GitHub (nomi-sec)CVE-2025-68613 (opens in a new tab)github.comPoC (publicly reported)reported, not verified

    References & sources

    • github.comn8n-io/n8n/security/advisories/GHSA-v98v-ff95-f3cpweb, x_refsource_CONFIRM
    • NVD (NIST)vuln/detail/CVE-2025-68613advisory
    • github.comn8n-io/n8n/commit/08f332015153decdda3c37ad4fcb9f7ba13a7c79web, x_refsource_MISC
    • github.comn8n-io/n8n/commit/1c933358acef527ff61466e53268b41a04be1000web, x_refsource_MISC
    • github.comn8n-io/n8n/commit/39a2d1d60edde89674ca96dcbb3eb076ffff6316web, x_refsource_MISC
    • github.comn8n-io/n8npackage
    • akamai.comblog/security-research/2026/feb/zerobot-malware-targets-n8n-aut…web, Third-party advisory
    • cisa.govknown-exploited-vulnerabilities-catalog?field_cve=CVE-2025-68613web, government-resource

    Changes to this CVE

    Who changed this CVE and when: NVD (analysis, affected products, CVSS), the CVE publisher (CNA) and additional providers such as CISA (ADP).

    One NVD translation into another language is hidden.

    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2025-68613
    <a href="https://intel.neosec.eu/en/cve/CVE-2025-68613"><img src="https://intel.neosec.eu/badge/cve/CVE-2025-68613.svg?lang=en" alt="CVE-2025-68613 – NEOSEC Intel" height="20"></a>