n8n — 1 vulnerability check
noctis ships 1 vulnerability check for n8n, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
n8n Expression Injection RCE — Vulnerable Version Detection
| CVE | CVE-2025-68613 |
|---|---|
| Severity | high · CVSS 8.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | set_var, http_request, match, script · highest QoD 70 |
| Feed | tests/vulnerabilities/n8n/CVE-2025-68613.yaml |
Fingerprints n8n, reads its version (x-n8n-version header, else the n8n@ release in the sentry config meta) and compares it numerically with the affected range (0.211.0 up to 1.120.3, and 1.121.0), reporting the authenticated expression-injection RCE. Version-based: no payload is sent.
How noctis detects it
- HTTP(S) request
GET /signin - Checks
fp_resp.bodyforn8n:config:sentry - Parses / computes the next value with a Rhai script
- Checks
n8n.versionfor^[0-9]→ finding QoD 70: n8n … is in the range affected by CVE-2025-68613 (0.211.0 to 1.120.3, and 1.121.0) — authenticated expression-injection RCE
Feed source — tests/vulnerabilities/n8n/CVE-2025-68613.yaml
uid: c5e2f8b1-3d9a-4c07-a6b8-1f0e4d7c2a95
name: "n8n Expression Injection RCE — Vulnerable Version Detection (CVE-2025-68613)"
description: "Fingerprints n8n, reads its version (x-n8n-version header, else the n8n@ release in the sentry config meta) and compares it numerically with the affected range (0.211.0 up to 1.120.3, and 1.121.0), reporting the authenticated expression-injection RCE. Version-based: no payload is sent."
cves: [CVE-2025-68613]
cvss: 8.8
severity: high
category: rce
confidence_base: 0.30
tags: [n8n, workflow-automation, expression-injection, rce, kev, javascript]
services: [http, https]
author: noctis
version: "1.1.0"
steps:
- id: init-gate
action: set_var
var_name: n8n_ok
var_value: false
- id: fingerprint
action: http_request
method: GET
path: "/signin"
port: "{{port}}"
tls_insecure: true
store_as: fp_resp
- id: fingerprint-match
action: match
source: fp_resp.body
pattern: "n8n:config:sentry"
condition: "fp_resp.status == 200"
on_match:
set_vars:
n8n_ok: true
# Compared per component with the NVD range: 0.211.0 <= v < 1.120.4, plus
# 1.121.0 (fixed again in 1.121.1 / 1.122.0).
- id: version
action: script
store_as: n8n
condition: "n8n_ok == true"
code: |
let hv = "";
if "x-n8n-version" in fp_resp.headers { hv = fp_resp.headers["x-n8n-version"]; }
if hv == "" {
// No header: the sentry config meta is base64 JSON carrying "n8n@<version>".
let meta = eregmatch("n8n:config:sentry\\x22[^>]*content=\\x22([A-Za-z0-9+/=]+)", fp_resp.body);
if type_of(meta) == "array" && meta.len() >= 2 {
let rel = eregmatch("n8n@([0-9]+\\.[0-9]+\\.[0-9]+)", base64_decode(meta[1]));
if type_of(rel) == "array" && rel.len() >= 2 { hv = rel[1]; }
}
}
let m = eregmatch("^\\s*([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:[^0-9.]|$)", hv);
if type_of(m) != "array" || m.len() < 4 {
#{ ok: false, version: "", vuln: false }
} else {
let a = int(m[1]); let b = int(m[2]); let c = int(m[3]);
let ge_low = a > 0 || b >= 211;
let lt_fix = a < 1 || (a == 1 && (b < 120 || (b == 120 && c < 4)));
let vuln = (ge_low && lt_fix) || (a == 1 && b == 121 && c == 0);
#{ ok: true, version: m[1] + "." + m[2] + "." + m[3], vuln: vuln }
}
- id: version-match
action: match
source: n8n.version
pattern: "^[0-9]"
condition: "n8n_ok == true && n8n.ok == true && n8n.vuln == true"
on_match:
finding:
confidence_delta: 0.35
qod: 70
evidence: "n8n {{n8n.version}} is in the range affected by CVE-2025-68613 (0.211.0 to 1.120.3, and 1.121.0) — authenticated expression-injection RCE"
stop: true