In December 2025, the n8n workflow automation platform patched a critical remote code execution flaw tracked as CVE-2025-68613, affecting self-hosted instances configured with community nodes and expression evaluation. Because n8n routinely runs with credentials to SaaS APIs, databases, and internal services, a compromised instance is not a single host loss — it is a pivot into every credential the workflow engine holds. This article moves past the patch advisory and focuses on the harder problem: how to detect exploitation from the logs you already collect. You will get concrete n8n audit log fields, reverse-proxy signatures, a compiling Sigma rule, and an ATT&CK-mapped detection strategy for workflow automation abuse.
Background: what CVE-2025-68613 actually is
CVE-2025-68613 is a remote code execution vulnerability in the n8n workflow automation platform, disclosed and patched by n8n in December 2025. The flaw resides in the expression evaluation path used by certain node types and community-node packages, where user-controlled workflow expressions can reach server-side code execution under specific configurations. The vendor's advisory is the authoritative source for affected versions and fixed releases.
n8n published the fix and version matrix in its official security advisory for CVE-2025-68613. Treat that advisory, not third-party summaries, as the source of truth for your upgrade decision. n8n GitHub Security Advisories
CVSS scoring for this class of flaw typically lands in the critical band because exploitation requires only authenticated access to the workflow editor in many deployments, and unauthenticated in misconfigured ones. The NVD entry should be consulted for the vendor-assigned vector: NVD — CVE-2025-68613. At the time of writing, defenders should check the CISA KEV catalog for exploitation status before prioritizing: CISA Known Exploited Vulnerabilities Catalog.
The operational risk is asymmetric. n8n is designed to hold API keys, database connection strings, SMTP credentials, and webhook secrets. An attacker who achieves RCE on the n8n host inherits all of them. That makes CVE-2025-68613 a credential-access vulnerability as much as a code-execution one.
Affected versions and exposure surface
Affected versions are those prior to the fixed releases listed in the n8n advisory. Self-hosted Docker deployments and npm-installed instances are the primary exposure; n8n Cloud is patched by the vendor. Because n8n is frequently deployed on internal networks with broad egress and inbound webhook access, internet-facing instances are the highest-risk population.
Inventory questions to answer first
- Which n8n instances run versions below the fixed release, per the vendor advisory?
- Which instances expose the editor UI or webhook endpoints to the internet?
- Which instances have community nodes installed? Community nodes expand the expression surface.
- Which instances hold credentials to production systems (databases, cloud APIs, CI/CD)?
Version discovery can be done from the n8n settings endpoint or by inspecting the container image tag. Log the result into your asset inventory before you start hunting.
Attacker TTPs mapped to MITRE ATT&CK
Exploitation of CVE-2025-68613 follows a predictable chain that you can map to ATT&CK and instrument for.
- T1190 — Exploit Public-Facing Application: the initial request targets the n8n editor or webhook endpoint with a crafted expression payload.
- T1059.004 — Command and Scripting Interpreter: Unix Shell: post-exploitation, the attacker spawns a shell from the n8n Node.js process.
- T1552.001 — Unsecured Credentials: Credentials In Files: the attacker reads n8n's encryption key and credential store from the filesystem.
- T1071.001 — Application Layer Protocol: Web Protocols: exfiltration or C2 over HTTPS to attacker infrastructure, often blending with legitimate n8n outbound traffic.
- T1136 — Create Account: creation of a new n8n user to persist access to the editor.
The critical detection insight: n8n's own audit log and its reverse-proxy access log together give you both the request and the consequence. Neither alone is sufficient.
Detection: what to look for in n8n and proxy logs
n8n audit and application logs
n8n emits structured audit events for user management, workflow changes, and credential operations. Enable audit logging and ship it to your SIEM. High-signal fields include eventType, userId, workflowId, resource, and timestamp. Look for:
- A burst of workflow creations or edits by a user or API key that has never created workflows before.
- Credential read or export events by a non-admin identity.
- New user creation followed immediately by workflow execution.
- Execution errors containing shell metacharacters or expression syntax (
{{,require(,child_process).
Reverse-proxy signatures
In nginx, Caddy, or Traefik logs, look for POST requests to the n8n editor or webhook paths with bodies containing expression delimiters and Node.js module names. Also look for anomalous user agents and requests that return 200 but are followed by outbound connections from the n8n container to unfamiliar IPs.
Host-level telemetry
On the n8n host, monitor for child processes spawned by the Node.js process: sh, bash, curl, wget, nc. Any of these as a child of node is anomalous in a normal n8n deployment.
Sigma rule: n8n shell spawn from Node.js
The following Sigma rule targets Linux process creation telemetry (auditd, Sysmon for Linux, or EDR) and flags shell execution as a child of the n8n Node.js process. It is intentionally narrow to keep false positives low; tune the parent path to your deployment.
title: n8n Node.js Process Spawning Shell (CVE-2025-68613)
id: 8f3a2c1e-5b7d-4e9a-9c2f-1d6b8e4a7f30
status: experimental
description: Detects shell or network utility execution as a child of the n8n Node.js process, consistent with post-exploitation of CVE-2025-68613.
references:
- https://github.com/n8n-io/n8n/security/advisories
- https://nvd.nist.gov/vuln/detail/CVE-2025-68613
author: CybernytronX
date: 2026/01/15
tags:
- attack.t1190
- attack.t1059.004
logsource:
category: process_creation
product: linux
detection:
selection_parent:
ParentImage|endswith:
- '/node'
- '/nodejs'
selection_child:
Image|endswith:
- '/sh'
- '/bash'
- '/dash'
- '/curl'
- '/wget'
- '/nc'
- '/ncat'
filter_known_maintenance:
CommandLine|contains:
- 'npm run'
- 'n8n start'
condition: selection_parent and selection_child and not filter_known_maintenance
fields:
- ParentImage
- Image
- CommandLine
- User
falsepositives:
- Legitimate workflow nodes invoking shell utilities by design; baseline before enabling
level: high
Suricata rule: n8n expression payload in HTTP body
This Suricata rule inspects HTTP request bodies for expression delimiters combined with Node.js module names, a common shape of CVE-2025-68613 exploit traffic. Adjust the sticky buffer if your sensor only logs headers.
alert http any any -> any any (msg:"Possible n8n CVE-2025-68613 expression RCE attempt"; flow:established,to_server; http.method; content:"POST"; http.request_body; content:"{{"; nocase; http.request_body; content:"child_process"; nocase; distance:0; within:200; classtype:web-application-attack; sid:2025686130; rev:1;)
Mitigation and hardening
Patch first. Upgrade every self-hosted n8n instance to the fixed release listed in the vendor advisory. If you cannot patch immediately, restrict editor access to a management network or VPN and disable community nodes until the upgrade is complete.
- Rotate every credential stored in n8n after any suspected exploitation — assume the encryption key and database were accessed.
- Enforce SSO and MFA on the n8n editor; disable public sign-up.
- Run n8n as a non-root user with a read-only root filesystem where possible.
- Restrict egress from the n8n container to known API endpoints; alert on new destinations.
- Enable and ship n8n audit logs to your SIEM; retain at least 90 days.
Vendor guidance on configuration and the fixed version matrix should be followed exactly: n8n hosting configuration documentation.
Why this matters for defenders
Workflow automation platforms are the quietest high-value target in most enterprises. They are rarely in the CMDB, rarely in the vulnerability management scan scope, and almost never in the SOC's detection content. CVE-2025-68613 is a reminder that an RCE on an automation host is a credential-access event with a code-execution delivery mechanism. The detection strategy above works because it correlates three planes — application audit, HTTP request, and host process — rather than relying on any single log source. Build the Sigma and Suricata rules into your pipeline, baseline the false positives against real workflows, and treat n8n as Tier-0 infrastructure for credential purposes. If you cannot answer "which n8n instances exist and what credentials do they hold?" today, that inventory gap is the vulnerability.
Sources
- n8n GitHub Security Advisories — vendor-published advisories including the fix and affected version matrix for CVE-2025-68613.
- NVD — CVE-2025-68613 — authoritative CVE record with CVSS vector and reference links.
- CISA Known Exploited Vulnerabilities Catalog — check current exploitation status before prioritizing patching.
- n8n hosting configuration documentation — configuration controls referenced in the mitigation section.
- MITRE ATT&CK T1190 — Exploit Public-Facing Application — technique mapping used in the detection section.
Frequently Asked Questions
Is CVE-2025-68613 exploitable without authentication?
Exploitability depends on deployment configuration. Instances that expose the editor or webhook endpoints without authentication or behind weak access controls are at higher risk. The vendor advisory and NVD entry define the affected configurations; treat any internet-facing instance below the fixed version as exposed.
What is the fastest way to confirm whether we were exploited?
Correlate three signals: n8n audit log events for new users or credential reads, reverse-proxy POST requests containing expression delimiters and Node.js module names, and shell or curl child processes of the Node.js process on the host. Any two together justify incident response.
Does n8n Cloud require action from us?
n8n Cloud is operated and patched by the vendor. Self-hosted deployments are the customer's responsibility. Confirm your deployment model before assuming you are covered.
Which credentials should we rotate after suspected exploitation?
All credentials stored in n8n, the n8n encryption key, database credentials used by n8n, and any API tokens reachable from the n8n host. Treat the host as fully compromised until forensics prove otherwise.
Why is a Sigma rule on process parentage better than log keyword matching?
Keyword matching on HTTP bodies produces high false positives because legitimate workflows may contain expression syntax. Parent-child process relationships between the Node.js process and a shell are rare in normal operation and give higher fidelity.
Is CVE-2025-68613 in CISA KEV?
Check the CISA KEV catalog directly for current status; KEV inclusion changes over time and should drive patch SLA. Link provided in the Sources section.
Need expert help with this?
If your n8n footprint is unclear or you need detection content tuned to your environment, CybernytronX can help. Our team builds SOC detection pipelines, runs targeted pentests against automation and integration platforms, and deploys Ethereon AI threat detection to correlate application, network, and host telemetry. Start with a scoping conversation at cybernytronx.com/contact.html or explore Ethereon at cybernytronx.com/ethereon.html.